@oktis-works/cms 0.13.7 → 0.13.11
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/assets.d.ts +7 -4
- package/dist/assets.d.ts.map +1 -1
- package/dist/assets.js +24 -17
- package/dist/assets.js.map +1 -1
- package/dist/bluegreen.d.ts +2 -1
- package/dist/bluegreen.d.ts.map +1 -1
- package/dist/bluegreen.js +11 -5
- package/dist/bluegreen.js.map +1 -1
- package/dist/command-registry.d.ts +19 -0
- package/dist/command-registry.d.ts.map +1 -0
- package/dist/command-registry.js +59 -0
- package/dist/command-registry.js.map +1 -0
- package/dist/commands.d.ts +13 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +173 -34
- package/dist/commands.js.map +1 -1
- package/dist/database-config.d.ts +21 -0
- package/dist/database-config.d.ts.map +1 -0
- package/dist/database-config.js +84 -0
- package/dist/database-config.js.map +1 -0
- package/dist/db-dump.d.ts +6 -0
- package/dist/db-dump.d.ts.map +1 -1
- package/dist/db-dump.js +57 -6
- package/dist/db-dump.js.map +1 -1
- package/dist/db-prepare.d.ts +9 -8
- package/dist/db-prepare.d.ts.map +1 -1
- package/dist/db-prepare.js +17 -39
- package/dist/db-prepare.js.map +1 -1
- package/dist/dev.d.ts +2 -4
- package/dist/dev.d.ts.map +1 -1
- package/dist/dev.js +19 -19
- package/dist/dev.js.map +1 -1
- package/dist/doctor.d.ts +1 -0
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +41 -49
- package/dist/doctor.js.map +1 -1
- package/dist/env-schema.js +7 -7
- package/dist/env-schema.js.map +1 -1
- package/dist/generated/app-versions.js +7 -7
- package/dist/generated/app-versions.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/migrations-sync.d.ts.map +1 -1
- package/dist/migrations-sync.js +7 -1
- package/dist/migrations-sync.js.map +1 -1
- package/dist/npm-registry.d.ts +9 -0
- package/dist/npm-registry.d.ts.map +1 -1
- package/dist/npm-registry.js +20 -0
- package/dist/npm-registry.js.map +1 -1
- package/dist/parser.d.ts +9 -2
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +94 -19
- package/dist/parser.js.map +1 -1
- package/dist/pm2.js +4 -4
- package/dist/pm2.js.map +1 -1
- package/dist/prompt.d.ts +8 -0
- package/dist/prompt.d.ts.map +1 -1
- package/dist/prompt.js +57 -3
- package/dist/prompt.js.map +1 -1
- package/dist/redeploy.d.ts.map +1 -1
- package/dist/redeploy.js +6 -2
- package/dist/redeploy.js.map +1 -1
- package/dist/runtime-state.d.ts.map +1 -1
- package/dist/runtime-state.js +1 -0
- package/dist/runtime-state.js.map +1 -1
- package/dist/scaffold-docs.d.ts +1 -0
- package/dist/scaffold-docs.d.ts.map +1 -1
- package/dist/scaffold-docs.js +15 -10
- package/dist/scaffold-docs.js.map +1 -1
- package/dist/scaffold.d.ts +12 -1
- package/dist/scaffold.d.ts.map +1 -1
- package/dist/scaffold.js +102 -11
- package/dist/scaffold.js.map +1 -1
- package/dist/simple.d.ts.map +1 -1
- package/dist/simple.js +4 -4
- package/dist/simple.js.map +1 -1
- package/dist/update-progress.d.ts +16 -0
- package/dist/update-progress.d.ts.map +1 -0
- package/dist/update-progress.js +35 -0
- package/dist/update-progress.js.map +1 -0
- package/dist/update.d.ts +22 -3
- package/dist/update.d.ts.map +1 -1
- package/dist/update.js +126 -28
- package/dist/update.js.map +1 -1
- package/dist/wizard-env.d.ts.map +1 -1
- package/dist/wizard-env.js +4 -3
- package/dist/wizard-env.js.map +1 -1
- package/dist/wizard-i18n.d.ts +3 -2
- package/dist/wizard-i18n.d.ts.map +1 -1
- package/dist/wizard-i18n.js +10 -8
- package/dist/wizard-i18n.js.map +1 -1
- package/dist/wizard-run.d.ts +2 -1
- package/dist/wizard-run.d.ts.map +1 -1
- package/dist/wizard-run.js +15 -4
- package/dist/wizard-run.js.map +1 -1
- package/dist/wizard-state.d.ts.map +1 -1
- package/dist/wizard-state.js +22 -5
- package/dist/wizard-state.js.map +1 -1
- package/dist/wizard.d.ts +1 -0
- package/dist/wizard.d.ts.map +1 -1
- package/dist/wizard.js +88 -26
- package/dist/wizard.js.map +1 -1
- package/migrations/V001__core__add_core_fields_support.sql +2 -1
- package/migrations/V002__core__create_field_values_table.sql +2 -1
- package/migrations/V003__core__seed_default_content_types.sql +2 -1
- package/migrations/V004__core__seed_default_field_groups.sql +25 -30
- package/migrations/V005__core__add_user_locale.sql +1 -0
- package/migrations/V006__core__expand_media_metadata.sql +1 -0
- package/migrations/V007__core__expand_menus.sql +1 -0
- package/migrations/V008__core__harden_theme_tenant_rls.sql +1 -0
- package/migrations/V009__core__fix_page_type_labels_english.sql +1 -0
- package/migrations/V010__core__harden_themes_lifecycle.sql +1 -0
- package/migrations/V011__core__plugin_tenants.sql +1 -0
- package/migrations/V012__core__api_keys.sql +1 -0
- package/migrations/V013__core__field_type_extensions.sql +2 -1
- package/migrations/V014__core__comments.sql +1 -0
- package/migrations/V015__core__mails.sql +1 -0
- package/migrations/V016__core__webhook_hardening.sql +1 -0
- package/migrations/V017__core__lazy_field_types.sql +1 -0
- package/migrations/V018__core__timezone_system.sql +2 -1
- package/migrations/V019__core__unique_content_slug.sql +2 -1
- package/migrations/V020__core__unique_menus_slug.sql +2 -1
- package/migrations/V021__core__fix_double_encoded_content_body.sql +1 -0
- package/migrations/V022__core__theme_config_history.sql +1 -0
- package/migrations/V023__core__fix_theme_config_history_scope.sql +1 -0
- package/migrations/V024__core__field_group_ownership_and_page_definitions.sql +65 -0
- package/migrations/V025__core__canonicalize_content_field_values.sql +98 -0
- package/migrations/mariadb/V001__core__add_core_fields_support.sql +36 -0
- package/migrations/mariadb/V002__core__create_field_values_table.sql +29 -0
- package/migrations/mariadb/V003__core__seed_default_content_types.sql +24 -0
- package/migrations/mariadb/V004__core__seed_default_field_groups.sql +4 -0
- package/migrations/mariadb/V005__core__add_user_locale.sql +7 -0
- package/migrations/mariadb/V006__core__expand_media_metadata.sql +12 -0
- package/migrations/mariadb/V007__core__expand_menus.sql +4 -0
- package/migrations/mariadb/V008__core__harden_theme_tenant_rls.sql +7 -0
- package/migrations/mariadb/V009__core__fix_page_type_labels_english.sql +16 -0
- package/migrations/mariadb/V010__core__harden_themes_lifecycle.sql +9 -0
- package/migrations/mariadb/V011__core__plugin_tenants.sql +75 -0
- package/migrations/mariadb/V012__core__api_keys.sql +36 -0
- package/migrations/mariadb/V013__core__field_type_extensions.sql +26 -0
- package/migrations/mariadb/V014__core__comments.sql +36 -0
- package/migrations/mariadb/V015__core__mails.sql +22 -0
- package/migrations/mariadb/V016__core__webhook_hardening.sql +36 -0
- package/migrations/mariadb/V017__core__lazy_field_types.sql +6 -0
- package/migrations/mariadb/V018__core__timezone_system.sql +25 -0
- package/migrations/mariadb/V019__core__unique_content_slug.sql +5 -0
- package/migrations/mariadb/V020__core__unique_menus_slug.sql +5 -0
- package/migrations/mariadb/V021__core__fix_double_encoded_content_body.sql +4 -0
- package/migrations/mariadb/V022__core__theme_config_history.sql +9 -0
- package/migrations/mariadb/V023__core__fix_theme_config_history_scope.sql +4 -0
- package/migrations/mariadb/V024__core__field_group_ownership_and_page_definitions.sql +4 -0
- package/migrations/mariadb/V025__core__canonicalize_content_field_values.sql +12 -0
- package/migrations/mysql/V001__core__add_core_fields_support.sql +36 -0
- package/migrations/mysql/V002__core__create_field_values_table.sql +29 -0
- package/migrations/mysql/V003__core__seed_default_content_types.sql +24 -0
- package/migrations/mysql/V004__core__seed_default_field_groups.sql +4 -0
- package/migrations/mysql/V005__core__add_user_locale.sql +7 -0
- package/migrations/mysql/V006__core__expand_media_metadata.sql +12 -0
- package/migrations/mysql/V007__core__expand_menus.sql +4 -0
- package/migrations/mysql/V008__core__harden_theme_tenant_rls.sql +7 -0
- package/migrations/mysql/V009__core__fix_page_type_labels_english.sql +16 -0
- package/migrations/mysql/V010__core__harden_themes_lifecycle.sql +9 -0
- package/migrations/mysql/V011__core__plugin_tenants.sql +75 -0
- package/migrations/mysql/V012__core__api_keys.sql +36 -0
- package/migrations/mysql/V013__core__field_type_extensions.sql +26 -0
- package/migrations/mysql/V014__core__comments.sql +36 -0
- package/migrations/mysql/V015__core__mails.sql +22 -0
- package/migrations/mysql/V016__core__webhook_hardening.sql +36 -0
- package/migrations/mysql/V017__core__lazy_field_types.sql +6 -0
- package/migrations/mysql/V018__core__timezone_system.sql +25 -0
- package/migrations/mysql/V019__core__unique_content_slug.sql +5 -0
- package/migrations/mysql/V020__core__unique_menus_slug.sql +5 -0
- package/migrations/mysql/V021__core__fix_double_encoded_content_body.sql +4 -0
- package/migrations/mysql/V022__core__theme_config_history.sql +9 -0
- package/migrations/mysql/V023__core__fix_theme_config_history_scope.sql +4 -0
- package/migrations/mysql/V024__core__field_group_ownership_and_page_definitions.sql +4 -0
- package/migrations/mysql/V025__core__canonicalize_content_field_values.sql +12 -0
- package/package.json +8 -8
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
-- @okcms domain=core_schema provider=mysql
|
|
2
|
+
-- V013__core__field_type_extensions.sql
|
|
3
|
+
-- Tabela para armazenar tipos de campo customizados registrados por plugins
|
|
4
|
+
|
|
5
|
+
CREATE TABLE IF NOT EXISTS field_type_extensions (
|
|
6
|
+
id CHAR(36) PRIMARY KEY DEFAULT (UUID()),
|
|
7
|
+
plugin_name VARCHAR(255) NOT NULL,
|
|
8
|
+
type VARCHAR(100) NOT NULL UNIQUE,
|
|
9
|
+
label VARCHAR(255) NOT NULL,
|
|
10
|
+
category VARCHAR(50) NOT NULL,
|
|
11
|
+
icon VARCHAR(100) NOT NULL,
|
|
12
|
+
supports_conditions BOOLEAN DEFAULT true,
|
|
13
|
+
is_layout BOOLEAN DEFAULT false,
|
|
14
|
+
admin_component_path VARCHAR(500),
|
|
15
|
+
admin_renderer_path VARCHAR(500),
|
|
16
|
+
config_schema JSON,
|
|
17
|
+
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
18
|
+
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
-- Índice para busca rápida por plugin
|
|
22
|
+
CREATE INDEX idx_field_type_extensions_plugin ON field_type_extensions(plugin_name);
|
|
23
|
+
|
|
24
|
+
-- Trigger para updated_at
|
|
25
|
+
DROP TRIGGER IF EXISTS update_field_type_extensions_updated_at;
|
|
26
|
+
CREATE TRIGGER update_field_type_extensions_updated_at BEFORE UPDATE ON field_type_extensions FOR EACH ROW SET NEW.updated_at = CURRENT_TIMESTAMP;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
-- @okcms domain=core_schema provider=mysql
|
|
2
|
+
-- V014__core__comments.sql
|
|
3
|
+
-- WordPress-parity item 11: comments system (threaded, moderated, tenant RLS).
|
|
4
|
+
|
|
5
|
+
CREATE TABLE IF NOT EXISTS comments (
|
|
6
|
+
id CHAR(36) PRIMARY KEY DEFAULT (UUID()),
|
|
7
|
+
tenant_id CHAR(36) REFERENCES tenants(id) ON DELETE CASCADE,
|
|
8
|
+
content_id CHAR(36) NOT NULL REFERENCES content(id) ON DELETE CASCADE,
|
|
9
|
+
parent_id CHAR(36) REFERENCES comments(id) ON DELETE CASCADE,
|
|
10
|
+
author_name VARCHAR(255) NOT NULL,
|
|
11
|
+
author_email VARCHAR(255),
|
|
12
|
+
author_url VARCHAR(500),
|
|
13
|
+
author_id CHAR(36) REFERENCES users(id) ON DELETE SET NULL,
|
|
14
|
+
body TEXT NOT NULL,
|
|
15
|
+
status VARCHAR(20) NOT NULL DEFAULT 'PENDING',
|
|
16
|
+
ip_address VARCHAR(64),
|
|
17
|
+
user_agent VARCHAR(500),
|
|
18
|
+
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
19
|
+
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
-- Moderation queue + per-content listing
|
|
23
|
+
CREATE INDEX idx_comments_content_status ON comments(content_id, status);
|
|
24
|
+
CREATE INDEX idx_comments_tenant_status ON comments(tenant_id, status);
|
|
25
|
+
CREATE INDEX idx_comments_parent ON comments(parent_id);
|
|
26
|
+
|
|
27
|
+
-- Key/value metadata (antispam scores, plugin extensions)
|
|
28
|
+
CREATE TABLE IF NOT EXISTS comment_meta (
|
|
29
|
+
id CHAR(36) PRIMARY KEY DEFAULT (UUID()),
|
|
30
|
+
comment_id CHAR(36) NOT NULL REFERENCES comments(id) ON DELETE CASCADE,
|
|
31
|
+
`key` VARCHAR(191) NOT NULL,
|
|
32
|
+
value JSON,
|
|
33
|
+
UNIQUE(comment_id, `key`)
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
-- Tenant isolation (same pattern as content/taxonomy_terms)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
-- @okcms domain=core_schema provider=mysql
|
|
2
|
+
-- V015__core__mails.sql
|
|
3
|
+
-- WordPress-parity item 12: durable mail outbox for api.mail.send.
|
|
4
|
+
|
|
5
|
+
CREATE TABLE IF NOT EXISTS mails (
|
|
6
|
+
id CHAR(36) PRIMARY KEY DEFAULT (UUID()),
|
|
7
|
+
tenant_id CHAR(36) REFERENCES tenants(id) ON DELETE CASCADE,
|
|
8
|
+
plugin_name VARCHAR(255) NOT NULL,
|
|
9
|
+
to_email VARCHAR(320) NOT NULL,
|
|
10
|
+
subject VARCHAR(998) NOT NULL,
|
|
11
|
+
html TEXT,
|
|
12
|
+
text TEXT,
|
|
13
|
+
template VARCHAR(191),
|
|
14
|
+
params JSON,
|
|
15
|
+
status VARCHAR(20) NOT NULL DEFAULT 'QUEUED',
|
|
16
|
+
attempts INT NOT NULL DEFAULT 0,
|
|
17
|
+
error TEXT,
|
|
18
|
+
sent_at TIMESTAMP,
|
|
19
|
+
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
CREATE INDEX idx_mails_tenant_status ON mails(tenant_id, status);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
-- @okcms domain=core_schema provider=mysql
|
|
2
|
+
-- V016__core__webhook_hardening.sql
|
|
3
|
+
-- WordPress-parity item 19: webhook secret rotation with 24h grace + a
|
|
4
|
+
-- dead-letter table for undeliverable deliveries.
|
|
5
|
+
|
|
6
|
+
-- One row per secret version. The newest is_active row signs outgoing
|
|
7
|
+
-- deliveries (X-Webhook-Secret-Version tells the consumer which `key` to
|
|
8
|
+
-- verify with). During rotation the previous version stays recorded with
|
|
9
|
+
-- rotated_at — consumers have a 24h grace window to swap the `key`.
|
|
10
|
+
CREATE TABLE IF NOT EXISTS webhook_secrets (
|
|
11
|
+
id CHAR(36) PRIMARY KEY DEFAULT (UUID()),
|
|
12
|
+
webhook_id CHAR(36) NOT NULL REFERENCES webhooks(id) ON DELETE CASCADE,
|
|
13
|
+
secret VARCHAR(255) NOT NULL,
|
|
14
|
+
version INT NOT NULL DEFAULT 1,
|
|
15
|
+
is_active BOOLEAN NOT NULL DEFAULT true,
|
|
16
|
+
rotated_at TIMESTAMP,
|
|
17
|
+
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
18
|
+
UNIQUE(webhook_id, version)
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
CREATE INDEX idx_webhook_secrets_webhook ON webhook_secrets(webhook_id, is_active);
|
|
22
|
+
|
|
23
|
+
-- Deliveries that exhausted their retries (network errors / non-2xx) are
|
|
24
|
+
-- recorded here for inspection and replay; attempts accumulates per
|
|
25
|
+
-- webhook+event across delivery jobs.
|
|
26
|
+
CREATE TABLE IF NOT EXISTS webhook_dead_letters (
|
|
27
|
+
id CHAR(36) PRIMARY KEY DEFAULT (UUID()),
|
|
28
|
+
webhook_id CHAR(36) NOT NULL REFERENCES webhooks(id) ON DELETE CASCADE,
|
|
29
|
+
event VARCHAR(191) NOT NULL,
|
|
30
|
+
payload JSON NOT NULL,
|
|
31
|
+
error TEXT,
|
|
32
|
+
attempts INT NOT NULL DEFAULT 1,
|
|
33
|
+
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
CREATE INDEX idx_webhook_dead_letters_webhook ON webhook_dead_letters(webhook_id, created_at);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
-- @okcms domain=core_schema provider=mysql
|
|
2
|
+
-- V017__core__lazy_field_types.sql
|
|
3
|
+
-- WordPress-parity item 25: lazy field types (lazy:true defers registry sync
|
|
4
|
+
-- until first use — GET /api/v1/field-types).
|
|
5
|
+
|
|
6
|
+
ALTER TABLE field_type_extensions ADD COLUMN IF NOT EXISTS lazy BOOLEAN NOT NULL DEFAULT false;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
-- @okcms domain=core_schema provider=mysql
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
-- WordPress-style timezone system
|
|
4
|
+
-- 1. Add published_at_gmt to content table for dual date storage (local + GMT)
|
|
5
|
+
-- 2. Add timezone settings to settings table (handled by seed)
|
|
6
|
+
|
|
7
|
+
-- Add published_at_gmt column to content table
|
|
8
|
+
ALTER TABLE content ADD COLUMN IF NOT EXISTS published_at_gmt TIMESTAMP;
|
|
9
|
+
|
|
10
|
+
-- Index for GMT-based queries (archives, scheduling, etc.)
|
|
11
|
+
CREATE INDEX idx_content_published_gmt ON content(published_at_gmt);
|
|
12
|
+
|
|
13
|
+
-- Backfill existing published content: published_at_gmt = published_at
|
|
14
|
+
-- Note: existing published_at was stored as local time without TZ info
|
|
15
|
+
-- We assume it was stored in the server's timezone (typically UTC)
|
|
16
|
+
-- This is a best-effort backfill
|
|
17
|
+
UPDATE content
|
|
18
|
+
SET published_at_gmt = published_at
|
|
19
|
+
WHERE published_at IS NOT NULL
|
|
20
|
+
AND published_at_gmt IS NULL
|
|
21
|
+
AND status = 'PUBLISHED';
|
|
22
|
+
|
|
23
|
+
-- +migrate Down
|
|
24
|
+
DROP INDEX IF EXISTS idx_content_published_gmt;
|
|
25
|
+
ALTER TABLE content DROP COLUMN IF EXISTS published_at_gmt;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
-- @okcms domain=core_schema provider=mysql conflict_policy=block max_affected_rows=100000
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
ALTER TABLE content ADD CONSTRAINT uq_content_tenant_type_slug UNIQUE (tenant_id, type, slug);
|
|
4
|
+
-- +migrate Down
|
|
5
|
+
ALTER TABLE content DROP INDEX uq_content_tenant_type_slug;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
-- @okcms domain=core_schema provider=mysql
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
CREATE TABLE IF NOT EXISTS theme_config_versions (
|
|
4
|
+
id CHAR(36) PRIMARY KEY DEFAULT (UUID()),
|
|
5
|
+
theme_id CHAR(36) NOT NULL REFERENCES themes(id) ON DELETE CASCADE,
|
|
6
|
+
config JSON NOT NULL, user_id CHAR(36) REFERENCES users(id) ON DELETE SET NULL,
|
|
7
|
+
change_summary TEXT, created_at TIMESTAMP NOT NULL DEFAULT NOW()
|
|
8
|
+
);
|
|
9
|
+
-- +migrate Down
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-- @okcms domain=core_schema provider=mysql conflict_policy=block max_affected_rows=100000
|
|
2
|
+
-- +migrate Up
|
|
3
|
+
CREATE TABLE IF NOT EXISTS content_value_migration_conflicts (
|
|
4
|
+
id CHAR(36) PRIMARY KEY DEFAULT (UUID()),
|
|
5
|
+
content_id CHAR(36) NOT NULL REFERENCES content(id) ON DELETE CASCADE,
|
|
6
|
+
field_name VARCHAR(255) NOT NULL, sources JSON NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
|
7
|
+
UNIQUE(content_id, field_name)
|
|
8
|
+
);
|
|
9
|
+
UPDATE content SET body = JSON_MERGE_PATCH(COALESCE(data, JSON_OBJECT()), COALESCE(body, JSON_OBJECT())), data = JSON_OBJECT();
|
|
10
|
+
UPDATE content_versions SET body = COALESCE(body, JSON_OBJECT());
|
|
11
|
+
-- +migrate Down
|
|
12
|
+
DROP TABLE IF EXISTS content_value_migration_conflicts;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oktis-works/cms",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"clean": "rm -rf dist migrations tsconfig.tsbuildinfo"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@oktis-works/auth": "^0.8.
|
|
24
|
-
"@oktis-works/config": "^0.6.
|
|
25
|
-
"@oktis-works/core": "^0.
|
|
26
|
-
"@oktis-works/database": "^0.14.
|
|
27
|
-
"@oktis-works/validation": "^0.
|
|
28
|
-
"@oktis-works/theme-runtime": "^0.
|
|
23
|
+
"@oktis-works/auth": "^0.8.3",
|
|
24
|
+
"@oktis-works/config": "^0.6.5",
|
|
25
|
+
"@oktis-works/core": "^0.15.2",
|
|
26
|
+
"@oktis-works/database": "^0.14.4",
|
|
27
|
+
"@oktis-works/validation": "^0.8.1",
|
|
28
|
+
"@oktis-works/theme-runtime": "^0.11.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "5.7.3"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public",
|
|
39
39
|
"registry": "https://registry.npmjs.org/"
|
|
40
40
|
},
|
|
41
|
-
"license": "
|
|
41
|
+
"license": "GPL-2.0-or-later",
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
44
44
|
"url": "https://github.com/oktis-works/cms",
|