Added migration to remove post-devel-merger default script paths as well as new ones.
This commit is contained in:
parent
a25ead9626
commit
c9ed8b5ec5
1 changed files with 23 additions and 0 deletions
23
evennia/scripts/migrations/0006_auto_20150310_2249.py
Normal file
23
evennia/scripts/migrations/0006_auto_20150310_2249.py
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
def remove_manage_scripts(apps, schema_editor):
|
||||||
|
ScriptDB = apps.get_model("scripts", "ScriptDB")
|
||||||
|
for script in ScriptDB.objects.filter(db_typeclass_path__in=(u'src.scripts.scripts.CheckSessions',
|
||||||
|
u'src.scripts.scripts.ValidateScripts',
|
||||||
|
u'src.scripts.scripts.ValidateChannelHandler',
|
||||||
|
u'src.scripts.scripts.ValidateIdmapperCache',
|
||||||
|
u'src.utils.gametime.GameTime')):
|
||||||
|
script.delete()
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('scripts', '0005_auto_20150306_1441'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunPython(remove_manage_scripts),
|
||||||
|
]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue