diff --git a/htdocs/install/mysql/migration/12.0.0-13.0.0.sql b/htdocs/install/mysql/migration/12.0.0-13.0.0.sql index e0fd93aa005..c8567cbee4b 100644 --- a/htdocs/install/mysql/migration/12.0.0-13.0.0.sql +++ b/htdocs/install/mysql/migration/12.0.0-13.0.0.sql @@ -58,6 +58,9 @@ ALTER TABLE llx_mrp_mo_extrafields ADD INDEX idx_mrp_mo_fk_object(fk_object); -- For v13 +-- members +ALTER TABLE llx_adherent ADD COLUMN ref varchar(30) NOT NULL AFTER rowid; +UPDATE llx_adherent SET ref=rowid; ALTER TABLE llx_bom_bom ADD COLUMN bomtype integer DEFAULT 0;