Merge pull request #24656 from mc2contributor/parentprojects

#23331 Add parent project field to database
This commit is contained in:
Laurent Destailleur 2023-05-22 13:50:09 +02:00 committed by GitHub
commit b6ae4294b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -411,6 +411,8 @@ CREATE TABLE llx_c_invoice_subtype (
ALTER TABLE llx_c_invoice_subtype ADD UNIQUE INDEX uk_c_invoice_subtype (entity, code);
ALTER TABLE llx_projet ADD COLUMN fk_project integer DEFAULT NULL;
-- Upgrade default PDF models to the 'new' ones (eproved since 4 dolibarr versions from now)
--UPDATE llx_const SET value="eratosthene" WHERE name="COMMANDE_ADDON_PDF" and value="einstein";
--UPDATE llx_const SET value="sponge" WHERE name="FACTURE_ADDON_PDF" and value="crabe";
@ -426,4 +428,3 @@ ALTER TABLE llx_c_stcomm ADD COLUMN sortorder smallint DEFAULT 0;
ALTER TABLE llx_element_time ADD COLUMN ref_ext varchar(32);
ALTER TABLE llx_c_ziptown ADD COLUMN town_up varchar(180);

View file

@ -20,6 +20,7 @@
create table llx_projet
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_project integer DEFAULT NULL, -- parent project rowid
fk_soc integer,
datec datetime, -- date creation project
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,