@@ -0,0 +1,1766 @@
+# -*- coding: utf-8 -*-%0A%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations%0A%0A%0Adef data_migration(apps, schema_editor):%0A    IDTool = apps.get_model('fpr', 'IDTool')%0A    IDCommand = apps.get_model('fpr', 'IDCommand')%0A%0A    # Update Fido tool%0A    tool = IDTool.objects.get(uuid='c33c9d4d-121f-4db1-aa31-3d248c705e44')%0A    tool.version = '1.3.7'%0A    tool._slug = 'fido-137'%0A    tool.save()%0A%0A    # Create new command using the new version of Fido%0A    old_command = IDCommand.objects.get(uuid='a8e45bc1-eb35-4545-885c-dd552f1fde9a', enabled=True)%0A    IDCommand.objects.create(%0A        uuid='76006ad7-a401-48f6-98f6-2efc01003276',%0A        description=u'Identify using Fido',%0A        config=old_command.config,%0A        script=old_command.script,%0A        script_type=old_command.script_type,%0A        tool=tool,%0A        enabled=True%0A    )%0A    old_command.enabled = False%0A    old_command.save()%0A%0A    # Update Siegfried tool%0A    tool = IDTool.objects.get(uuid='454df69d-5cc0-49fc-93e4-6fbb6ac659e7')%0A    tool.version = '1.7.6'%0A    tool._slug = 'siegfried-176'%0A    tool.save()%0A%0A    # Create new command using the new version of Siegfried%0A    old_command = IDCommand.objects.get(uuid='9d2cefc1-2bd2-44e4-8d55-6cf8151eecff', enabled=True)%0A    IDCommand.objects.create(%0A        uuid='df074736-e2f7-4102-b25d-569c099d410c',%0A        description=old_command.description,%0A        config=old_command.config,%0A        script=old_command.script,%0A        script_type=old_command.script_type,%0A        tool=tool,%0A        enabled=True%0A    )%0A    old_command.enabled = False%0A    old_command.save()%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('fpr', '0015_pronom_92'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.RunPython(data_migration),%0A    %5D%0A

update id{tool,command}s