Skip to content

Commit 19fb2f0

Browse files
authored
[FC-0099] feat: add initial migration for openedx_authz app with casbin_adapter dependency (openedx#112)
1 parent 04d8a9f commit 19fb2f0

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ Unreleased
1616

1717
* Migrate from using pycodestyle and isort to ruff for code quality checks and formatting.
1818

19+
0.7.0 - 2025-10-23
20+
******************
21+
22+
Added
23+
=====
24+
25+
* Initial migration to establish dependency on casbin_adapter for automatic CasbinRule table creation.
26+
1927
0.6.0 - 2025-10-22
2028
******************
2129

openedx_authz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
import os
66

7-
__version__ = "0.6.0"
7+
__version__ = "0.7.0"
88

99
ROOT_DIRECTORY = os.path.dirname(os.path.abspath(__file__))
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated by Django 4.2.24 on 2025-10-22 21:49
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
"""
8+
Initial migration that ensures casbin_adapter migrations are run.
9+
10+
This migration creates a dependency on casbin_adapter's initial migration,
11+
ensuring that when you run 'migrate openedx_authz', the CasbinRule table
12+
is created automatically by the casbin_adapter app.
13+
"""
14+
15+
initial = True
16+
17+
dependencies = [
18+
# Depend on casbin_adapter's initial migration to ensure
19+
# the CasbinRule table is created when migrating openedx_authz
20+
("casbin_adapter", "0001_initial"),
21+
]
22+
23+
# No operations needed in this migration as we're only
24+
# establishing the dependency on casbin_adapter
25+
operations = []
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""
2+
Migrations for openedx_authz app.
3+
"""

0 commit comments

Comments
 (0)