From 982b11ddfbae7472aefc159995bf1a846a9877f5 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 22 Jan 2017 00:07:27 +0100 Subject: [PATCH] Start making the Tag/Attribute migrations. Not finished yet. --- .../migrations/0006_auto_20170121_2230.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 evennia/typeclasses/migrations/0006_auto_20170121_2230.py diff --git a/evennia/typeclasses/migrations/0006_auto_20170121_2230.py b/evennia/typeclasses/migrations/0006_auto_20170121_2230.py new file mode 100644 index 0000000000..0be77d14c9 --- /dev/null +++ b/evennia/typeclasses/migrations/0006_auto_20170121_2230.py @@ -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) + ]