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