diff --git a/evennia/server/migrations/0002_auto_20190128_1820.py b/evennia/server/migrations/0002_auto_20190128_1820.py index f43bcf0dbd..3b821b06a4 100644 --- a/evennia/server/migrations/0002_auto_20190128_1820.py +++ b/evennia/server/migrations/0002_auto_20190128_1820.py @@ -12,7 +12,7 @@ def migrate_serverconf(apps, schema_editor): """ ServerConfig = apps.get_model("server", "ServerConfig") for conf in ServerConfig.objects.all(): - value = pickle.loads(utils.to_bytes(conf.db_value)) + value = pickle.loads(to_bytes(conf.db_value)) conf.db_value2 = value conf.save() @@ -29,11 +29,6 @@ class Migration(migrations.Migration): name='db_value2', field=evennia.utils.picklefield.PickledObjectField(help_text='The data returned when the config value is accessed. Must be written as a Python literal if editing through the admin interface. Attribute values which are not Python literals cannot be edited through the admin interface.', null=True, verbose_name='value'), ), - migrations.AlterField( - model_name='serverconfig', - name='db_value', - field=models.BinaryField(blank=True), - ), # migrate data migrations.RunPython(migrate_serverconf, migrations.RunPython.noop),