switched to migrations
This commit is contained in:
3
migrator/migrations/1513802821-DOWN-initial.sql
Normal file
3
migrator/migrations/1513802821-DOWN-initial.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- 1513802821 DOWN initial
|
||||
drop TABLE invoices ;
|
||||
drop TABLE users ;
|
||||
4
migrator/migrations/1513802821-UP-initial.sql
Normal file
4
migrator/migrations/1513802821-UP-initial.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- 1513802821 UP initial
|
||||
CREATE TABLE invoices (id serial primary key, invoice_number varchar(255), date varchar(255), total varchar(255), customer_identifier varchar(255), imported boolean, status varchar(255), vendor varchar(255), potential_duplicate boolean, company varchar(255));
|
||||
|
||||
CREATE TABLE users (id serial primary key, provider varchar(255), provider_id varchar(255), data text);
|
||||
2
migrator/migrations/1513802974-DOWN-add-first-user.sql
Normal file
2
migrator/migrations/1513802974-DOWN-add-first-user.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- 1513802974 DOWN add-first-user
|
||||
delete from users;
|
||||
2
migrator/migrations/1513802974-UP-add-first-user.sql
Normal file
2
migrator/migrations/1513802974-UP-add-first-user.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- 1513802974 UP add-first-user
|
||||
insert into users (provider, provider_id, data) values('google', '104596437663417983775', '{:companies ["Brown Chicken Brown Cow" "Campbell Brewing Company"]}');
|
||||
Reference in New Issue
Block a user