[deseb commit] r82 - fixed updated_unique

1 view
Skip to first unread message

codesite...@google.com

unread,
Jun 9, 2009, 7:10:20 PM6/9/09
to deseb-...@googlegroups.com
Author: pub...@kered.org
Date: Tue Jun 9 15:42:17 2009
New Revision: 82

Modified:
trunk/src/deseb/backends/mysql.py
trunk/src/deseb/schema_evolution.py

Log:
fixed updated_unique


Modified: trunk/src/deseb/backends/mysql.py
==============================================================================
--- trunk/src/deseb/backends/mysql.py (original)
+++ trunk/src/deseb/backends/mysql.py Tue Jun 9 15:42:17 2009
@@ -72,8 +72,8 @@
col_def = fct(col_type)
if not f.primary_key:
col_def += ' ' + kw(not f.null and 'NOT NULL' or 'NULL')
- #if f.unique:
- # col_def += ' ' + kw('UNIQUE')
+ if f.unique:
+ col_def += ' ' + kw('UNIQUE')
#if f.primary_key:
# col_def += ' ' + kw('PRIMARY KEY')
output.append(

Modified: trunk/src/deseb/schema_evolution.py
==============================================================================
--- trunk/src/deseb/schema_evolution.py (original)
+++ trunk/src/deseb/schema_evolution.py Tue Jun 9 15:42:17 2009
@@ -267,7 +267,6 @@
if update_type or update_null or update_length or
update_unique or update_primary or update_sequences:
#print "cf, f.default, column_flags['default']", cf,
f.default, column_flags['default'], f.default.__class__
f_default = get_field_default(f)
- print 'woot'
updates = {
'update_type': update_type,
'update_length': update_length,

Reply all
Reply to author
Forward
0 new messages