equal
deleted
inserted
replaced
181 if drop: |
181 if drop: |
182 _title = '-> drop tables ' |
182 _title = '-> drop tables ' |
183 dropsql = sqldropschema(schema, driver) |
183 dropsql = sqldropschema(schema, driver) |
184 try: |
184 try: |
185 sqlexec(dropsql, execute, pbtitle=_title) |
185 sqlexec(dropsql, execute, pbtitle=_title) |
186 except Exception, ex: |
186 except Exception as ex: |
187 print '-> drop failed, skipped (%s).' % ex |
187 print '-> drop failed, skipped (%s).' % ex |
188 sqlcnx.rollback() |
188 sqlcnx.rollback() |
189 _title = '-> creating tables ' |
189 _title = '-> creating tables ' |
190 print _title, |
190 print _title, |
191 # schema entities and relations tables |
191 # schema entities and relations tables |