mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-10 19:36:33 +03:00
Simplified
This commit is contained in:
parent
e14de715f7
commit
6a5889280d
|
@ -85,7 +85,7 @@ class AlterTable(ModelOperation):
|
|||
logger.info(' Add column %s', name)
|
||||
cmd = 'ADD COLUMN %s %s' % (name, field.get_sql(db=database))
|
||||
if is_regular_field:
|
||||
if prev_name is not None:
|
||||
if prev_name:
|
||||
cmd += ' AFTER %s' % prev_name
|
||||
else:
|
||||
cmd += ' FIRST'
|
||||
|
|
Loading…
Reference in New Issue
Block a user