mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +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:
parent
04af379c70
commit
0e53925f7d
@ -187,6 +187,9 @@ def get_autoinc_sql(table):
|
||||
END;\n""" % (tr_name, quote_name(table), sq_name)
|
||||
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():
|
||||
# TODO: colorize this SQL code with style.SQL_KEYWORD(), etc.
|
||||
return """
|
||||
|
Loading…
x
Reference in New Issue
Block a user