Commit 4d816c98b09d61cdb337b0d0d4a7a8b475017fc1

Authored by Neil Blakey-Milner
1 parent bf8e3bf7

Add "DROP TABLE IF EXISTS" before creating the tables.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5457 c91229c3-7414-0410-bfa2-8a42b809f60b
sql/mysql/upgrade/3.0.1.1/document_role_allocations.sql
1 SET FOREIGN_KEY_CHECKS=0; 1 SET FOREIGN_KEY_CHECKS=0;
2 2
  3 +DROP TABLE IF EXISTS `document_role_allocations`;
3 CREATE TABLE `document_role_allocations` ( 4 CREATE TABLE `document_role_allocations` (
4 `id` int(11) NOT NULL default '0', 5 `id` int(11) NOT NULL default '0',
5 `document_id` int(11) NOT NULL default '0', 6 `document_id` int(11) NOT NULL default '0',
@@ -9,6 +10,7 @@ CREATE TABLE `document_role_allocations` ( @@ -9,6 +10,7 @@ CREATE TABLE `document_role_allocations` (
9 KEY `document_id` (`document_id`) 10 KEY `document_id` (`document_id`)
10 ) TYPE=InnoDB ; 11 ) TYPE=InnoDB ;
11 12
  13 +DROP TABLE IF EXISTS `zseq_document_role_allocations`;
12 CREATE TABLE `zseq_document_role_allocations` ( 14 CREATE TABLE `zseq_document_role_allocations` (
13 `id` int(10) unsigned NOT NULL auto_increment, 15 `id` int(10) unsigned NOT NULL auto_increment,
14 PRIMARY KEY (`id`) 16 PRIMARY KEY (`id`)