fix(minor): quote the column names in alter table
This commit is contained in:
parent
39e36e01cd
commit
5e4ee1a6bc
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class PostgresTable(DBTable):
|
|||
elif col.fieldtype in ("Check"):
|
||||
using_clause = "USING {}::smallint".format(col.fieldname)
|
||||
|
||||
query.append("ALTER COLUMN {0} TYPE {1} {2}".format(
|
||||
query.append("ALTER COLUMN `{0}` TYPE {1} {2}".format(
|
||||
col.fieldname,
|
||||
get_definition(col.fieldtype, precision=col.precision, length=col.length),
|
||||
using_clause)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue