forked from Wavyzz/dolibarr
NEW resource improvements - data structure (#26285)
* NEW improved resource data structure
* Added data structure v18-v19 migration
* Added null as default
* Revert "Added null as default"
This reverts commit c17d144800.
* Added null as default
* Added contributor details
* Renamed user_places to max_users
* Update llx_resource.sql
---------
Co-authored-by: William Mead <william.mead@manchenumerique.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -138,4 +138,11 @@ ALTER TABLE llx_prelevement_lignes ADD COLUMN fk_user integer NULL;
|
|||||||
|
|
||||||
ALTER TABLE llx_hrm_evaluationdet ADD COLUMN comment TEXT;
|
ALTER TABLE llx_hrm_evaluationdet ADD COLUMN comment TEXT;
|
||||||
|
|
||||||
|
ALTER TABLE llx_resource ADD COLUMN address varchar(255) DEFAULT NULL AFTER fk_code_type_resource;
|
||||||
|
ALTER TABLE llx_resource ADD COLUMN zip varchar(25) DEFAULT NULL AFTER address;
|
||||||
|
ALTER TABLE llx_resource ADD COLUMN town varchar(50) DEFAULT NULL AFTER zip;
|
||||||
|
ALTER TABLE llx_resource ADD COLUMN photo_filename varchar(255) DEFAULT NULL AFTER town;
|
||||||
|
ALTER TABLE llx_resource ADD COLUMN max_users integer DEFAULT NULL AFTER photo_filename;
|
||||||
|
ALTER TABLE llx_resource ADD COLUMN phone varchar(255) DEFAULT NULL AFTER user_places;
|
||||||
|
ALTER TABLE llx_resource ADD COLUMN email varchar(255) DEFAULT NULL AFTER phone;
|
||||||
|
ALTER TABLE llx_resource ADD COLUMN url varchar(255) DEFAULT NULL AFTER email;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
-- Module to manage resources into Dolibarr ERP/CRM
|
-- Module to manage resources into Dolibarr ERP/CRM
|
||||||
-- Copyright (C) 2013 Jean-François Ferry <jfefe@aternatik.fr>
|
-- Copyright (C) 2013 Jean-François Ferry <jfefe@aternatik.fr>
|
||||||
-- Copyright (C) 2016 Gilles Poirier <glgpoirier@gmail.com>
|
-- Copyright (C) 2016 Gilles Poirier <glgpoirier@gmail.com>
|
||||||
|
-- Copyright (C) 2023 William Mead <william.mead@manchenumerique.fr>
|
||||||
--
|
--
|
||||||
-- This program is free software: you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
@@ -23,6 +24,14 @@ CREATE TABLE llx_resource
|
|||||||
asset_number varchar(255),
|
asset_number varchar(255),
|
||||||
description text,
|
description text,
|
||||||
fk_code_type_resource varchar(32),
|
fk_code_type_resource varchar(32),
|
||||||
|
address varchar(255) DEFAULT NULL,
|
||||||
|
zip varchar(25) DEFAULT NULL,
|
||||||
|
town varchar(50) DEFAULT NULL,
|
||||||
|
photo_filename varchar(255) DEFAULT NULL,
|
||||||
|
max_users integer DEFAULT NULL,
|
||||||
|
phone varchar(20) DEFAULT NULL,
|
||||||
|
email varchar(255) DEFAULT NULL,
|
||||||
|
url varchar(255) DEFAULT NULL,
|
||||||
datec datetime DEFAULT NULL,
|
datec datetime DEFAULT NULL,
|
||||||
date_valid datetime DEFAULT NULL,
|
date_valid datetime DEFAULT NULL,
|
||||||
fk_user_author integer DEFAULT NULL,
|
fk_user_author integer DEFAULT NULL,
|
||||||
|
|||||||
Reference in New Issue
Block a user