add tables missing (#35628)
* add tables missing * add tables missing * add tables missing * add tables missing * add tables missing * add tables missing * Update 22.0.0-23.0.0.sql
This commit is contained in:
parent
a90c222f73
commit
ebca8345b0
3 changed files with 37 additions and 6 deletions
|
|
@ -329,3 +329,5 @@ ALTER TABLE llx_blockedlog ADD COLUMN debuginfo mediumtext;
|
|||
ALTER TABLE llx_webhook_history ADD COLUMN trigger_code text NOT NULL;
|
||||
ALTER TABLE llx_webhook_history ADD COLUMN error_message text;
|
||||
ALTER TABLE llx_webhook_history MODIFY COLUMN url varchar(255);
|
||||
|
||||
-- end of migration
|
||||
|
|
|
|||
|
|
@ -179,14 +179,19 @@ ALTER TABLE llx_element_contact ADD mandatory_signature TINYINT AFTER element_id
|
|||
-- default deposit % if payment term needs it on supplier
|
||||
ALTER TABLE llx_supplier_proposal ADD COLUMN deposit_percent varchar(63) DEFAULT NULL AFTER fk_cond_reglement;
|
||||
ALTER TABLE llx_commande_fournisseur ADD COLUMN deposit_percent varchar(63) DEFAULT NULL AFTER fk_cond_reglement;
|
||||
|
||||
|
||||
create table llx_categorie_propal
|
||||
CREATE TABLE llx_categorie_propal
|
||||
(
|
||||
fk_categorie integer NOT NULL,
|
||||
fk_categorie integer NOT NULL,
|
||||
fk_propal integer NOT NULL,
|
||||
import_key varchar(14)
|
||||
)ENGINE=innodb;
|
||||
import_key varchar(14)
|
||||
) ENGINE=innodb;
|
||||
--noqa:disable=PRS
|
||||
ALTER TABLE llx_categorie_propal ADD PRIMARY KEY pk_categorie_propal (fk_categorie, fk_propal);
|
||||
--noqa:enable=PRS
|
||||
ALTER TABLE llx_categorie_propal ADD INDEX idx_categorie_propal_fk_categorie (fk_categorie);
|
||||
ALTER TABLE llx_categorie_propal ADD INDEX idx_categorie_propal_fk_propal (fk_propal);
|
||||
ALTER TABLE llx_categorie_propal ADD CONSTRAINT fk_categorie_propal_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);
|
||||
ALTER TABLE llx_categorie_propal ADD CONSTRAINT fk_categorie_propal_fk_propal_rowid FOREIGN KEY (fk_propal) REFERENCES llx_propal (rowid);
|
||||
|
||||
create table llx_categorie_supplier_proposal
|
||||
(
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
-- ============================================================================
|
||||
--
|
||||
--
|
||||
-- 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 3 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 <https://www.gnu.org/licenses/>.
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
ALTER TABLE llx_categorie_propal ADD PRIMARY KEY pk_categorie_propal (fk_categorie, fk_propal);
|
||||
ALTER TABLE llx_categorie_propal ADD INDEX idx_categorie_propal_fk_categorie (fk_categorie);
|
||||
ALTER TABLE llx_categorie_propal ADD INDEX idx_categorie_propal_fk_propal (fk_propal);
|
||||
|
||||
ALTER TABLE llx_categorie_propal ADD CONSTRAINT fk_categorie_propal_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);
|
||||
ALTER TABLE llx_categorie_propal ADD CONSTRAINT fk_categorie_propal_fk_propal_rowid FOREIGN KEY (fk_propal) REFERENCES llx_propal (rowid);
|
||||
Loading…
Reference in a new issue