Harden CI and switch release builds to tagged immutable images
This commit is contained in:
parent
bed2e6cfb6
commit
f24e96efa7
60 changed files with 4710 additions and 64 deletions
10
db/migrations/000001_foundation.sql
Normal file
10
db/migrations/000001_foundation.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 drive_metadata (
|
||||
singleton BOOLEAN PRIMARY KEY DEFAULT TRUE CHECK (singleton),
|
||||
installed_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
INSERT INTO drive_metadata (singleton) VALUES (TRUE);
|
||||
|
||||
3
db/queries/health.sql
Normal file
3
db/queries/health.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-- name: DatabaseHealth :one
|
||||
SELECT 1::BIGINT AS result;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue