Skip to content

Commit

Permalink
Bump version v1.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromsl authored and ajrbyers committed Jan 29, 2025
1 parent 408df25 commit 836a651
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
author = 'Andy Byers, Mauro Sanchez & Martin Paul Eve'

# The short X.Y version
version = '1.7.3'
version = '1.7.4'
# The full version, including alpha/beta/rc tags
release = '1.7.3'
release = '1.7.4'

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/janeway/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from packaging import version
__version__ = version.parse("1.7.3")
__version__ = version.parse("1.7.4")
30 changes: 30 additions & 0 deletions src/utils/migrations/0039_upgrade_1_7_4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 4.2.15 on 2024-10-25 14:18

from django.db import migrations, models
from django.utils import timezone

VERSION = "1.7.4"


def rollback(apps, schema_editor):
version_model = apps.get_model("utils", "Version")
latest_version = version_model.objects.get(number=VERSION, rollback=None)
latest_version.rollback = timezone.now()
latest_version.save()


def upgrade(apps, schema_editor):
version_model = apps.get_model("utils", "Version")
new_version = version_model.objects.create(number=VERSION)
new_version.save()


class Migration(migrations.Migration):

dependencies = [
('utils', '0038_upgrade_1_7_2'),
]

operations = [
migrations.RunPython(upgrade, reverse_code=rollback),
]

0 comments on commit 836a651

Please sign in to comment.