Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(123): use MediumText(16,777,215) instead of TEXT(65,535) for storing migration schema (#188)
spinningbot50b32ac8bafa
diff --git a/plugin/db/mysql/mysql_migration_schema.sql b/plugin/db/mysql/mysql_migration_schema.sqlindex def1fa088a..abacb2f380 100644--- a/plugin/db/mysql/mysql_migration_schema.sql+++ b/plugin/db/mysql/mysql_migration_schema.sql@@ -31,10 +31,10 @@ CREATE TABLE bytebase.migration_history (-- Record the migration statementstatement TEXT NOT NULL,-- Record the schema after migration- `schema` TEXT NOT NULL,+ `schema` MEDIUMTEXT NOT NULL,-- Record the schema before migration. Though we could also fetch it from the previous migration history, it would complicate fetching logic.-- Besides, by storing the schema_prev, we can perform consistency check to see if the migration history has any gaps.- schema_prev TEXT NOT NULL,+ schema_prev MEDIUMTEXT NOT NULL,execution_duration INTEGER NOT NULL,issue_id TEXT NOT NULL,payload TEXT NOT NULL