Fix: move llx_ecm_documents in external module
This commit is contained in:
parent
66af48697c
commit
e1fcaf738f
@ -90,7 +90,6 @@ ALTER TABLE llx_accountingaccount ADD COLUMN active tinyint DEFAULT 1 NOT NULL
|
||||
|
||||
ALTER TABLE llx_actioncomm MODIFY elementtype VARCHAR(32);
|
||||
|
||||
-- TASK #107
|
||||
ALTER TABLE llx_ecm_directories MODIFY COLUMN label varchar(64) NOT NULL;
|
||||
ALTER TABLE llx_ecm_directories ADD COLUMN fullpath text AFTER cachenbofdoc;
|
||||
ALTER TABLE llx_ecm_directories MODIFY COLUMN fullpath text;
|
||||
@ -101,31 +100,10 @@ ALTER TABLE llx_ecm_directories ADD INDEX idx_ecm_directories_fk_user_m (fk_user
|
||||
ALTER TABLE llx_ecm_directories ADD CONSTRAINT fk_ecm_directories_fk_user_c FOREIGN KEY (fk_user_c) REFERENCES llx_user (rowid);
|
||||
ALTER TABLE llx_ecm_directories ADD CONSTRAINT fk_ecm_directories_fk_user_m FOREIGN KEY (fk_user_m) REFERENCES llx_user (rowid);
|
||||
|
||||
ALTER TABLE llx_ecm_documents DROP FOREIGN KEY fk_ecm_documents_fk_directory;
|
||||
ALTER TABLE llx_ecm_documents DROP INDEX idx_ecm_documents_ref;
|
||||
ALTER TABLE llx_ecm_documents DROP INDEX idx_ecm_documents;
|
||||
ALTER TABLE llx_ecm_documents DROP COLUMN manualkeyword;
|
||||
ALTER TABLE llx_ecm_documents DROP COLUMN fullpath_orig;
|
||||
ALTER TABLE llx_ecm_documents DROP COLUMN private;
|
||||
ALTER TABLE llx_ecm_documents DROP COLUMN crc;
|
||||
ALTER TABLE llx_ecm_documents DROP COLUMN cryptkey;
|
||||
ALTER TABLE llx_ecm_documents DROP COLUMN cipher;
|
||||
ALTER TABLE llx_ecm_documents CHANGE COLUMN fullpath_dol fullpath text;
|
||||
ALTER TABLE llx_ecm_documents MODIFY COLUMN ref varchar(32) NOT NULL;
|
||||
ALTER TABLE llx_ecm_documents MODIFY COLUMN fullpath text;
|
||||
ALTER TABLE llx_ecm_documents MODIFY COLUMN filemime varchar(128) NOT NULL;
|
||||
ALTER TABLE llx_ecm_documents ADD COLUMN metadata text after description;
|
||||
ALTER TABLE llx_ecm_documents ADD COLUMN extraparams varchar(255) AFTER fk_directory;
|
||||
ALTER TABLE llx_ecm_documents ADD UNIQUE INDEX idx_ecm_documents_ref (ref, entity);
|
||||
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_create (fk_create);
|
||||
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_update (fk_update);
|
||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_create FOREIGN KEY (fk_create) REFERENCES llx_user (rowid);
|
||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_update FOREIGN KEY (fk_update) REFERENCES llx_user (rowid);
|
||||
|
||||
create table llx_element_tag
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
||||
entity integer DEFAULT 1 NOT NULL,
|
||||
lang varchar(5) NOT NULL,
|
||||
tag varchar(255) NOT NULL,
|
||||
fk_element integer NOT NULL,
|
||||
@ -134,7 +112,6 @@ create table llx_element_tag
|
||||
)ENGINE=innodb;
|
||||
|
||||
ALTER TABLE llx_element_tag ADD UNIQUE INDEX uk_element_tag (entity, lang, tag, fk_element, element);
|
||||
-- END TASK #107
|
||||
|
||||
|
||||
CREATE TABLE llx_holiday_config
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
-- Copyright (C) 2012 Regis Houssin <regis@dolibarr.fr>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
|
||||
ALTER TABLE llx_ecm_documents ADD UNIQUE INDEX idx_ecm_documents_ref (ref, entity);
|
||||
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_create (fk_create);
|
||||
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_update (fk_update);
|
||||
|
||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_create FOREIGN KEY (fk_create) REFERENCES llx_user (rowid);
|
||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_update FOREIGN KEY (fk_update) REFERENCES llx_user (rowid);
|
||||
|
||||
@ -1,40 +0,0 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2008-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
-- Copyright (C) 2009-2012 Regis Houssin <regis@dolibarr.fr>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
create table llx_ecm_documents
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
entity integer DEFAULT 1 NOT NULL,
|
||||
ref varchar(32) NOT NULL, -- hash(fullpath + filename + version)
|
||||
filename varchar(255) NOT NULL,
|
||||
filesize integer NOT NULL,
|
||||
filemime varchar(128) NOT NULL,
|
||||
description text,
|
||||
metadata text, -- Secure file information (json format / encrypted)
|
||||
fullpath text,
|
||||
fk_directory integer,
|
||||
extraparams varchar(255), -- Other parameters (json format)
|
||||
fk_create integer NOT NULL,
|
||||
fk_update integer,
|
||||
date_c datetime NOT NULL,
|
||||
date_u timestamp,
|
||||
fk_status smallint DEFAULT 0
|
||||
|
||||
) ENGINE=innodb;
|
||||
Loading…
Reference in New Issue
Block a user