setting

parent e52efc63
......@@ -35,11 +35,10 @@ CREATE function insert_old_inventory() RETURNS trigger AS $insert_old_inventory$
END;
$insert_old_inventory$ LANGUAGE plpgsql;
CREATE trigger if not exists insert_old_inventory AFTER UPDATE ON inventory
FOR EACH ROW EXECUTE FUNCTION insert_old_inventory();
CREATE trigger insert_old_inventory AFTER UPDATE ON inventory FOR EACH ROW EXECUTE FUNCTION insert_old_inventory();
---Test
update inventory set store_id =2 where inventory_id = 1;
select * from inventory i2 where inventory_id = 2
select * from registro_inventory
\ No newline at end of file
select * from inventory i2 where inventory_id = 2;
select * from registro_inventory;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment