@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.
@@ -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 idx_content_slug ON content(tenant_id, type, slug);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oktis-works/database",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",