[Fusionforge-commits] r10684 - trunk/src/db

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Sat Sep 25 12:25:51 CEST 2010


Author: nerville
Date: 2010-09-25 12:25:50 +0200 (Sat, 25 Sep 2010)
New Revision: 10684

Modified:
   trunk/src/db/20100924-theme.sql
Log:
enhance db theme migration

Modified: trunk/src/db/20100924-theme.sql
===================================================================
--- trunk/src/db/20100924-theme.sql	2010-09-25 10:09:30 UTC (rev 10683)
+++ trunk/src/db/20100924-theme.sql	2010-09-25 10:25:50 UTC (rev 10684)
@@ -1,4 +1,11 @@
-update users set theme_id = 1 where theme_id = 2 or theme_id = 4;
-delete from themes where theme_id = 2;
-delete from themes where theme_id = 4;
+update users set theme_id = (select theme_id from themes where dirname = 'gforge') where theme_id = (select theme_id from themes where dirname = 'osx');
+update users set theme_id = (select theme_id from themes where dirname = 'gforge') where theme_id = (select theme_id from themes where dirname = 'gforge_classic');
+update users set theme_id = (select theme_id from themes where dirname = 'gforge') where theme_id = (select theme_id from themes where dirname = 'gforge-simple-theme');
+update users set theme_id = (select theme_id from themes where dirname = 'gforge') where theme_id = (select theme_id from themes where dirname = 'lite');
+update users set theme_id = (select theme_id from themes where dirname = 'gforge') where theme_id = (select theme_id from themes where dirname = 'ultralite');
+delete from themes where dirname = 'osx';
+delete from themes where dirname = 'gforge-classic';
+delete from themes where dirname = 'gforge-simple-theme';
+delete from themes where dirname = 'lite';
+delete from themes where dirname = 'ultralite';
 insert into themes (dirname,fullname,enabled) values ('funky','Funky','t');




More information about the Fusionforge-commits mailing list