hydra.sql: embed some in-line docs about schema changes

This commit is contained in:
Graham Christensen 2021-01-25 14:25:18 -05:00
parent dc5a0d59c5
commit bf674a9653
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -1,3 +1,14 @@
-- Making a database change:
--
-- 1. Update this schema document to match what the end result should be.
--
-- 2. Run `make -C src/sql update-dbix hydra-postgresql.sql` in the root
-- of the project directory, and git add / git commit the changed,
-- generated files.
--
-- 3. Create a migration in this same directory, named `upgrade-N.sql`
--
-- Singleton table to keep track of the schema version. -- Singleton table to keep track of the schema version.
create table SchemaVersion ( create table SchemaVersion (
version integer not null version integer not null