diff --git a/mateclaw-server/src/main/resources/db/migration/kingbase/V129__wiki_page_broken_links.sql b/mateclaw-server/src/main/resources/db/migration/kingbase/V129__wiki_page_broken_links.sql index 49aa9712..a2a2de8d 100644 --- a/mateclaw-server/src/main/resources/db/migration/kingbase/V129__wiki_page_broken_links.sql +++ b/mateclaw-server/src/main/resources/db/migration/kingbase/V129__wiki_page_broken_links.sql @@ -3,5 +3,5 @@ -- See h2/V129__wiki_page_broken_links.sql for column semantics. -- KingbaseES (PostgreSQL) supports ADD COLUMN IF NOT EXISTS natively. -ALTER TABLE mate_wiki_page ADD COLUMN IF NOT EXISTS broken_links JSONB DEFAULT NULL; +ALTER TABLE mate_wiki_page ADD COLUMN IF NOT EXISTS broken_links TEXT DEFAULT NULL; ALTER TABLE mate_wiki_page ADD COLUMN IF NOT EXISTS broken_links_scanned_at TIMESTAMP(3) DEFAULT NULL; diff --git a/mateclaw-server/src/main/resources/db/migration/kingbase/V140__goal_criteria_checklist.sql b/mateclaw-server/src/main/resources/db/migration/kingbase/V140__goal_criteria_checklist.sql index 0dc48a13..1819b868 100644 --- a/mateclaw-server/src/main/resources/db/migration/kingbase/V140__goal_criteria_checklist.sql +++ b/mateclaw-server/src/main/resources/db/migration/kingbase/V140__goal_criteria_checklist.sql @@ -14,6 +14,6 @@ BEGIN SELECT 1 FROM information_schema.columns WHERE table_name = 'mate_agent_goal' AND column_name = 'criteria' ) THEN - ALTER TABLE mate_agent_goal ADD COLUMN criteria JSON NULL; + ALTER TABLE mate_agent_goal ADD COLUMN criteria TEXT NULL; END IF; END $$; diff --git a/mateclaw-server/src/main/resources/db/migration/kingbase/V1__baseline_schema.sql b/mateclaw-server/src/main/resources/db/migration/kingbase/V1__baseline_schema.sql index 86c1375e..910fea03 100644 --- a/mateclaw-server/src/main/resources/db/migration/kingbase/V1__baseline_schema.sql +++ b/mateclaw-server/src/main/resources/db/migration/kingbase/V1__baseline_schema.sql @@ -177,7 +177,7 @@ CREATE TABLE IF NOT EXISTS mate_message ( runtime_model VARCHAR(128), runtime_provider VARCHAR(64), status VARCHAR(32) NOT NULL DEFAULT 'completed', - metadata JSONB, + metadata TEXT, create_time TIMESTAMP NOT NULL, update_time TIMESTAMP NOT NULL, deleted INT NOT NULL DEFAULT 0 diff --git a/mateclaw-server/src/main/resources/db/migration/kingbase/V37__wiki_page_source_entries.sql b/mateclaw-server/src/main/resources/db/migration/kingbase/V37__wiki_page_source_entries.sql index a989949d..11edcf83 100644 --- a/mateclaw-server/src/main/resources/db/migration/kingbase/V37__wiki_page_source_entries.sql +++ b/mateclaw-server/src/main/resources/db/migration/kingbase/V37__wiki_page_source_entries.sql @@ -3,4 +3,4 @@ -- Dual-written alongside the existing source_raw_ids for backwards compatibility. -- KingbaseES (PostgreSQL) supports ADD COLUMN IF NOT EXISTS natively. -ALTER TABLE mate_wiki_page ADD COLUMN IF NOT EXISTS source_entries JSONB NULL; +ALTER TABLE mate_wiki_page ADD COLUMN IF NOT EXISTS source_entries TEXT NULL; diff --git a/mateclaw-server/src/main/resources/db/migration/kingbase/V77__wiki_relation_table.sql b/mateclaw-server/src/main/resources/db/migration/kingbase/V77__wiki_relation_table.sql index 7589de61..71030948 100644 --- a/mateclaw-server/src/main/resources/db/migration/kingbase/V77__wiki_relation_table.sql +++ b/mateclaw-server/src/main/resources/db/migration/kingbase/V77__wiki_relation_table.sql @@ -18,7 +18,7 @@ CREATE TABLE IF NOT EXISTS mate_wiki_relation ( page_b_id BIGINT NOT NULL, total_score DECIMAL(8, 4), - signals_json JSONB, + signals_json TEXT, type VARCHAR(32),