From 86b9b25fb381593069906874175cc8382ff4f9c0 Mon Sep 17 00:00:00 2001 From: Boulder Sprinters Date: Sun, 5 Nov 2006 00:28:01 +0000 Subject: [PATCH] [boulder-oracle-sprint] fixed m2m sequence names git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4012 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management.py b/django/core/management.py index aebc519d35..a12b95fd52 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -279,7 +279,7 @@ def _get_many_to_many_sql_for_model(model): if (settings.DATABASE_ENGINE == 'oracle'): m_table = f.m2m_db_table() sequence_name = truncate_name('%s_sq' % m_table, backend.get_max_name_length()) - sequence_statement = 'CREATE SEQUENCE %s_sq;' % sequence_name + sequence_statement = 'CREATE SEQUENCE %s;' % sequence_name final_output.append(sequence_statement) trigger_statement = '' + \ 'CREATE OR REPLACE trigger %s_tr\n' % m_table + \