-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make M_Locator.Value unique + div small fixes wrt inventory importing
- Loading branch information
Showing
4 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...sql/postgresql/system/10-de.metas.adempiere/5575520_sys_gh10490_fix_M_Locator_Indices.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
-- change and rename this index to be useful in finding locators via their coordinates | ||
drop index if exists m_location_where; | ||
drop index if exists m_locator_where; | ||
CREATE INDEX m_locator_where | ||
ON m_locator (x, y, z, x1, m_warehouse_id); | ||
|
||
-- creating this index to make sure that M_Location.Value is unique. | ||
-- we need this because the inventory import feature depends on it. | ||
-- if this fails on a given DB, then rename and/or deactivate the double locator(s) | ||
drop index if exists m_locator_value; | ||
CREATE UNIQUE INDEX m_locator_value ON m_locator (value, m_warehouse_id) where isactive='Y'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters