feat: add migration script to migrate org

This commit is contained in:
Meet
2024-10-07 17:28:32 +05:30
parent 20bcf8aab8
commit 9f6d837a9b
2 changed files with 56 additions and 0 deletions
+1
View File
@@ -52,6 +52,7 @@
"migration:latest": "knex --knexfile ./src/db/knexfile.ts --client pg migrate:latest",
"migration:status": "knex --knexfile ./src/db/knexfile.ts --client pg migrate:status",
"migration:rollback": "knex --knexfile ./src/db/knexfile.ts migrate:rollback",
"migrate:org": "tsx ./scripts/migrate-organization.ts",
"seed:new": "tsx ./scripts/create-seed-file.ts",
"seed": "knex --knexfile ./src/db/knexfile.ts --client pg seed:run",
"db:reset": "npm run migration:rollback -- --all && npm run migration:latest"