Initial phase 1 baseline implementation
This commit is contained in:
parent
099c53badf
commit
077cf7601a
29 changed files with 1339 additions and 39 deletions
10
db/migrations/000001_foundation.up.sql
Normal file
10
db/migrations/000001_foundation.up.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- Drive v2 uses forward-only migrations. Rollback is restore-or-fix-forward.
|
||||
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS drive_metadata (
|
||||
singleton BOOLEAN PRIMARY KEY DEFAULT TRUE CHECK (singleton),
|
||||
installed_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
INSERT INTO drive_metadata (singleton) VALUES (TRUE)
|
||||
ON CONFLICT (singleton) DO NOTHING;
|
||||
Loading…
Add table
Add a link
Reference in a new issue