From f0efa63bf22bf520788c9bded02df9754c8d7780 Mon Sep 17 00:00:00 2001 From: Ju Boxiang <140971685+Dr1985@users.noreply.github.com> Date: Tue, 9 Jun 2026 17:54:18 +0800 Subject: [PATCH] fix: Remove trailing comma in CREATE TABLE tenant_model SQL (#15832) (#15836) ### What problem does this PR solve? The last column definition `INDEX idx_instance_id (instance_id),` in the `CREATE TABLE tenant_model` statement has a trailing comma, which causes a MySQL syntax error during deployment. Closes #15832 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) ### How was this tested? - [x] Visual inspection: the trailing comma on line 837 has been removed --- tools/scripts/mysql_migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/mysql_migration.py b/tools/scripts/mysql_migration.py index b84d9662a5..f7bc0f7e15 100644 --- a/tools/scripts/mysql_migration.py +++ b/tools/scripts/mysql_migration.py @@ -834,7 +834,7 @@ class TenantModelStage(MigrationStage): create_date DATETIME, update_time BIGINT, update_date DATETIME, - INDEX idx_instance_id (instance_id), + INDEX idx_instance_id (instance_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 """ self.db.execute_sql(create_sql)