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:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-21 23:33:28 +01:00
1 parent 1a6fadb030
commit 018b24948e
3 files changed
+97

No files matched your search

@@ -0,0 +1,7 @@
-- +goose Up
CREATE EXTENSION IF NOT EXISTS timescaledb;
CREATE EXTENSION IF NOT EXISTS citext;
-- +goose Down
DROP EXTENSION IF EXISTS citext;
DROP EXTENSION IF EXISTS timescaledb;
+11
View File
@@ -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;