fix changing clip layers

This commit is contained in:
j 2013-03-01 09:13:34 +00:00
parent c62df3ae10
commit a36da2fcbb

View file

@ -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: