mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-28 03:33:43 +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)
|
logger.info(' Add column %s', name)
|
||||||
cmd = 'ADD COLUMN %s %s' % (name, field.get_sql(db=database))
|
cmd = 'ADD COLUMN %s %s' % (name, field.get_sql(db=database))
|
||||||
if is_regular_field:
|
if is_regular_field:
|
||||||
if prev_name is not None:
|
if prev_name:
|
||||||
cmd += ' AFTER %s' % prev_name
|
cmd += ' AFTER %s' % prev_name
|
||||||
else:
|
else:
|
||||||
cmd += ' FIRST'
|
cmd += ' FIRST'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user