From e42eaeee8d6310c81de2e90280afe99f8e8674aa Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Thu, 5 Jan 2023 17:04:15 +1100 Subject: Add migrations (#923) * Fix typeorm migration cli and server migrations. * Add `migrate-from-staging` script --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 13b5802e..78838986 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "generate:schema": "node scripts/schema.js", "generate:client": "node scripts/client.js", "generate:changelog": "node scripts/changelog.js", - "generate:migration": "node node_modules/typeorm/cli.js migration:generate -d dist/util/util/Datasource.js" + "generate:migration": "node -r dotenv/config -r module-alias/register node_modules/typeorm/cli.js migration:generate -d dist/util/util/Database.js", + "migrate-from-staging": "node -r dotenv/config -r module-alias/register scripts/stagingMigration/index.js" }, "main": "dist/bundle/index.js", "types": "src/bundle/index.ts", -- cgit 1.4.1