Fix: foreign key to country use same type

This commit is contained in:
Laurent Destailleur 2010-03-26 23:02:01 +00:00
parent ce1ca0219b
commit aba2a51fa2
2 changed files with 4 additions and 1 deletions

View File

@ -160,3 +160,6 @@ INSERT INTO `llx_c_field_list` (`rowid`, `element`, `entity`, `name`, `alias`, `
(7, 'product_default', 1, 'p.stock', 'stock', 'Stock', 'right', 0, 0, '$conf->stock->enabled', 7),
(8, 'product_default', 1, 'p.envente', 'status', 'Status', 'right', 1, 0, '1', 8);
UPDATE llx_adherent SET pays = null where pays <= 0 and pays != '0';
ALTER table llx_adherent MODIFY pays integer;

View File

@ -42,7 +42,7 @@ create table llx_adherent
adresse text,
cp varchar(30),
ville varchar(50),
pays varchar(50),
pays integer,
email varchar(255),
phone varchar(30),
phone_perso varchar(30),