feat(migrations): embed goose migrations with advisory locking
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
1a6fadb030
commit
018b24948e
3 files changed
+97
No files matched your search
@@ -0,0 +1,11 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE orgs (
|
||||
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
slug citext NOT NULL UNIQUE CHECK (slug ~ '^[a-z0-9][a-z0-9-]{1,62}$'),
|
||||
name text NOT NULL CHECK (length(name) BETWEEN 1 AND 200),
|
||||
created_at timestamptz NOT NULL DEFAULT now(),
|
||||
updated_at timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE orgs;
|
||||
Reference in new issue
Block a user