From 444bc1c6a12d9dc21904cc9573680ad30cac0a73 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Mon, 10 Feb 2014 16:05:13 +0100 Subject: [PATCH] New increase length of url into bookmark module. --- ChangeLog | 2 ++ .../install/mysql/migration/3.5.0-3.6.0.sql | 26 ++++++++++--------- htdocs/install/mysql/tables/llx_bookmark.sql | 2 +- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index d1712fdbc04..dfbe1603503 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ English Dolibarr ChangeLog ***** ChangeLog for 3.6 compared to 3.5.* ***** For users: - New: Can input barcode during product creation step. +- New: Add autonumbering of barcode value for products. - New: Can create contract from an order. - New: Add list of orders products in tab "consumption" on thirdparties. - New: Add graph stats for suppliers orders in tab "stats" on products. @@ -19,6 +20,7 @@ For users: - New: The box "balance of bank accounts" show all opened accounts. - New: Add option MAIN_ADD_SALE_REP_SIGNATURE_IN_NOTE. - New: Add warning if supplier payment is higher that due amount. +- New increase length of url into bookmark module. TODO - New: Predefined product and free product use same form. diff --git a/htdocs/install/mysql/migration/3.5.0-3.6.0.sql b/htdocs/install/mysql/migration/3.5.0-3.6.0.sql index 4af2a3e6c4e..eb02007581d 100755 --- a/htdocs/install/mysql/migration/3.5.0-3.6.0.sql +++ b/htdocs/install/mysql/migration/3.5.0-3.6.0.sql @@ -19,18 +19,20 @@ ALTER TABLE llx_bookmark ADD COLUMN entity integer DEFAULT 1 NOT NULL; -ALTER TABLE llx_opensurvey_sondage ADD COLUMN allow_comments tinyint NOT NULL DEFAULT 1 AFTER canedit; --- ALTER TABLE llx_opensurvey_sondage DROP COLUMN survey_link_visible; --- ALTER TABLE llx_opensurvey_sondage DROP INDEX idx_id_sondage_admin; --- ALTER TABLE llx_opensurvey_sondage DROP COLUMN id_sondage_admin; --- ALTER TABLE llx_opensurvey_sondage DROP COLUMN canedit; -ALTER TABLE llx_opensurvey_sondage ADD COLUMN allow_spy tinyint NOT NULL DEFAULT 1 AFTER allow_comments; --- ALTER TABLE llx_opensurvey_sondage DROP COLUMN origin; -ALTER TABLE llx_opensurvey_sondage ADD COLUMN fk_user_creat integer NOT NULL AFTER nom_admin; -ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN mailsonde mailsonde tinyint NOT NULL DEFAULT 0; -ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN titre titre TEXT NOT NULL; -ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN date_fin date_fin DATETIME NOT NULL; -ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN format format VARCHAR(2) NOT NULL; +ALTER TABLE llx_bookmark MODIFY COLUMN url varchar(255) NOT NULL; + +ALTER TABLE llx_opensurvey_sondage ADD COLUMN allow_comments tinyint NOT NULL DEFAULT 1 AFTER canedit; +-- ALTER TABLE llx_opensurvey_sondage DROP COLUMN survey_link_visible; +-- ALTER TABLE llx_opensurvey_sondage DROP INDEX idx_id_sondage_admin; +-- ALTER TABLE llx_opensurvey_sondage DROP COLUMN id_sondage_admin; +-- ALTER TABLE llx_opensurvey_sondage DROP COLUMN canedit; +ALTER TABLE llx_opensurvey_sondage ADD COLUMN allow_spy tinyint NOT NULL DEFAULT 1 AFTER allow_comments; +-- ALTER TABLE llx_opensurvey_sondage DROP COLUMN origin; +ALTER TABLE llx_opensurvey_sondage ADD COLUMN fk_user_creat integer NOT NULL AFTER nom_admin; +ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN mailsonde mailsonde tinyint NOT NULL DEFAULT 0; +ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN titre titre TEXT NOT NULL; +ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN date_fin date_fin DATETIME NOT NULL; +ALTER TABLE llx_opensurvey_sondage CHANGE COLUMN format format VARCHAR(2) NOT NULL; ALTER TABLE llx_facture_rec CHANGE COLUMN usenewprice usenewprice INTEGER DEFAULT 0; diff --git a/htdocs/install/mysql/tables/llx_bookmark.sql b/htdocs/install/mysql/tables/llx_bookmark.sql index 00e1627a9b6..2df90d54c68 100644 --- a/htdocs/install/mysql/tables/llx_bookmark.sql +++ b/htdocs/install/mysql/tables/llx_bookmark.sql @@ -22,7 +22,7 @@ create table llx_bookmark fk_soc integer, fk_user integer NOT NULL, dateb datetime, - url varchar(128) NOT NULL, + url varchar(255) NOT NULL, target varchar(16), title varchar(64), favicon varchar(24), -- GitLab