diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d13d61..4cb5250 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## [Unreleased] +- 🩹 — Avoid warning from MySQL only alembic instructions +- 🩹 — Check before adding/removing ip_version_enum +- 📝 — Improve release documentation + + ## 0.7.0 Date: 2025-01-14 diff --git a/argos/server/migrations/versions/64f73a79b7d8_add_ip_version_to_checks.py b/argos/server/migrations/versions/64f73a79b7d8_add_ip_version_to_checks.py index 0cd752a..cde4c77 100644 --- a/argos/server/migrations/versions/64f73a79b7d8_add_ip_version_to_checks.py +++ b/argos/server/migrations/versions/64f73a79b7d8_add_ip_version_to_checks.py @@ -21,7 +21,7 @@ depends_on: Union[str, Sequence[str], None] = None def upgrade() -> None: enum = ENUM("4", "6", name="ip_version_enum", create_type=False) - enum.create(op.get_bind(), checkfirst=False) + enum.create(op.get_bind(), checkfirst=True) with op.batch_alter_table("tasks", schema=None) as batch_op: batch_op.add_column( sa.Column("ip_version", enum, server_default="4", nullable=False) @@ -31,4 +31,4 @@ def upgrade() -> None: def downgrade() -> None: with op.batch_alter_table("tasks", schema=None) as batch_op: batch_op.drop_column("ip_version") - ENUM(name="ip_version_enum").drop(op.get_bind(), checkfirst=False) + ENUM(name="ip_version_enum").drop(op.get_bind(), checkfirst=True) diff --git a/argos/server/migrations/versions/bd4b4962696a_use_bigint_for_results_id_field.py b/argos/server/migrations/versions/bd4b4962696a_use_bigint_for_results_id_field.py index 766428e..0403574 100644 --- a/argos/server/migrations/versions/bd4b4962696a_use_bigint_for_results_id_field.py +++ b/argos/server/migrations/versions/bd4b4962696a_use_bigint_for_results_id_field.py @@ -27,7 +27,6 @@ def upgrade() -> None: existing_type=sa.INTEGER(), type_=sa.BigInteger(), existing_nullable=False, - autoincrement=True, ) @@ -40,5 +39,4 @@ def downgrade() -> None: existing_type=sa.BigInteger(), type_=sa.INTEGER(), existing_nullable=False, - autoincrement=True, ) diff --git a/docs/developer/release.md b/docs/developer/release.md index d5122c5..089b697 100644 --- a/docs/developer/release.md +++ b/docs/developer/release.md @@ -41,7 +41,8 @@ git add argos/__init__.py CHANGELOG.md git commit -m "🏷 — Bump version ($(hatch version))" # Create a tag on the git repository and push it -git tag "$(hatch version)" && git push +git tag "$(hatch version)" -m "$(hatch version)" && + git push --follow-tags # Build the project hatch build --clean