🔀 Merge remote-tracking branch 'origin/develop'

This commit is contained in:
Luc Didry 2025-01-15 16:16:14 +01:00
commit 4f3dfd994b
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
4 changed files with 9 additions and 5 deletions

View file

@ -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

View file

@ -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)

View file

@ -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,
)

View file

@ -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