Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
- statement: CREATE UNIQUE INDEX uk_tech_book_id_name ON tech_book(id, name)
changeType: 1
- statement: CREATE UNIQUE INDEX tech_book_id_name ON tech_book(id, name)
changeType: 1
want:
- status: 2
code: 304
title: NAMING_INDEX_UK
content: Unique key in table `tech_book` mismatches the naming convention, expect "^$|^uk_tech_book_id_name$" but found `tech_book_id_name`
startposition:
line: 1
column: 0
endposition: null
- statement: CREATE UNIQUE INDEX qtzmquwvlnttctfluoouxelxeliltcfzzstrtyocogwwyiyrflmrkbhbfasynlacy ON tech_book(id, name)
changeType: 1
want:
- status: 2
code: 304
title: NAMING_INDEX_UK
content: Unique key `qtzmquwvlnttctfluoouxelxeliltcfzzstrtyocogwwyiyrflmrkbhbfasynlacy` in table `tech_book` mismatches the naming convention, its length should be within 64 characters
startposition:
line: 1
column: 0
endposition: null
- status: 2
code: 304
title: NAMING_INDEX_UK
content: Unique key in table `tech_book` mismatches the naming convention, expect "^$|^uk_tech_book_id_name$" but found `qtzmquwvlnttctfluoouxelxeliltcfzzstrtyocogwwyiyrflmrkbhbfasynlacy`
startposition:
line: 1
column: 0
endposition: null
- statement: ALTER TABLE tech_book ADD UNIQUE uk_tech_book_id_name (id, name)
changeType: 1
- statement: ALTER TABLE tech_book ADD UNIQUE tech_book_id_name (id, name)
changeType: 1
want:
- status: 2
code: 304
title: NAMING_INDEX_UK
content: Unique key in table `tech_book` mismatches the naming convention, expect "^$|^uk_tech_book_id_name$" but found `tech_book_id_name`
startposition:
line: 1
column: 0
endposition: null
- statement: ALTER TABLE tech_book RENAME INDEX old_uk TO uk_tech_book_id_name
changeType: 1
- statement: ALTER TABLE tech_book RENAME INDEX old_uk TO uk_tech_book
changeType: 1
want:
- status: 2
code: 304
title: NAMING_INDEX_UK
content: Unique key in table `tech_book` mismatches the naming convention, expect "^$|^uk_tech_book_id_name$" but found `uk_tech_book`
startposition:
line: 1
column: 0
endposition: null
- statement: CREATE TABLE book(id INT PRIMARY KEY, name VARCHAR(20), UNIQUE INDEX uk_book_name (name))
changeType: 1
- statement: CREATE TABLE book(id INT PRIMARY KEY, name VARCHAR(20), UNIQUE KEY (name))
changeType: 1
- statement: CREATE TABLE book(id INT PRIMARY KEY, name VARCHAR(20), UNIQUE INDEX (name))
changeType: 1
# Pins omni's ATAddConstraint vs ATAddIndex split + ConstrUnique
# unification. Pingcap had three distinct constraint enums for the
# UNIQUE/UNIQUE KEY/UNIQUE INDEX syntactic forms; omni unifies them under
# ConstrUnique. The existing `ALTER TABLE ... ADD UNIQUE name` cases
# above hit the bare-UNIQUE form; these pin the UNIQUE INDEX and UNIQUE
# KEY variants, which omni routes through ATAddIndex (not
# ATAddConstraint).
- statement: ALTER TABLE tech_book ADD UNIQUE INDEX uk_tech_book_id_name (id, name)
changeType: 1
- statement: ALTER TABLE tech_book ADD UNIQUE INDEX bad_uk (id, name)
changeType: 1
want:
- status: 2
code: 304
title: NAMING_INDEX_UK
content: Unique key in table `tech_book` mismatches the naming convention, expect "^$|^uk_tech_book_id_name$" but found `bad_uk`
startposition:
line: 1
column: 0
endposition: null
- statement: ALTER TABLE tech_book ADD UNIQUE KEY uk_tech_book_id_name (id, name)
changeType: 1
- statement: ALTER TABLE tech_book ADD UNIQUE KEY bad_uk (id, name)
changeType: 1
want:
- status: 2
code: 304
title: NAMING_INDEX_UK
content: Unique key in table `tech_book` mismatches the naming convention, expect "^$|^uk_tech_book_id_name$" but found `bad_uk`
startposition:
line: 1
column: 0
endposition: null
- statement: ALTER TABLE tech_book ADD CONSTRAINT uk_tech_book_id_name UNIQUE KEY uk1 (id, name)
changeType: 1