feat(assistance): Model inheritance migrations

ref: #783 #785 #786
This commit is contained in:
2025-06-04 07:49:16 +09:30
parent 6d0f655c97
commit 78ed699463
2 changed files with 86 additions and 0 deletions

View File

@ -17,6 +17,18 @@ def centurion_model_migrate(sender, **kwargs):
print('\n\nCenturion Model Migration Signal.....\n')
models: list[ dict ] = [
{
'app_label': 'assistance',
'model_name': 'KnowledgeBase',
'history_model_name': 'KnowledgeBaseHistory',
'notes_model_name': 'KnowledgeBaseNotes'
},
{
'app_label': 'assistance',
'model_name': 'KnowledgeBaseCategory',
'history_model_name': 'KnowledgeBaseCategoryHistory',
'notes_model_name': 'KnowledgeCategoryBaseNotes'
},
{
'app_label': 'devops',
'model_name': 'FeatureFlag',