diff --git a/deploy/migrations/m0022_pipeline_conversations_collation.json b/deploy/migrations/m0022_pipeline_conversations_collation.json new file mode 100644 index 0000000..00caaa2 --- /dev/null +++ b/deploy/migrations/m0022_pipeline_conversations_collation.json @@ -0,0 +1,11 @@ +{ + "id": "m0022", + "title": "pipeline_conversations 归籍 pipeline-service + collation 统一 unicode_ci(消灭代码里的 COLLATE 补丁依赖)", + "backup_tables": ["pipeline_conversations"], + "up": [ + {"op": "sql", "sql": "ALTER TABLE pipeline_conversations CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci"} + ], + "down": [ + {"op": "sql", "sql": "ALTER TABLE pipeline_conversations CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci"} + ] +}