Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

923 B
Raw Blame
- statement: CREATE TABLE abc.t(id INT PRIMARY KEY);
  changeType: 1
- statement: CREATE TABLE t(id INT, PRIMARY KEY (id))
  changeType: 1
- statement: CREATE TABLE "TEST_DB".t(id INT)
  changeType: 1
  want:
    - status: 2
      code: 601
      title: TABLE_REQUIRE_PK
      content: Table "TEST_DB"."T" requires PRIMARY KEY.
      startposition:
        line: 1
        column: 0
      endposition: null
- statement: |-
    CREATE TABLE t(id INT);
                DROP TABLE t
  changeType: 1
- statement: |-
    CREATE TABLE t(id INT);
    ALTER TABLE t ADD CONSTRAINT tpk PRIMARY KEY (id)
  changeType: 1
- statement: |-
    CREATE TABLE t(id INT PRIMARY KEY);
    ALTER TABLE t DROP PRIMARY KEY
  changeType: 1
  want:
    - status: 2
      code: 601
      title: TABLE_REQUIRE_PK
      content: Table "TEST_DB"."T" requires PRIMARY KEY.
      startposition:
        line: 2
        column: 0
      endposition: null