oops, forgot to clean that
authorsylvain.thenault@logilab.fr
Tue, 07 Apr 2009 08:55:37 +0200
changeset 1262 abaadb570626
parent 1261 e5d470127758
child 1263 01152fffd593
child 1278 10fa95dd91ab
oops, forgot to clean that
server/migractions.py
--- a/server/migractions.py	Mon Apr 06 18:45:16 2009 +0200
+++ b/server/migractions.py	Tue Apr 07 08:55:37 2009 +0200
@@ -67,18 +67,10 @@
             if rschema == 'has_text':
                 continue
             if rschema.is_final() or rschema.inlined:
-                if isinstance(source, SQLiteAbstractSource):
-                    sqlcu.execute('ALTER TABLE cw_%s ADD COLUMN cw_%s'
-                                  % (etype, rschema))
-                    sqlcu.execute('UPDATE cw_%s SET %s=cw_%s'
-                                  % (etype, rschema, rschema))
-                    print 'added %s.cw_%s column for source %s' % (
-                        etype, rschema, uri)
-                else:
-                    sqlcu.execute('ALTER TABLE cw_%s RENAME %s TO cw_%s'
-                                  % (etype, rschema, rschema))
-                    print 'renamed %s.%s column for source %s' % (
-                        etype, rschema, uri)
+                sqlcu.execute('ALTER TABLE cw_%s RENAME %s TO cw_%s'
+                              % (etype, rschema, rschema))
+                print 'renamed %s.%s column for source %s' % (
+                    etype, rschema, uri)
     pool.commit()
     repo._free_pool(pool)