SHARE
TWEET

Untitled

a guest Apr 26th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top