Skip to content

Commit

Permalink
Merge pull request #26 from rayonstudios/dev
Browse files Browse the repository at this point in the history
fixed xata cli issue in migration scripts
  • Loading branch information
MohammedMaaz authored Nov 21, 2024
2 parents 413317c + 9b9f880 commit f02434f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/migration-complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function getMigrationStatus() {
return;
}

execSync("npm install -g @xata.io/cli@latest");

const status = getMigrationStatus();
console.log("status: ", status);

Expand Down
2 changes: 2 additions & 0 deletions scripts/migration-start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

Expand Down

0 comments on commit f02434f

Please sign in to comment.