[#24] Added first ivago migration
This commit is contained in:
parent
727589b10f
commit
81ae1a2555
4 changed files with 15 additions and 0 deletions
2
migrations/2021-04-15-155511_ivago_search/down.sql
Normal file
2
migrations/2021-04-15-155511_ivago_search/down.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP SCHEMA ivago CASCADE;
|
||||
9
migrations/2021-04-15-155511_ivago_search/up.sql
Normal file
9
migrations/2021-04-15-155511_ivago_search/up.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- Your SQL goes here
|
||||
CREATE SCHEMA ivago;
|
||||
|
||||
CREATE TABLE ivago.streets (
|
||||
name TEXT NOT NULL,
|
||||
city TEXT NOT NULL,
|
||||
|
||||
PRIMARY KEY (name, city)
|
||||
);
|
||||
Reference in a new issue