Merge pull request #28939 from frederic34/patch-8
fix migration for postgresql 19.0.0 -> 20.0.0
This commit is contained in:
commit
7b0aacc239
1 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@
|
|||
--
|
||||
-- To restrict request to Mysql version x.y minimum use -- VMYSQLx.y
|
||||
-- To restrict request to Pgsql version x.y minimum use -- VPGSQLx.y
|
||||
-- To rename a table: ALTER TABLE llx_table RENAME TO llx_table_new;
|
||||
-- To rename a table: ALTER TABLE llx_table RENAME TO llx_table_new; -- Note that "RENAME TO" is both compatible mysql/postgesql, not "RENAME" alone.
|
||||
-- To add a column: ALTER TABLE llx_table ADD COLUMN newcol varchar(60) NOT NULL DEFAULT '0' AFTER existingcol;
|
||||
-- To rename a column: ALTER TABLE llx_table CHANGE COLUMN oldname newname varchar(60);
|
||||
-- To drop a column: ALTER TABLE llx_table DROP COLUMN oldname;
|
||||
|
|
@ -227,8 +227,8 @@ ALTER TABLE llx_product ADD COLUMN last_main_doc varchar(255);
|
|||
|
||||
ALTER TABLE llx_knowledgemanagement_knowledgerecord MODIFY COLUMN answer longtext;
|
||||
|
||||
ALTER TABLE llx_commande_fournisseur_dispatch_extrafields RENAME llx_receptiondet_batch_extrafields;
|
||||
ALTER TABLE llx_commande_fournisseur_dispatch RENAME llx_receptiondet_batch;
|
||||
ALTER TABLE llx_commande_fournisseur_dispatch_extrafields RENAME TO llx_receptiondet_batch_extrafields;
|
||||
ALTER TABLE llx_commande_fournisseur_dispatch RENAME TO llx_receptiondet_batch;
|
||||
|
||||
-- Rename const to add customer categories on not customer/prospect third-party if enabled
|
||||
UPDATE llx_const SET name = 'THIRDPARTY_CAN_HAVE_CUSTOMER_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT' WHERE name = 'THIRDPARTY_CAN_HAVE_CATEGORY_EVEN_IF_NOT_CUSTOMER_PROSPECT_SUPPLIER';
|
||||
|
|
|
|||
Loading…
Reference in a new issue