diff --git a/scripts/migration-complete.ts b/scripts/migration-complete.ts index 846f9af..2ea52da 100644 --- a/scripts/migration-complete.ts +++ b/scripts/migration-complete.ts @@ -19,6 +19,8 @@ function getMigrationStatus() { return; } + execSync("npm install -g @xata.io/cli@latest"); + const status = getMigrationStatus(); console.log("status: ", status); diff --git a/scripts/migration-start.ts b/scripts/migration-start.ts index da84912..a02db3c 100644 --- a/scripts/migration-start.ts +++ b/scripts/migration-start.ts @@ -58,6 +58,8 @@ async function getMigrationDiff() { console.log(`migration started from ${base} to ${target}`); + execSync("npm install -g @xata.io/cli@latest"); + execSync(`xata pull ${base}`); execSync(`mv .xata/migrations .xata/migrations-${base}`);