cubicweb/misc/migration/3.9.0_Any.py
changeset 11057 0b59724cb3f2
parent 5768 1e73a466aa69
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb/misc/migration/3.9.0_Any.py	Sat Jan 16 13:48:51 2016 +0100
@@ -0,0 +1,3 @@
+if repo.system_source.dbdriver == 'postgres':
+    sql('ALTER TABLE appears ADD COLUMN weight float')
+    sql('UPDATE appears SET weight=1.0 ')