1 parent
4329ec51db
commit
20c50550cf
13 files changed
+380
-13
No files matched your search
@@ -242,6 +242,7 @@ export interface SchemaDiffPreparationOptions {
|
||||
ignoreComments?: boolean;
|
||||
cascadeDelete?: boolean;
|
||||
compareColumnOrder?: boolean;
|
||||
compareCharset?: boolean;
|
||||
ignoreTableNameCase?: boolean;
|
||||
ignoreColumnNameCase?: boolean;
|
||||
detectRenames?: boolean;
|
||||
|
||||
@@ -30,10 +30,13 @@ export const POSTGRES_SCHEMA_DIFF_OPTIONS: SchemaDiffOptionItem[] = [
|
||||
{ id: "enableRollback", labelKey: "schemaDiff.options.enableRollback", defaultChecked: false },
|
||||
];
|
||||
|
||||
export const MYSQL_SCHEMA_DIFF_OPTIONS: SchemaDiffOptionItem[] = [...POSTGRES_SCHEMA_DIFF_OPTIONS, { id: "compareCharset", labelKey: "schemaDiff.options.compareCharset", defaultChecked: true }];
|
||||
|
||||
export const SCHEMA_DIFF_OPTIONS_BY_DB_TYPE: Record<string, SchemaDiffOptionItem[]> = {
|
||||
postgres: POSTGRES_SCHEMA_DIFF_OPTIONS,
|
||||
opengauss: POSTGRES_SCHEMA_DIFF_OPTIONS,
|
||||
// mysql: [...] 后续扩展
|
||||
mysql: MYSQL_SCHEMA_DIFF_OPTIONS,
|
||||
goldendb: MYSQL_SCHEMA_DIFF_OPTIONS,
|
||||
// sqlserver: [...] 后续扩展
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user