server/__init__.py
changeset 8695 358d8bed9626
parent 8694 d901c36bcfce
child 8755 1f3757ef3762
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   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