Skip to content

Commit

Permalink
add postgres 16 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tbicr committed Feb 21, 2024
1 parent 31447cd commit 3c61946
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
9 changes: 5 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# django-pg-zero-downtime-migrations changelog

## 0.14
- fix deferred sql errors
- add django 5.0 support
- add python 3.12 support
- fixed deferred sql errors
- added django 5.0 support
- added python 3.12 support
- added postgres 16 support
- drop postgres 11 support
- drop `ZERO_DOWNTIME_MIGRATIONS_USE_NOT_NULL` setting
- mark `migrate_isnotnull_check_constraints` command deprecated
- marked `migrate_isnotnull_check_constraints` command deprecated

## 0.13
- added django 4.2 support
Expand Down
15 changes: 12 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
version: "3.7"
services:
pg16:
image: postgres:16-alpine
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
volumes:
- ./docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql

pg15:
image: postgres:15-alpine
environment:
Expand Down Expand Up @@ -40,8 +48,8 @@ services:
volumes:
- ./docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql

postgis15:
image: postgis/postgis:15-3.3-alpine
postgis16:
image: postgis/postgis:16-3.4-alpine
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
Expand All @@ -51,11 +59,12 @@ services:
django-pg-zero-downtime-migrations-tests:
build: .
depends_on:
- pg16
- pg15
- pg14
- pg13
- pg12
- pg11
- postgis15
- postgis16
volumes:
- .:/app
19 changes: 10 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ commands =
py{3.12}-django{5.0}-psycopg{3}: flake8
py{3.12}-django{5.0}-psycopg{3}: isort . --check --diff

py{3.8,3.9,3.10,3.11,3.12}-django{4.2,5.0}-psycopg{2,3}: bash -c "DB_HOST=pg15 DB_USER=test pytest tests/unit"
py{3.8,3.9,3.10,3.11,3.12}-django{4.2,5.0}-psycopg{2,3}: bash -c "DB_HOST=postgis15 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/unit"
py{3.8,3.9,3.10,3.11,3.12}-django{4.2,5.0}-psycopg{2,3}: bash -c "DB_HOST=pg16 DB_USER=test pytest tests/unit"
py{3.8,3.9,3.10,3.11,3.12}-django{4.2,5.0}-psycopg{2,3}: bash -c "DB_HOST=postgis16 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/unit"

py{3.8,3.9,3.10,3.11}-django{4.0,4.1}: bash -c "DB_HOST=pg15 DB_USER=test pytest tests/unit"
py{3.8,3.9,3.10,3.11}-django{4.0,4.1}: bash -c "DB_HOST=postgis15 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/unit"
py{3.8,3.9,3.10,3.11}-django{4.0,4.1}: bash -c "DB_HOST=pg16 DB_USER=test pytest tests/unit"
py{3.8,3.9,3.10,3.11}-django{4.0,4.1}: bash -c "DB_HOST=postgis16 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/unit"

py{3.6,3.7,3.8,3.9,3.10}-django{3.2}: bash -c "DB_HOST=pg15 DB_USER=test pytest tests/unit"
py{3.6,3.7,3.8,3.9,3.10}-django{3.2}: bash -c "DB_HOST=postgis15 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/unit"
py{3.6,3.7,3.8,3.9,3.10}-django{3.2}: bash -c "DB_HOST=pg16 DB_USER=test pytest tests/unit"
py{3.6,3.7,3.8,3.9,3.10}-django{3.2}: bash -c "DB_HOST=postgis16 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/unit"

py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=pg15 DB_USER=test DB_ENGINE=django.db.backends.postgresql pytest tests/integration"
py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=pg15 DB_USER=test pytest tests/integration"
py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=postgis15 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/integration"
py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=pg16 DB_USER=test DB_ENGINE=django.db.backends.postgresql pytest tests/integration"
py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=pg16 DB_USER=test pytest tests/integration"
py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=postgis16 DB_USER=root DB_ENGINE=django_zero_downtime_migrations.backends.postgis pytest tests/integration"

py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=pg15 DB_USER=test pytest tests/integration"
py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=pg14 DB_USER=test pytest tests/integration"
py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=pg13 DB_USER=test pytest tests/integration"
py{3.12}-django{5.0}-psycopg{3}: bash -c "DB_HOST=pg12 DB_USER=test pytest tests/integration"
Expand Down

0 comments on commit 3c61946

Please sign in to comment.