Skip to content

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

chore: update get design schema tests (#8816)

boojack8d40ef90e364
diff --git a/backend/api/v1/testdata/design.yaml b/backend/api/v1/testdata/design.yaml
index 8e6ceed33a..80c0d20f55 100644
--- a/backend/api/v1/testdata/design.yaml
+++ b/backend/api/v1/testdata/design.yaml
@@ -142,3 +142,32 @@
CONSTRAINT `fk1` FOREIGN KEY (`b`) REFERENCES `t4` (`b`)
);
+- engine: 2
+ baseline: |-
+ CREATE TABLE `t` (
+ `a` int
+ );
+ target: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "type": "int"
+ }
+ ],
+ "comment": "this is comment"
+ }
+ ]
+ }
+ ]
+ }
+ # FIXME: table-level comment is not supported.
+ result: |+
+ CREATE TABLE `t` (
+ `a` int NOT NULL
+ );