0
Fork 0
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:
bholmesdev 2024-02-06 17:27:43 -05:00
parent 06fec3dab1
commit 981e1e92a2

View file

@ -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,