mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix Error on the uk_links index of the llx_links table #25926
This commit is contained in:
parent
a68b00de4e
commit
94dadee77f
|
|
@ -113,3 +113,9 @@ UPDATE llx_societe_account SET site = 'dolibarr_website' WHERE fk_website > 0 AN
|
|||
ALTER TABLE llx_societe_account MODIFY COLUMN site varchar(128) NOT NULL;
|
||||
|
||||
ALTER TABLE llx_accounting_account MODIFY COLUMN pcg_type varchar(32);
|
||||
|
||||
-- Drop the composite unique index that exists on llx_links to rebuild a new one with objecttype included.
|
||||
-- The old design did not allow same label on different object with same id.
|
||||
-- VMYSQL4.1 DROP INDEX uk_links on llx_links;
|
||||
-- VPGSQL8.2 DROP INDEX uk_links;
|
||||
ALTER TABLE llx_links ADD UNIQUE INDEX uk_links (objectid, objecttype,label);
|
||||
|
|
@ -18,5 +18,5 @@
|
|||
-- Linked files
|
||||
-- ========================================================================
|
||||
|
||||
ALTER TABLE llx_links ADD UNIQUE INDEX uk_links (objectid,label);
|
||||
ALTER TABLE llx_links ADD UNIQUE INDEX uk_links (objectid, objecttype, label);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user