Add schema-driven db:migrate for SQLite and Postgres

- Parse schema files to detect expected columns per table
- Add missing columns automatically when schema is updated
- Add payment_request to sponsors schema
- Add db:migrate script to root package.json

Made-with: Cursor
This commit is contained in:
Michilis
2026-03-16 00:13:06 +00:00
parent f61f41c9b0
commit a1509f21fc
7 changed files with 102 additions and 114 deletions

View File

@@ -7,6 +7,7 @@
"build:frontend": "cd frontend && npm run build",
"start": "cd backend && npm start",
"dev:backend": "cd backend && npm run dev",
"dev:frontend": "cd frontend && npm run dev"
"dev:frontend": "cd frontend && npm run dev",
"db:migrate": "cd backend && npm run migrate"
}
}