Commit 0f1a3b635233ba7a42e8e93f1b896c4edd937346

Authored by Neil Blakey-Milner
1 parent 162cd8cf

Final install sql for 2.99.1


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3836 c91229c3-7414-0410-bfa2-8a42b809f60b
sql/mysql/install/data.sql
... ... @@ -3,11 +3,11 @@
3 3 -- http://www.phpmyadmin.net
4 4 --
5 5 -- Host: localhost
6   --- Generation Time: Oct 07, 2005 at 02:36 PM
  6 +-- Generation Time: Oct 17, 2005 at 11:15 AM
7 7 -- Server version: 4.0.24
8   --- PHP Version: 4.4.0-2
  8 +-- PHP Version: 4.4.0-3
9 9 --
10   --- Database: `kttest`
  10 +-- Database: `ktpristine`
11 11 --
12 12  
13 13 --
... ... @@ -185,7 +185,7 @@ INSERT INTO document_types_lookup VALUES (1, 'Default');
185 185 -- Dumping data for table `fieldsets`
186 186 --
187 187  
188   -INSERT INTO fieldsets VALUES (1, 'Category', 'local.category', 0, 0, 1, 1);
  188 +INSERT INTO fieldsets VALUES (1, 'Category', 'local.category', 0, 0, 1, 1, 0, 1);
189 189  
190 190 --
191 191 -- Dumping data for table `folder_doctypes_link`
... ...
sql/mysql/install/structure.sql
... ... @@ -3,11 +3,11 @@
3 3 -- http://www.phpmyadmin.net
4 4 --
5 5 -- Host: localhost
6   --- Generation Time: Oct 07, 2005 at 02:34 PM
  6 +-- Generation Time: Oct 17, 2005 at 11:07 AM
7 7 -- Server version: 4.0.24
8   --- PHP Version: 4.4.0-2
  8 +-- PHP Version: 4.4.0-3
9 9 --
10   --- Database: `kttest`
  10 +-- Database: `ktpristine`
11 11 --
12 12  
13 13 -- --------------------------------------------------------
... ... @@ -186,7 +186,8 @@ CREATE TABLE document_fields (
186 186 has_lookup tinyint(1) default NULL,
187 187 has_lookuptree tinyint(1) default NULL,
188 188 parent_fieldset int(11) default NULL,
189   - UNIQUE KEY id (id)
  189 + UNIQUE KEY id (id),
  190 + KEY parent_fieldset (parent_fieldset)
190 191 ) TYPE=InnoDB;
191 192  
192 193 -- --------------------------------------------------------
... ... @@ -466,8 +467,11 @@ CREATE TABLE fieldsets (
466 467 is_conditional tinyint(1) NOT NULL default '0',
467 468 master_field int(11) default NULL,
468 469 is_generic tinyint(1) NOT NULL default '0',
  470 + is_complex tinyint(1) NOT NULL default '0',
  471 + is_complete tinyint(1) NOT NULL default '1',
469 472 UNIQUE KEY id (id),
470   - KEY is_generic (is_generic)
  473 + KEY is_generic (is_generic),
  474 + KEY is_complete (is_complete)
471 475 ) TYPE=InnoDB;
472 476  
473 477 -- --------------------------------------------------------
... ... @@ -1866,6 +1870,12 @@ CREATE TABLE zseq_workflows (
1866 1870 --
1867 1871  
1868 1872 --
  1873 +-- Constraints for table `document_fields`
  1874 +--
  1875 +ALTER TABLE `document_fields`
  1876 + ADD CONSTRAINT `document_fields_ibfk_1` FOREIGN KEY (`parent_fieldset`) REFERENCES `fieldsets` (`id`) ON DELETE CASCADE;
  1877 +
  1878 +--
1869 1879 -- Constraints for table `field_behaviour_options`
1870 1880 --
1871 1881 ALTER TABLE `field_behaviour_options`
... ...