Start making the Tag/Attribute migrations. Not finished yet.
This commit is contained in:
parent
55e9a01790
commit
982b11ddfb
1 changed files with 20 additions and 0 deletions
20
evennia/typeclasses/migrations/0006_auto_20170121_2230.py
Normal file
20
evennia/typeclasses/migrations/0006_auto_20170121_2230.py
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.9.11 on 2017-01-21 22:30
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
def update_tags_with_dbmodel(apps, schema_editor):
|
||||||
|
Tag = apps.get_model('typeclasses', 'Tag')
|
||||||
|
Attribute = apps.get_model('typeclasses', 'Attribute')
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('typeclasses', '0005_auto_20160625_1812'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunPython(update_tags_with_dbmodel)
|
||||||
|
]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue