@oktis-works/database 0.9.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema/schema.sql +1 -1
- package/package.json +1 -1
package/dist/schema/schema.sql
CHANGED
|
@@ -113,7 +113,7 @@ CREATE TABLE IF NOT EXISTS content (
|
|
|
113
113
|
CREATE INDEX IF NOT EXISTS idx_content_tenant ON content(tenant_id);
|
|
114
114
|
CREATE INDEX IF NOT EXISTS idx_content_type ON content(type);
|
|
115
115
|
CREATE INDEX IF NOT EXISTS idx_content_status ON content(status);
|
|
116
|
-
CREATE INDEX IF NOT EXISTS
|
|
116
|
+
CREATE UNIQUE INDEX IF NOT EXISTS uq_content_tenant_type_slug ON content(tenant_id, type, slug);
|
|
117
117
|
CREATE INDEX IF NOT EXISTS idx_content_author ON content(author_id);
|
|
118
118
|
CREATE INDEX IF NOT EXISTS idx_content_published ON content(published_at) WHERE published_at IS NOT NULL;
|
|
119
119
|
ALTER TABLE content ADD COLUMN IF NOT EXISTS data JSONB NOT NULL DEFAULT '{}'::jsonb;
|