-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from openedx/kiram15/ENT-8410
feat: adding the PolicyGroupAssociation table
- Loading branch information
Showing
6 changed files
with
152 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ts/migrations/0018_alter_historicallearnercontentassignmentaction_action_type_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.2.10 on 2024-02-15 21:00 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('content_assignments', '0017_migrate_automatic_cancellation_to_expired'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='historicallearnercontentassignmentaction', | ||
name='action_type', | ||
field=models.CharField(choices=[('learner_linked', 'Learner linked to customer'), ('notified', 'Learner notified of assignment'), ('reminded', 'Learner reminded about assignment'), ('redeemed', 'Learner redeemed the assigned content'), ('cancelled', 'Learner assignment cancelled'), ('cancelled_acknowledged', 'Learner assignment cancellation acknowledged by learner'), ('expired', 'Learner assignment expired'), ('expired_acknowledged', 'Learner assignment expiration acknowledged by learner')], db_index=True, help_text='The type of action take on the related assignment record.', max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='learnercontentassignmentaction', | ||
name='action_type', | ||
field=models.CharField(choices=[('learner_linked', 'Learner linked to customer'), ('notified', 'Learner notified of assignment'), ('reminded', 'Learner reminded about assignment'), ('redeemed', 'Learner redeemed the assigned content'), ('cancelled', 'Learner assignment cancelled'), ('cancelled_acknowledged', 'Learner assignment cancellation acknowledged by learner'), ('expired', 'Learner assignment expired'), ('expired_acknowledged', 'Learner assignment expiration acknowledged by learner')], db_index=True, help_text='The type of action take on the related assignment record.', max_length=255), | ||
), | ||
] |
29 changes: 29 additions & 0 deletions
29
enterprise_access/apps/subsidy_access_policy/migrations/0022_policygroupassociation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.2.10 on 2024-02-15 21:00 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django_extensions.db.fields | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('subsidy_access_policy', '0021_subsidyaccesspolicy_retired'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='PolicyGroupAssociation', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), | ||
('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), | ||
('enterprise_group_uuid', models.UUIDField(default=uuid.uuid4, editable=False, help_text='The uuid that uniquely identifies the associated group.', unique=True)), | ||
('subsidy_access_policy', models.ForeignKey(help_text='The SubsidyAccessPolicy that this group is tied to.', on_delete=django.db.models.deletion.CASCADE, related_name='groups', to='subsidy_access_policy.subsidyaccesspolicy')), | ||
], | ||
options={ | ||
'unique_together': {('subsidy_access_policy', 'enterprise_group_uuid')}, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters