You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// read table and verify table and column comments are returned
42
+
{
43
+
Description: "table and column comments are returned on GET",
44
+
Query: "/dbtest/tables/comments_test",
45
+
Expected: `{"name":"comments_test","schema":"public","owner":"admin","comment":"This is a test table","rowsecurity":false,"columns":[{"name":"id","type":"int4","notnull":true,"default":null,"comment":null,"constraints":null,"table":"comments_test","schema":"public"},{"name":"name","type":"text","notnull":false,"default":null,"comment":"The name field","constraints":null,"table":"comments_test","schema":"public"}],"constraints":null,"hasindexes":false,"hastriggers":false,"ispartition":false}`,
46
+
Status: 200,
47
+
},
48
+
// update table comment via PATCH
49
+
{
50
+
Description: "can update table comment",
51
+
Method: "PATCH",
52
+
Query: "/dbtest/tables/comments_test",
53
+
Body: `{"comment": "Updated table comment"}`,
54
+
Status: 201,
55
+
},
56
+
// update column comment via PATCH
57
+
{
58
+
Description: "can update column comment",
59
+
Method: "PATCH",
60
+
Query: "/dbtest/tables/comments_test/columns/id",
61
+
Body: `{"comment": "The primary key"}`,
62
+
Status: 200,
63
+
},
64
+
// verify updated comments
65
+
{
66
+
Description: "updated comments are returned on GET",
67
+
Query: "/dbtest/tables/comments_test",
68
+
Expected: `{"name":"comments_test","schema":"public","owner":"admin","comment":"Updated table comment","rowsecurity":false,"columns":[{"name":"id","type":"int4","notnull":true,"default":null,"comment":"The primary key","constraints":null,"table":"comments_test","schema":"public"},{"name":"name","type":"text","notnull":false,"default":null,"comment":"The name field","constraints":null,"table":"comments_test","schema":"public"}],"constraints":null,"hasindexes":false,"hastriggers":false,"ispartition":false}`,
0 commit comments