Compare commits

..

No commits in common. "865253908662b143fa1c32b2a324f6bb8c55cd31" and "3d209fed22b39caea2a5f9fe41e318bd3ab6e189" have entirely different histories.

5 changed files with 6 additions and 14 deletions

View file

@ -2,15 +2,6 @@
## [Unreleased]
## 0.7.1
Date: 2025-01-15
- 🩹 — 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

@ -1 +1 @@
VERSION = "0.7.1"
VERSION = "0.7.0"

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=True)
enum.create(op.get_bind(), checkfirst=False)
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=True)
ENUM(name="ip_version_enum").drop(op.get_bind(), checkfirst=False)

View file

@ -27,6 +27,7 @@ def upgrade() -> None:
existing_type=sa.INTEGER(),
type_=sa.BigInteger(),
existing_nullable=False,
autoincrement=True,
)
@ -39,4 +40,5 @@ def downgrade() -> None:
existing_type=sa.BigInteger(),
type_=sa.INTEGER(),
existing_nullable=False,
autoincrement=True,
)

View file

@ -41,8 +41,7 @@ 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)" -m "$(hatch version)" &&
git push --follow-tags
git tag "$(hatch version)" && git push
# Build the project
hatch build --clean