Implement comments

This commit is contained in:
Paul Draper 2021-01-31 20:46:05 -07:00
parent 5946d144ea
commit 6fd7acda34
8 changed files with 19 additions and 0 deletions

View File

@ -21,6 +21,7 @@ THINGS = [
"collations",
"rlspolicies",
"triggers",
"comments",
]
PK = "PRIMARY KEY"

View File

@ -111,6 +111,7 @@ class Migration(object):
self.add(self.changes.rlspolicies(creations_only=True))
self.add(self.changes.triggers(creations_only=True))
self.add(self.changes.collations(drops_only=True))
self.add(self.changes.comments(creations_only=True))
self.add(self.changes.schemas(drops_only=True))
@property

View File

@ -0,0 +1 @@
create table example0 (a int);

View File

View File

@ -0,0 +1,5 @@
create table example (a int);
comment on table example is 'Example table';
comment on column example.a is 'Example column';

View File

@ -0,0 +1,10 @@
drop table "public"."example0";
create table "public"."example" (
"a" integer
);
comment on column "public"."example"."a" is 'Example column';
comment on table "public"."example" is 'Example table';

View File

View File

@ -61,6 +61,7 @@ def test_singleschema_ext():
fixtures = """\
everything
comments
collations
identitycols
partitioning