Skip to content

Commit

Permalink
Fix: use canvas when option not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 23, 2011
1 parent 0525fb8 commit 9c823a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions htdocs/install/mysql/migration/2.9.0-3.0.0.sql
Expand Up @@ -93,8 +93,8 @@ CREATE TABLE llx_c_ziptown
ALTER TABLE llx_c_ziptown ADD INDEX idx_c_ziptown_fk_county (fk_county);
ALTER TABLE llx_c_ziptown ADD CONSTRAINT fk_c_ziptown_fk_county FOREIGN KEY (fk_county) REFERENCES llx_c_departements (rowid);

ALTER TABLE llx_socpeople ADD COLUMN canvas varchar(32) DEFAULT 'default' after default_lang;
ALTER TABLE llx_socpeople MODIFY canvas varchar(32) DEFAULT 'default';
ALTER TABLE llx_socpeople ADD COLUMN canvas varchar(32) DEFAULT NULL after default_lang;
ALTER TABLE llx_socpeople MODIFY canvas varchar(32) DEFAULT NULL;

UPDATE llx_socpeople SET canvas = 'default' WHERE canvas = 'default@contact';
UPDATE llx_societe SET canvas = 'default' WHERE canvas = 'default@thirdparty';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/install/mysql/tables/llx_societe.sql
Expand Up @@ -81,6 +81,6 @@ create table llx_societe
gencod varchar(255), -- barcode
price_level integer NULL, -- level of price for multiprices
default_lang varchar(6), -- default language
canvas varchar(32) DEFAULT 'default', -- type of canvas
canvas varchar(32), -- type of canvas if used (null by default)
import_key varchar(14) -- import key
)type=innodb;
2 changes: 1 addition & 1 deletion htdocs/install/mysql/tables/llx_socpeople.sql
Expand Up @@ -48,6 +48,6 @@ create table llx_socpeople
fk_user_modif integer,
note text,
default_lang varchar(6),
canvas varchar(32) DEFAULT 'default', -- type of canvas
canvas varchar(32), -- type of canvas if used (null by default)
import_key varchar(14)
)type=innodb;

0 comments on commit 9c823a7

Please sign in to comment.