Files
probably-rendering-one-more…/apps/wiki/db/006_post_public_ids.sql
T
codex-bot 38ec492ca3
wiki CI and deployment / verify-and-deploy (push) Successful in 16m28s
Publish reference layouts as API-authored text and image notes
2026-10-26 17:20:57 +08:00

6 lines
265 B
PL/PgSQL

BEGIN;
-- API-authored notes may retain a legacy 24-character public ID without code registration.
ALTER TABLE posts ADD COLUMN public_id text UNIQUE CHECK(public_id ~ '^[0-9a-f]{24}$');
INSERT INTO schema_migrations(version) VALUES('006_post_public_ids');
COMMIT;