mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
🔀 Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
4f3dfd994b
4 changed files with 9 additions and 5 deletions
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- 🩹 — Avoid warning from MySQL only alembic instructions
|
||||||
|
- 🩹 — Check before adding/removing ip_version_enum
|
||||||
|
- 📝 — Improve release documentation
|
||||||
|
|
||||||
|
|
||||||
## 0.7.0
|
## 0.7.0
|
||||||
|
|
||||||
Date: 2025-01-14
|
Date: 2025-01-14
|
||||||
|
|
|
@ -21,7 +21,7 @@ depends_on: Union[str, Sequence[str], None] = None
|
||||||
|
|
||||||
def upgrade() -> None:
|
def upgrade() -> None:
|
||||||
enum = ENUM("4", "6", name="ip_version_enum", create_type=False)
|
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:
|
with op.batch_alter_table("tasks", schema=None) as batch_op:
|
||||||
batch_op.add_column(
|
batch_op.add_column(
|
||||||
sa.Column("ip_version", enum, server_default="4", nullable=False)
|
sa.Column("ip_version", enum, server_default="4", nullable=False)
|
||||||
|
@ -31,4 +31,4 @@ def upgrade() -> None:
|
||||||
def downgrade() -> None:
|
def downgrade() -> None:
|
||||||
with op.batch_alter_table("tasks", schema=None) as batch_op:
|
with op.batch_alter_table("tasks", schema=None) as batch_op:
|
||||||
batch_op.drop_column("ip_version")
|
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)
|
||||||
|
|
|
@ -27,7 +27,6 @@ def upgrade() -> None:
|
||||||
existing_type=sa.INTEGER(),
|
existing_type=sa.INTEGER(),
|
||||||
type_=sa.BigInteger(),
|
type_=sa.BigInteger(),
|
||||||
existing_nullable=False,
|
existing_nullable=False,
|
||||||
autoincrement=True,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,5 +39,4 @@ def downgrade() -> None:
|
||||||
existing_type=sa.BigInteger(),
|
existing_type=sa.BigInteger(),
|
||||||
type_=sa.INTEGER(),
|
type_=sa.INTEGER(),
|
||||||
existing_nullable=False,
|
existing_nullable=False,
|
||||||
autoincrement=True,
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,7 +41,8 @@ git add argos/__init__.py CHANGELOG.md
|
||||||
git commit -m "🏷 — Bump version ($(hatch version))"
|
git commit -m "🏷 — Bump version ($(hatch version))"
|
||||||
|
|
||||||
# Create a tag on the git repository and push it
|
# 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
|
# Build the project
|
||||||
hatch build --clean
|
hatch build --clean
|
||||||
|
|
Loading…
Reference in a new issue