[Fusionforge-commits] r14872 - in trunk: . src/db

Roland Mas lolando at fusionforge.org
Thu Nov 17 20:57:06 CET 2011

Author: lolando
Date: 2011-11-17 20:57:06 +0100 (Thu, 17 Nov 2011)
New Revision: 14872

More convergence SQL

Modified: trunk/src/db/20111017-schema-convergence-src-1.sql
--- trunk/src/db/20111017-schema-convergence-src-1.sql	2011-11-17 19:56:57 UTC (rev 14871)
+++ trunk/src/db/20111017-schema-convergence-src-1.sql	2011-11-17 19:57:06 UTC (rev 14872)
@@ -37,7 +37,6 @@
 DROP INDEX plugins_plugin_name_key;
 ALTER TABLE plugins ADD CONSTRAINT plugins_plugin_name_key UNIQUE (plugin_name);
-ALTER TABLE project_category ADD CONSTRAINT project_category_pkey PRIMARY KEY (category_id);
 ALTER TABLE project_tags ADD CONSTRAINT project_tags_group_id_fkey FOREIGN KEY (group_id) REFERENCES groups(group_id) MATCH FULL;
 ALTER TABLE project_task ADD CONSTRAINT project_task_group_project_id_f FOREIGN KEY (group_project_id) REFERENCES project_group_list(group_project_id) MATCH FULL;
@@ -50,7 +49,6 @@
 ALTER TABLE role ADD CONSTRAINT role_group_id_fkey FOREIGN KEY (group_id) REFERENCES groups(group_id) ON DELETE CASCADE;
-ALTER TABLE ONLY themes ADD CONSTRAINT themes_pkey PRIMARY KEY (theme_id);
 ALTER TABLE project_messages ALTER COLUMN project_message_id SET DEFAULT nextval('project_messages_project_message_id_seq'::regclass);
 ALTER SEQUENCE project_messages_project_message_id_seq OWNED BY project_messages.project_message_id;
@@ -113,5 +111,12 @@
 ALTER TABLE user_preferences DROP COLUMN set_date;
 ALTER TABLE user_preferences RENAME COLUMN set_date_new TO set_date;
+ALTER TABLE project_task DROP CONSTRAINT project_task_category_id_fkey;
 DROP INDEX project_categor_category_id_key;
-DROP INDEX themes_theme_id_key;
\ No newline at end of file
+ALTER TABLE project_category ADD CONSTRAINT project_category_pkey PRIMARY KEY (category_id);
+ALTER TABLE project_task ADD CONSTRAINT project_task_category_id_fkey FOREIGN KEY (category_id) REFERENCES project_category(category_id);
+ALTER TABLE users DROP CONSTRAINT users_themeid;
+DROP INDEX themes_theme_id_key;
+ALTER TABLE themes ADD CONSTRAINT themes_pkey PRIMARY KEY (theme_id);
+ALTER TABLE users ADD CONSTRAINT users_themeid FOREIGN KEY (theme_id) REFERENCES themes(theme_id) MATCH FULL;

More information about the Fusionforge-commits mailing list