Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. -- +migrate Up
  2. INSERT INTO order_statuses(id, created_at, updated_at, description) VALUES
  3. ('1', '2019-04-15 15:51:39.38991+00', '2019-04-15 15:51:39.38991+00', 'init order, finding mitra'),
  4. ('2', '2019-04-15 15:51:39.38991+00', '2019-04-15 15:51:39.38991+00', 'accepted by a mitra'),
  5. ('3', '2019-04-15 15:51:39.38991+00', '2019-04-15 15:51:39.38991+00', 'completed'),
  6. ('4', '2019-04-15 15:51:39.38991+00', '2019-04-15 15:51:39.38991+00', 'cancelled');
  7. SELECT SETVAL('order_statuses_id_seq', 4);
  8.  
  9. -- +migrate Down
  10. DELETE FROM order_statuses WHERE id BETWEEN 1 AND 4;
  11. SELECT SETVAL('order_statuses_id_seq', 1, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement