diff --git a/CHANGES.md b/CHANGES.md index 4aa29fa..82cba13 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 1b2a072..d62b0fb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: @@ -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 @@ -51,11 +59,12 @@ services: django-pg-zero-downtime-migrations-tests: build: . depends_on: + - pg16 - pg15 - pg14 - pg13 - pg12 - pg11 - - postgis15 + - postgis16 volumes: - .:/app diff --git a/tox.ini b/tox.ini index c92aaeb..9d62f43 100644 --- a/tox.ini +++ b/tox.ini @@ -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"