From 0f1a3b635233ba7a42e8e93f1b896c4edd937346 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Mon, 17 Oct 2005 09:22:34 +0000 Subject: [PATCH] Final install sql for 2.99.1 --- sql/mysql/install/data.sql | 8 ++++---- sql/mysql/install/structure.sql | 20 +++++++++++++++----- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/sql/mysql/install/data.sql b/sql/mysql/install/data.sql index 69096d8..c18265f 100644 --- a/sql/mysql/install/data.sql +++ b/sql/mysql/install/data.sql @@ -3,11 +3,11 @@ -- http://www.phpmyadmin.net -- -- Host: localhost --- Generation Time: Oct 07, 2005 at 02:36 PM +-- Generation Time: Oct 17, 2005 at 11:15 AM -- Server version: 4.0.24 --- PHP Version: 4.4.0-2 +-- PHP Version: 4.4.0-3 -- --- Database: `kttest` +-- Database: `ktpristine` -- -- @@ -185,7 +185,7 @@ INSERT INTO document_types_lookup VALUES (1, 'Default'); -- Dumping data for table `fieldsets` -- -INSERT INTO fieldsets VALUES (1, 'Category', 'local.category', 0, 0, 1, 1); +INSERT INTO fieldsets VALUES (1, 'Category', 'local.category', 0, 0, 1, 1, 0, 1); -- -- Dumping data for table `folder_doctypes_link` diff --git a/sql/mysql/install/structure.sql b/sql/mysql/install/structure.sql index 552e681..a1655e8 100644 --- a/sql/mysql/install/structure.sql +++ b/sql/mysql/install/structure.sql @@ -3,11 +3,11 @@ -- http://www.phpmyadmin.net -- -- Host: localhost --- Generation Time: Oct 07, 2005 at 02:34 PM +-- Generation Time: Oct 17, 2005 at 11:07 AM -- Server version: 4.0.24 --- PHP Version: 4.4.0-2 +-- PHP Version: 4.4.0-3 -- --- Database: `kttest` +-- Database: `ktpristine` -- -- -------------------------------------------------------- @@ -186,7 +186,8 @@ CREATE TABLE document_fields ( has_lookup tinyint(1) default NULL, has_lookuptree tinyint(1) default NULL, parent_fieldset int(11) default NULL, - UNIQUE KEY id (id) + UNIQUE KEY id (id), + KEY parent_fieldset (parent_fieldset) ) TYPE=InnoDB; -- -------------------------------------------------------- @@ -466,8 +467,11 @@ CREATE TABLE fieldsets ( is_conditional tinyint(1) NOT NULL default '0', master_field int(11) default NULL, is_generic tinyint(1) NOT NULL default '0', + is_complex tinyint(1) NOT NULL default '0', + is_complete tinyint(1) NOT NULL default '1', UNIQUE KEY id (id), - KEY is_generic (is_generic) + KEY is_generic (is_generic), + KEY is_complete (is_complete) ) TYPE=InnoDB; -- -------------------------------------------------------- @@ -1866,6 +1870,12 @@ CREATE TABLE zseq_workflows ( -- -- +-- Constraints for table `document_fields` +-- +ALTER TABLE `document_fields` + ADD CONSTRAINT `document_fields_ibfk_1` FOREIGN KEY (`parent_fieldset`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE; + +-- -- Constraints for table `field_behaviour_options` -- ALTER TABLE `field_behaviour_options` -- libgit2 0.21.4