From 5be7abbca24904b6c8c0c298e0af6ea10d7f1048 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Tue, 28 Mar 2006 09:33:39 +0000 Subject: [PATCH] Move document_role_allocations.sql from 3.0.2 to 3.0.1.1 (post-3.0.1 translation release) --- sql/mysql/upgrade/3.0.1.1/document_role_allocations.sql | 22 ++++++++++++++++++++++ sql/mysql/upgrade/3.0.2/document_role_allocations.sql | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 sql/mysql/upgrade/3.0.1.1/document_role_allocations.sql delete mode 100644 sql/mysql/upgrade/3.0.2/document_role_allocations.sql diff --git a/sql/mysql/upgrade/3.0.1.1/document_role_allocations.sql b/sql/mysql/upgrade/3.0.1.1/document_role_allocations.sql new file mode 100644 index 0000000..d189cc3 --- /dev/null +++ b/sql/mysql/upgrade/3.0.1.1/document_role_allocations.sql @@ -0,0 +1,22 @@ +SET FOREIGN_KEY_CHECKS=0; + +CREATE TABLE `document_role_allocations` ( + `id` int(11) NOT NULL default '0', + `document_id` int(11) NOT NULL default '0', + `role_id` int(11) NOT NULL default '0', + `permission_descriptor_id` int(11) NOT NULL default '0', + UNIQUE KEY `id` (`id`), + KEY `document_id` (`document_id`) +) TYPE=InnoDB ; + +CREATE TABLE `zseq_document_role_allocations` ( + `id` int(10) unsigned NOT NULL auto_increment, + PRIMARY KEY (`id`) +) TYPE=MyISAM ; + +INSERT INTO `roles` VALUES (-1, 'Owner'); +ALTER TABLE `documents` ADD `owner_id` int(11) NOT NULL default '0'; +UPDATE `documents` SET `owner_id` = `creator_id`; + + +SET FOREIGN_KEY_CHECKS=1; diff --git a/sql/mysql/upgrade/3.0.2/document_role_allocations.sql b/sql/mysql/upgrade/3.0.2/document_role_allocations.sql deleted file mode 100644 index d189cc3..0000000 --- a/sql/mysql/upgrade/3.0.2/document_role_allocations.sql +++ /dev/null @@ -1,22 +0,0 @@ -SET FOREIGN_KEY_CHECKS=0; - -CREATE TABLE `document_role_allocations` ( - `id` int(11) NOT NULL default '0', - `document_id` int(11) NOT NULL default '0', - `role_id` int(11) NOT NULL default '0', - `permission_descriptor_id` int(11) NOT NULL default '0', - UNIQUE KEY `id` (`id`), - KEY `document_id` (`document_id`) -) TYPE=InnoDB ; - -CREATE TABLE `zseq_document_role_allocations` ( - `id` int(10) unsigned NOT NULL auto_increment, - PRIMARY KEY (`id`) -) TYPE=MyISAM ; - -INSERT INTO `roles` VALUES (-1, 'Owner'); -ALTER TABLE `documents` ADD `owner_id` int(11) NOT NULL default '0'; -UPDATE `documents` SET `owner_id` = `creator_id`; - - -SET FOREIGN_KEY_CHECKS=1; -- libgit2 0.21.4