Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: add more test for tidb schema design (#8588)
zll60021ad55b51c9c
diff --git a/backend/api/v1/testdata/tidb/design.yaml b/backend/api/v1/testdata/tidb/design.yamlindex 1dcf77132e..1ca318a6a0 100644--- a/backend/api/v1/testdata/tidb/design.yaml+++ b/backend/api/v1/testdata/tidb/design.yaml@@ -51,7 +51,7 @@position: 0default: nullnullable: true- type: binary+ type: binary(10)characterset: ""collation: ""comment: ""@@ -239,7 +239,7 @@CREATE TABLE `users` (`id` int(11) NOT NULL COMMENT 'ID',`age` varbinary(500) NULL,- `name` binary NULL,+ `name` binary(10) NULL,PRIMARY KEY(`id`) CLUSTERED) ENGINE = InnoDB DEFAULT CHARACTER SET = UTF8MB4 DEFAULT COLLATE = UTF8MB4_BIN;diff --git a/backend/api/v1/testdata/tidb/schema.yaml b/backend/api/v1/testdata/tidb/schema.yamlindex 5027bd3a57..2f6a3cd051 100644--- a/backend/api/v1/testdata/tidb/schema.yaml+++ b/backend/api/v1/testdata/tidb/schema.yaml@@ -6,6 +6,7 @@a int default 1 comment 'abcdefg',b varchar(20) default 'NULL' comment '',d varbinary(500),+ e binary(20),primary key (a, b),constraint fk1 foreign key (a) references t2 (b));@@ -59,6 +60,16 @@comment: ""classification: ""usercomment: ""+ - name: e+ position: 0+ default: null+ nullable: true+ type: binary(20)+ characterset: ""+ collation: ""+ comment: ""+ classification: ""+ usercomment: ""indexes:- name: PRIMARYexpressions: