mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
feat: add pragma when pushing migrations
This commit is contained in:
parent
06fec3dab1
commit
981e1e92a2
1 changed files with 3 additions and 1 deletions
|
@ -191,7 +191,7 @@ async function pushData({
|
||||||
}
|
}
|
||||||
|
|
||||||
async function runMigrateQuery({
|
async function runMigrateQuery({
|
||||||
queries,
|
queries: baseQueries,
|
||||||
migrations,
|
migrations,
|
||||||
snapshot,
|
snapshot,
|
||||||
appToken,
|
appToken,
|
||||||
|
@ -203,6 +203,8 @@ async function runMigrateQuery({
|
||||||
appToken: string;
|
appToken: string;
|
||||||
isDryRun?: boolean;
|
isDryRun?: boolean;
|
||||||
}) {
|
}) {
|
||||||
|
const queries = ['pragma defer_foreign_keys=true;', ...baseQueries];
|
||||||
|
|
||||||
const requestBody = {
|
const requestBody = {
|
||||||
snapshot,
|
snapshot,
|
||||||
migrations,
|
migrations,
|
||||||
|
|
Loading…
Add table
Reference in a new issue