1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

boulder-oracle-sprint: Added Oracle DROP SEQUENCE emission to the sqlclear command.

git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Boulder Sprinters 2007-04-18 23:23:50 +00:00
parent 04af379c70
commit 0e53925f7d
2 changed files with 5 additions and 2 deletions

View File

@ -187,6 +187,9 @@ def get_autoinc_sql(table):
END;\n""" % (tr_name, quote_name(table), sq_name) END;\n""" % (tr_name, quote_name(table), sq_name)
return sequence_sql, trigger_sql return sequence_sql, trigger_sql
def get_drop_sequence(table):
return "DROP SEQUENCE %s;" % quote_name(get_sequence_name(table))
def _get_sequence_reset_sql(): def _get_sequence_reset_sql():
# TODO: colorize this SQL code with style.SQL_KEYWORD(), etc. # TODO: colorize this SQL code with style.SQL_KEYWORD(), etc.
return """ return """