chore: add db migration helper scripts
This commit is contained in:
7
migrations/001_example.sql
Normal file
7
migrations/001_example.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- Example Migration File
|
||||
-- You can write raw SQL here to fix your schema mismatches
|
||||
-- For example, if you added a new column in models.py, you would add it here:
|
||||
|
||||
-- ALTER TABLE "user" ADD COLUMN IF NOT EXISTS "trial_end" TIMESTAMP WITHOUT TIME ZONE;
|
||||
|
||||
-- Then run: ./migrate.sh migrations/001_example.sql
|
||||
Reference in New Issue
Block a user