Feat(SQL): Locations redesigned for parent location id stored on location table and links table removed.
This commit is contained in:
@@ -30,6 +30,10 @@ BEGIN
|
||||
, value_new
|
||||
, id_change_set
|
||||
)
|
||||
-- Changed id_location_parent
|
||||
SELECT NEW.id_location, 'id_location_parent', CONVERT(OLD.id_location_parent, CHAR), CONVERT(NEW.id_location_parent, CHAR), NEW.id_change_set
|
||||
WHERE NOT (OLD.id_location_parent <=> NEW.code)
|
||||
UNION
|
||||
-- Changed code
|
||||
SELECT NEW.id_location, 'code', OLD.code, NEW.code, NEW.id_change_set
|
||||
WHERE NOT (OLD.code <=> NEW.code)
|
||||
|
||||
Reference in New Issue
Block a user