- commit
- 9f8590c
- parent
- da7212a
- author
- Eric Bower
- date
- 2022-07-30 14:49:30 +0000 UTC
fix: add latest migration
1 files changed,
+3,
-2
M
makefile
M
makefile
+3,
-2
1@@ -2,7 +2,7 @@ PGDATABASE?="pico"
2 PGHOST?="db"
3 PGUSER?="postgres"
4 PORT?="5432"
5-DB_CONTAINER?=pico-services_db_1
6+DB_CONTAINER?=pico-db-1
7 DOCKER_TAG?=$(shell git log --format="%H" -n 1)
8 DOCKER_PLATFORM?=linux/amd64,linux/arm64
9 DOCKER_BUILDX_BUILD?=docker buildx build --push --platform $(DOCKER_PLATFORM)
10@@ -58,10 +58,11 @@ migrate:
11 docker exec -i $(DB_CONTAINER) psql -U $(PGUSER) -d $(PGDATABASE) < ./db/migrations/20220523_timestamp_with_tz.sql
12 docker exec -i $(DB_CONTAINER) psql -U $(PGUSER) -d $(PGDATABASE) < ./db/migrations/20220721_analytics.sql
13 docker exec -i $(DB_CONTAINER) psql -U $(PGUSER) -d $(PGDATABASE) < ./db/migrations/20220722_post_hidden.sql
14+ docker exec -i $(DB_CONTAINER) psql -U $(PGUSER) -d $(PGDATABASE) < ./db/migrations/20220727_post_change_post_contraints.sql
15 .PHONY: migrate
16
17 latest:
18- docker exec -i $(DB_CONTAINER) psql -U $(PGUSER) -d $(PGDATABASE) < ./db/migrations/20220722_post_hidden.sql
19+ docker exec -i $(DB_CONTAINER) psql -U $(PGUSER) -d $(PGDATABASE) < ./db/migrations/20220727_post_change_post_contraints.sql
20 .PHONY: latest
21
22 psql: