From 5cb7f4e8a7b37e6698255baae2dd1b29e5c8644d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 6 Jun 2010 16:04:25 +0000 Subject: [PATCH] New: Add field to define order of bookmarks --- htdocs/install/mysql/migration/2.8.0-2.9.0.sql | 2 ++ htdocs/install/mysql/tables/llx_bookmark.sql | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/install/mysql/migration/2.8.0-2.9.0.sql b/htdocs/install/mysql/migration/2.8.0-2.9.0.sql index 5f20b4a214a..d07e4e73c52 100755 --- a/htdocs/install/mysql/migration/2.8.0-2.9.0.sql +++ b/htdocs/install/mysql/migration/2.8.0-2.9.0.sql @@ -14,6 +14,8 @@ ALTER TABLE llx_socpeople ADD COLUMN fk_departement integer DEFAULT 0 after ville; +ALTER TABLE llx_bookmark ADD COLUMN position integer DEFAULT 0; + -- rename llx_product_det ALTER TABLE llx_product_det RENAME TO llx_product_lang; ALTER TABLE llx_product_lang ADD UNIQUE INDEX uk_product_lang (fk_product, lang); diff --git a/htdocs/install/mysql/tables/llx_bookmark.sql b/htdocs/install/mysql/tables/llx_bookmark.sql index 68bd9c52dee..9d6ec85b95c 100644 --- a/htdocs/install/mysql/tables/llx_bookmark.sql +++ b/htdocs/install/mysql/tables/llx_bookmark.sql @@ -27,5 +27,6 @@ create table llx_bookmark url varchar(128) NOT NULL, target varchar(16), title varchar(64), - favicon varchar(24) + favicon varchar(24), + position integer DEFAULT 0 )type=innodb;