diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 67640718..bab6fc06 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -16,6 +16,14 @@ Unreleased * +0.7.0 - 2025-10-23 +****************** + +Added +===== + +* Initial migration to establish dependency on casbin_adapter for automatic CasbinRule table creation. + 0.6.0 - 2025-10-22 ****************** diff --git a/openedx_authz/__init__.py b/openedx_authz/__init__.py index f9ddfedf..1415675a 100644 --- a/openedx_authz/__init__.py +++ b/openedx_authz/__init__.py @@ -4,6 +4,6 @@ import os -__version__ = "0.6.0" +__version__ = "0.7.0" ROOT_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) diff --git a/openedx_authz/migrations/0001_add_casbin_dependency.py b/openedx_authz/migrations/0001_add_casbin_dependency.py new file mode 100644 index 00000000..6d7533e8 --- /dev/null +++ b/openedx_authz/migrations/0001_add_casbin_dependency.py @@ -0,0 +1,25 @@ +# Generated by Django 4.2.24 on 2025-10-22 21:49 + +from django.db import migrations + + +class Migration(migrations.Migration): + """ + Initial migration that ensures casbin_adapter migrations are run. + + This migration creates a dependency on casbin_adapter's initial migration, + ensuring that when you run 'migrate openedx_authz', the CasbinRule table + is created automatically by the casbin_adapter app. + """ + + initial = True + + dependencies = [ + # Depend on casbin_adapter's initial migration to ensure + # the CasbinRule table is created when migrating openedx_authz + ("casbin_adapter", "0001_initial"), + ] + + # No operations needed in this migration as we're only + # establishing the dependency on casbin_adapter + operations = [] diff --git a/openedx_authz/migrations/__init__.py b/openedx_authz/migrations/__init__.py new file mode 100644 index 00000000..8a4367e8 --- /dev/null +++ b/openedx_authz/migrations/__init__.py @@ -0,0 +1,3 @@ +""" +Migrations for openedx_authz app. +"""