fix changing clip layers
This commit is contained in:
parent
c62df3ae10
commit
a36da2fcbb
1 changed files with 4 additions and 0 deletions
|
@ -89,8 +89,12 @@ class Command(BaseCommand):
|
|||
sql = 'CREATE INDEX "%s_%s_idx" ON "%s" ("%s")' % (table_name, name,
|
||||
table_name, name)
|
||||
changes.append(sql)
|
||||
sql = 'COMMIT'
|
||||
changes.append(sql)
|
||||
sql = 'ALTER TABLE "%s" ALTER COLUMN "%s" SET NOT NULL' % (table_name, name)
|
||||
changes.append(sql)
|
||||
sql = 'BEGIN'
|
||||
changes.append(sql)
|
||||
if changes:
|
||||
print "Database needs to be updated, plase wait..."
|
||||
for sql in changes:
|
||||
|
|
Loading…
Reference in a new issue