[#24] Added first ivago migration
parent
727589b10f
commit
81ae1a2555
4
Makefile
4
Makefile
|
@ -50,6 +50,10 @@ sh:
|
|||
@ docker exec -it fej sh
|
||||
.PHONY: sh
|
||||
|
||||
# Starts a psql session in the database container
|
||||
dbsh:
|
||||
@ docker exec -it fej_db psql -U fej -d fej
|
||||
|
||||
# Builds the debug version, and runs the tests (but doesn't detach).
|
||||
test:
|
||||
@ ./build -m dev -a run -l -- test --no-fail-fast
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP SCHEMA ivago CASCADE;
|
|
@ -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)
|
||||
);
|
Loading…
Reference in New Issue