You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we need to do a schema change, write a sql file that produces the changes we want.
Put that in an updates directory, prefixed with the date. e.g. 20201005-drop-all-tables.sql
Spin up a test database with the current schema.sql loaded in, and run the update file against it.
Dump that database schema back into schema.sql.
Notes
Current master schema.sql is based off legacy/usgo-agagd-scheme-no-zero-dates-20200913.sql. The prod will continue to use zero dates which will be removed later.