def visit_index(self, param): # If MySQL can do this, I can't find how raise exceptions.NotSupportedError("MySQL cannot rename indexes")
def visit_migrate_check_constraint(self, *p, **k): raise exceptions.NotSupportedError("MySQL does not support CHECK" " constraints, use triggers instead.")
def cascade_constraint(self, constraint): """Cascading constraints is not supported""" raise exceptions.NotSupportedError( "Firebird does not support cascading constraints")
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.")
def visit_table(self, table): """Rename table not supported""" raise exceptions.NotSupportedError( "Firebird does not support renaming tables.")
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