Exemplo n.º 1
0
class Migration(migrations.Migration):

    dependencies = [
        ('server', '0038_auto_20160704_1005'),
    ]

    operations = [
        migrations.CreateModel(
            name='MachineDetailPlugin',
            fields=[
                ('id', models.AutoField(verbose_name='ID',
                                        serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=255)),
                ('description', models.TextField(null=True, blank=True)),
                ('order', models.IntegerField()),
                ('type', models.CharField(default=b'builtin', max_length=255, choices=[(b'facter', b'Facter'), (
                    b'munkicondition', b'Munki Condition'), (b'builtin', b'Built In'), (b'custom', b'Custom Script')])),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.AlterField(
            model_name='plugin',
            name='type',
            field=models.CharField(default=b'builtin', max_length=255, choices=[(b'facter', b'Facter'), (
                b'munkicondition', b'Munki Condition'), (b'builtin', b'Built In'), (b'custom', b'Custom Script')]),
        ),
        migrations.RunPython(enable_plugins),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('server', '0044_manual_20160809_0717'),
    ]

    operations = [
        migrations.AddField(
            model_name='pluginscriptrow',
            name='submission_and_script_name',
            field=models.TextField(db_index=True, default=' '),
            preserve_default=False,
        ),
        migrations.RunPython(update_plugins),
    ]