tangled
alpha
login
or
join now
eldridge.cam
/
cartography
0
fork
atom
Trading card city builder game?
0
fork
atom
overview
issues
pulls
pipelines
reconfigure some stuff
eldridge.cam
1 month ago
fab71fed
685e67e0
+13
-5
4 changed files
expand all
collapse all
unified
split
.gmrc
Justfile
docker-compose.yml
generated
schema.sql
+1
-1
.gmrc
···
5
5
"afterAllMigrations": [
6
6
{
7
7
"_": "command",
8
8
-
"command": "if [ -z $CI ]; then docker compose exec postgres pg_dump --no-sync --restrict-key='aa4b4bc410c5cacbd97fc326d0f62806' --schema-only --no-owner --exclude-schema=graphile_migrate --file /generated/schema.sql \"$GM_DBURL\"; fi"
8
8
+
"command": "if [ -z $CI ]; then docker compose exec postgres pg_dump --no-sync --restrict-key='aa4b4bc410c5cacbd97fc326d0f62806' --schema-only --no-owner --exclude-schema=graphile_migrate --file /generated/schema.sql -U \"$GM_DBUSER\" \"$GM_DBNAME\"; fi"
9
9
}
10
10
],
11
11
"afterCurrent": [],
+2
-2
Justfile
···
48
48
[group: "docker"]
49
49
up: && migrate
50
50
docker compose up -d --wait
51
51
-
docker compose exec postgres psql {{DATABASE_URL}} -c "" || docker compose exec postgres psql {{ROOT_DATABASE_URL}} -c 'CREATE DATABASE {{database_name}}'
52
52
-
docker compose exec postgres psql {{SHADOW_DATABASE_URL}} -c "" || docker compose exec postgres psql {{ROOT_DATABASE_URL}} -c 'CREATE DATABASE {{shadow_database_name}}'
51
51
+
docker compose exec postgres psql -U postgres -d "{{database_name}}" -c "" || docker compose exec postgres psql -U postgres -c 'CREATE DATABASE {{database_name}}'
52
52
+
docker compose exec postgres psql -U postgres -d "{{shadow_database_name}}" -c "" || docker compose exec postgres psql -U postgres -c 'CREATE DATABASE {{shadow_database_name}}'
53
53
54
54
[group: "docker"]
55
55
down:
+1
-1
docker-compose.yml
···
2
2
postgres:
3
3
image: postgres:18
4
4
ports:
5
5
-
- "5432:5432"
5
5
+
- "${PGPORT:-5432}:5432"
6
6
environment:
7
7
POSTGRES_PASSWORD: "postgres"
8
8
healthcheck:
+9
-1
generated/schema.sql
···
170
170
CREATE TABLE public.citizens (
171
171
species_id text NOT NULL,
172
172
name text NOT NULL,
173
173
-
home_tile_id bigint,
174
173
id bigint NOT NULL,
174
174
+
home_tile_id bigint,
175
175
CONSTRAINT citizens_name_check CHECK (((0 < length(name)) AND (length(name) < 64)))
176
176
);
177
177
···
705
705
706
706
ALTER TABLE ONLY public.cards
707
707
ADD CONSTRAINT cards_card_type_id_fkey FOREIGN KEY (card_type_id) REFERENCES public.card_types(id) ON UPDATE CASCADE ON DELETE RESTRICT;
708
708
+
709
709
+
710
710
+
--
711
711
+
-- Name: citizens citizens_home_tile_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
712
712
+
--
713
713
+
714
714
+
ALTER TABLE ONLY public.citizens
715
715
+
ADD CONSTRAINT citizens_home_tile_id_fkey FOREIGN KEY (home_tile_id) REFERENCES public.tiles(id) ON UPDATE CASCADE ON DELETE SET NULL;
708
716
709
717
710
718
--