mirror of
https://github.com/itflow-org/itflow
synced 2026-03-27 07:45:37 +00:00
Add contact department column to db.sql, remove departments table,document_tags and documents_tagged.
This commit is contained in:
30
db.sql
30
db.sql
@@ -289,6 +289,7 @@ CREATE TABLE `contacts` (
|
|||||||
`contact_id` int(11) NOT NULL AUTO_INCREMENT,
|
`contact_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`contact_name` varchar(200) NOT NULL,
|
`contact_name` varchar(200) NOT NULL,
|
||||||
`contact_title` varchar(200) DEFAULT NULL,
|
`contact_title` varchar(200) DEFAULT NULL,
|
||||||
|
`contact_department` varchar(200) DEFAULT NULL,
|
||||||
`contact_email` varchar(200) DEFAULT NULL,
|
`contact_email` varchar(200) DEFAULT NULL,
|
||||||
`contact_phone` varchar(200) DEFAULT NULL,
|
`contact_phone` varchar(200) DEFAULT NULL,
|
||||||
`contact_extension` varchar(200) DEFAULT NULL,
|
`contact_extension` varchar(200) DEFAULT NULL,
|
||||||
@@ -370,21 +371,6 @@ CREATE TABLE `departments` (
|
|||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
--
|
|
||||||
-- Table structure for table `document_tags`
|
|
||||||
--
|
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `document_tags`;
|
|
||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
|
||||||
CREATE TABLE `document_tags` (
|
|
||||||
`tag_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`tag_name` varchar(30) NOT NULL,
|
|
||||||
`client_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`tag_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `documents`
|
-- Table structure for table `documents`
|
||||||
--
|
--
|
||||||
@@ -414,20 +400,6 @@ CREATE TABLE `documents` (
|
|||||||
--
|
--
|
||||||
ALTER TABLE `documents` ADD FULLTEXT KEY `document_content_raw` (`document_content_raw`);
|
ALTER TABLE `documents` ADD FULLTEXT KEY `document_content_raw` (`document_content_raw`);
|
||||||
|
|
||||||
--
|
|
||||||
-- Table structure for table `documents_tagged`
|
|
||||||
--
|
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `documents_tagged`;
|
|
||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
|
||||||
CREATE TABLE `documents_tagged` (
|
|
||||||
`document_id` int(11) NOT NULL,
|
|
||||||
`tag_id` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`document_id`,`tag_id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `domains`
|
-- Table structure for table `domains`
|
||||||
--
|
--
|
||||||
|
|||||||
Reference in New Issue
Block a user