1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
apply 1.hcl
cmpshow users 1.sql
apply 2.hcl
cmpshow users 2.sql
-- 1.hcl --
schema "$db" {}
table "users" {
schema = schema.$db
column "created_at" {
null = false
type = timestamp
comment = "without time zone"
}
}
-- 1.sql --
Table "script_column_comment.users"
Column | Type | Collation | Nullable | Default
------------+-----------------------------+-----------+----------+---------
created_at | timestamp without time zone | | not null |
-- 2.hcl --
schema "$db" {}
table "users" {
schema = schema.$db
column "created_at" {
null = false
type = timestamptz
comment = "with time zone"
}
}
-- 2.sql --
Table "script_column_comment.users"
Column | Type | Collation | Nullable | Default
------------+--------------------------+-----------+----------+---------
created_at | timestamp with time zone | | not null |
|