Example #1
0
 def visit_index(self, param):
     # If MySQL can do this, I can't find how
     raise exceptions.NotSupportedError("MySQL cannot rename indexes")
Example #2
0
 def visit_migrate_check_constraint(self, *p, **k):
     raise exceptions.NotSupportedError("MySQL does not support CHECK"
         " constraints, use triggers instead.")
Example #3
0
 def cascade_constraint(self, constraint):
     """Cascading constraints is not supported"""
     raise exceptions.NotSupportedError(
         "Firebird does not support cascading constraints")
Example #4
0
 def _visit_column_nullable(self, table, column, delta):
     """Changing NULL is not supported"""
     # TODO: http://www.firebirdfaq.org/faq103/
     raise exceptions.NotSupportedError(
         "Firebird does not support altering NULL bevahior.")
Example #5
0
 def visit_table(self, table):
     """Rename table not supported"""
     raise exceptions.NotSupportedError(
         "Firebird does not support renaming tables.")
Example #6
0
 def _not_supported(self, op):
     raise exceptions.NotSupportedError(
         "SQLite does not support "
         "%s; see http://www.sqlite.org/lang_altertable.html" % op)
 def get_constraint_name(self, cons):
     # Oracle constraints can't guess their name like other DBs
     if not cons.name:
         raise exceptions.NotSupportedError(
             "Oracle constraint names must be explicitly stated")
     return cons.name