Fix: uniformize table name, prepare to move fields "label, description and note" in llx_product_lang
16 lines
588 B
SQL
Executable File
16 lines
588 B
SQL
Executable File
--
|
|
-- $Id$
|
|
--
|
|
-- Be carefull to requests order.
|
|
-- This file must be loaded by calling /install/index.php page
|
|
-- when current version is 2.8.0 or higher.
|
|
--
|
|
|
|
|
|
ALTER TABLE llx_product_det RENAME TO llx_product_lang;
|
|
ALTER TABLE llx_product_lang ADD UNIQUE INDEX uk_product_lang (fk_product, lang);
|
|
ALTER TABLE llx_product_lang ADD CONSTRAINT fk_product_lang_fk_product FOREIGN KEY (fk_product) REFERENCES llx_product (rowid);
|
|
|
|
ALTER TABLE llx_product ADD COLUMN virtual tinyint DEFAULT 0 NOT NULL AFTER tms;
|
|
ALTER TABLE llx_product ADD COLUMN fk_parent integer DEFAULT 0 AFTER virtual;
|