Browse Source

New increase length of url into bookmark module.

Laurent Destailleur 11 years ago
parent
commit
444bc1c6a1

+ 2 - 0
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.

+ 14 - 12
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;
 

+ 1 - 1
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),