mirror of
https://github.com/django/django.git
synced 2025-09-11 13:06:29 +00:00
Fixed #3790 -- Fixed a problem with sequence resetting during fixture loads when using Postgres. Thanks to Jon Ballard and scott@staplefish.com for the report, and to Zach Thompson for suggesting a solution.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e339a41222
commit
dabd96646c
14 changed files with 121 additions and 26 deletions
|
@ -215,6 +215,11 @@ def get_sql_flush(style, tables, sequences):
|
|||
else:
|
||||
return []
|
||||
|
||||
def get_sql_sequence_reset(style, model_list):
|
||||
"Returns a list of the SQL statements to reset sequences for the given models."
|
||||
# No sequence reset required
|
||||
return []
|
||||
|
||||
OPERATOR_MAPPING = {
|
||||
'exact': '= %s',
|
||||
'iexact': 'LIKE %s',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue