feat(scripts): add config migration script for guild settings

Add script to migrate existing config.json values to database with
bun run db:migrate-config command.
This commit is contained in:
syntaxbullet
2026-02-12 15:02:05 +01:00
parent babccfd08a
commit 610d97bde3
2 changed files with 52 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
"db:push:local": "drizzle-kit push",
"dev": "bun --watch bot/index.ts",
"db:studio": "drizzle-kit studio --port 4983 --host 0.0.0.0",
"db:migrate-config": "docker compose run --rm app bun shared/scripts/migrate-config-to-db.ts",
"remote": "bash shared/scripts/remote.sh",
"logs": "bash shared/scripts/logs.sh",
"db:backup": "bash shared/scripts/db-backup.sh",