[#24] Added first ivago migration

master^2
Jef Roosens 2021-04-15 18:05:02 +02:00
parent 727589b10f
commit 81ae1a2555
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
4 changed files with 15 additions and 0 deletions

View File

@ -50,6 +50,10 @@ sh:
@ docker exec -it fej sh @ docker exec -it fej sh
.PHONY: 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). # Builds the debug version, and runs the tests (but doesn't detach).
test: test:
@ ./build -m dev -a run -l -- test --no-fail-fast @ ./build -m dev -a run -l -- test --no-fail-fast

View File

@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP SCHEMA ivago CASCADE;

View 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)
);

0
src/schema.rs 100644
View File