server/schemahooks.py
changeset 2011 758ccc0a9d16
parent 1990 59507a12a7f4
parent 2007 62d72d65e50d
child 2019 399a930e10ef
--- a/server/schemahooks.py	Fri May 29 19:36:08 2009 +0200
+++ b/server/schemahooks.py	Fri May 29 20:22:39 2009 +0200
@@ -588,7 +588,7 @@
             else:
                 cmd = 'DROP'
             sqlexec('ALTER TABLE %s ALTER COLUMN %s %s NOT NULL' % (
-                table, SQL_PREFIX + etype, SQL_PREFIX + rtype))
+                SQL_PREFIX + etype, SQL_PREFIX + rtype, cmd))
 
     def commit_event(self):
         # structure should be clean, not need to remove entity's relations