Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
******************

Expand Down
2 changes: 1 addition & 1 deletion openedx_authz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

import os

__version__ = "0.6.0"
__version__ = "0.7.0"

ROOT_DIRECTORY = os.path.dirname(os.path.abspath(__file__))
25 changes: 25 additions & 0 deletions openedx_authz/migrations/0001_add_casbin_dependency.py
Original file line number Diff line number Diff line change
@@ -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 = []
3 changes: 3 additions & 0 deletions openedx_authz/migrations/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Migrations for openedx_authz app.
"""