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({
queries,
queries: baseQueries,
migrations,
snapshot,
appToken,
@ -203,6 +203,8 @@ async function runMigrateQuery({
appToken: string;
isDryRun?: boolean;
}) {
const queries = ['pragma defer_foreign_keys=true;', ...baseQueries];
const requestBody = {
snapshot,
migrations,