Skip to content

Commit 4f2d28a

Browse files
matrixiseclaude
andcommitted
Add PostgreSQL migration tasks to Taskfile
- Added django:migrate:postgres task to run migrations on PostgreSQL in docker-compose - Added django:showmigrations task to view migration status with PostgreSQL - Both tasks use pythonie.settings.pgdev for PostgreSQL database configuration Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent e175ccb commit 4f2d28a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Taskfile.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,16 @@ tasks:
130130
cmds:
131131
- docker compose run --rm web python pythonie/manage.py migrate
132132

133+
django:migrate:postgres:
134+
desc: Run database migrations on PostgreSQL (docker-compose)
135+
cmds:
136+
- docker compose run --rm web python pythonie/manage.py migrate --settings=pythonie.settings.pgdev
137+
138+
django:showmigrations:
139+
desc: Show migration status
140+
cmds:
141+
- docker compose run --rm web python pythonie/manage.py showmigrations --settings=pythonie.settings.pgdev
142+
133143
django:collect-static:
134144
desc: Collect static files
135145
cmds:

0 commit comments

Comments
 (0)