diff --git a/machines/migrations/0001_initial.py b/machines/migrations/0001_initial.py new file mode 100644 index 00000000..9116d76b --- /dev/null +++ b/machines/migrations/0001_initial.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('users', '0005_auto_20160702_0006'), + ] + + operations = [ + migrations.CreateModel( + name='Machine', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ], + ), + migrations.CreateModel( + name='MachineType', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('type', models.CharField(max_length=255)), + ], + ), + migrations.AddField( + model_name='machine', + name='type', + field=models.ForeignKey(to='machines.MachineType', on_delete=django.db.models.deletion.PROTECT), + ), + migrations.AddField( + model_name='machine', + name='user', + field=models.ForeignKey(to='users.User', on_delete=django.db.models.deletion.PROTECT), + ), + ] diff --git a/machines/migrations/0002_auto_20160703_1444.py b/machines/migrations/0002_auto_20160703_1444.py new file mode 100644 index 00000000..18ab1768 --- /dev/null +++ b/machines/migrations/0002_auto_20160703_1444.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion +import macaddress.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='Interface', + fields=[ + ('id', models.AutoField(serialize=False, verbose_name='ID', auto_created=True, primary_key=True)), + ('ipv6', models.GenericIPAddressField(protocol='IPv6')), + ('mac_address', macaddress.fields.MACAddressField(integer=True)), + ('details', models.CharField(max_length=255)), + ('name', models.CharField(max_length=255, blank=True, unique=True)), + ], + ), + migrations.CreateModel( + name='IpList', + fields=[ + ('id', models.AutoField(serialize=False, verbose_name='ID', auto_created=True, primary_key=True)), + ('ipv4', models.GenericIPAddressField(protocol='IPv4')), + ], + ), + migrations.AddField( + model_name='interface', + name='ipv4', + field=models.OneToOneField(null=True, to='machines.IpList', blank=True, on_delete=django.db.models.deletion.PROTECT), + ), + migrations.AddField( + model_name='interface', + name='machine', + field=models.ForeignKey(to='machines.Machine', on_delete=django.db.models.deletion.PROTECT), + ), + ] diff --git a/machines/migrations/0003_auto_20160703_1450.py b/machines/migrations/0003_auto_20160703_1450.py new file mode 100644 index 00000000..82566119 --- /dev/null +++ b/machines/migrations/0003_auto_20160703_1450.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import macaddress.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0002_auto_20160703_1444'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='mac_address', + field=macaddress.fields.MACAddressField(integer=True, unique=True), + ), + ] diff --git a/machines/migrations/0004_auto_20160703_1451.py b/machines/migrations/0004_auto_20160703_1451.py new file mode 100644 index 00000000..892d07bb --- /dev/null +++ b/machines/migrations/0004_auto_20160703_1451.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0003_auto_20160703_1450'), + ] + + operations = [ + migrations.AlterField( + model_name='iplist', + name='ipv4', + field=models.GenericIPAddressField(protocol='IPv4', unique=True), + ), + ] diff --git a/machines/migrations/0005_auto_20160703_1523.py b/machines/migrations/0005_auto_20160703_1523.py new file mode 100644 index 00000000..508653b0 --- /dev/null +++ b/machines/migrations/0005_auto_20160703_1523.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0004_auto_20160703_1451'), + ] + + operations = [ + migrations.RenameField( + model_name='interface', + old_name='name', + new_name='dns', + ), + migrations.AddField( + model_name='machine', + name='name', + field=models.CharField(blank=True, unique=True, max_length=255, help_text='Optionnel'), + ), + ] diff --git a/machines/migrations/0006_auto_20160703_1813.py b/machines/migrations/0006_auto_20160703_1813.py new file mode 100644 index 00000000..3ea3f6d9 --- /dev/null +++ b/machines/migrations/0006_auto_20160703_1813.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0005_auto_20160703_1523'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='details', + field=models.CharField(max_length=255, blank=True), + ), + migrations.AlterField( + model_name='interface', + name='dns', + field=models.CharField(max_length=255, unique=True), + ), + ] diff --git a/machines/migrations/0007_auto_20160703_1816.py b/machines/migrations/0007_auto_20160703_1816.py new file mode 100644 index 00000000..443490cc --- /dev/null +++ b/machines/migrations/0007_auto_20160703_1816.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0006_auto_20160703_1813'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='ipv6', + field=models.GenericIPAddressField(null=True, protocol='IPv6'), + ), + ] diff --git a/machines/migrations/0008_remove_interface_ipv6.py b/machines/migrations/0008_remove_interface_ipv6.py new file mode 100644 index 00000000..ed706a26 --- /dev/null +++ b/machines/migrations/0008_remove_interface_ipv6.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0007_auto_20160703_1816'), + ] + + operations = [ + migrations.RemoveField( + model_name='interface', + name='ipv6', + ), + ] diff --git a/machines/migrations/0009_auto_20160703_2358.py b/machines/migrations/0009_auto_20160703_2358.py new file mode 100644 index 00000000..125c5f02 --- /dev/null +++ b/machines/migrations/0009_auto_20160703_2358.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import macaddress.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0008_remove_interface_ipv6'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='mac_address', + field=macaddress.fields.MACAddressField(integer=False, max_length=17, unique=True), + ), + ] diff --git a/machines/migrations/0010_auto_20160704_0104.py b/machines/migrations/0010_auto_20160704_0104.py new file mode 100644 index 00000000..37417dbb --- /dev/null +++ b/machines/migrations/0010_auto_20160704_0104.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0009_auto_20160703_2358'), + ] + + operations = [ + migrations.AlterField( + model_name='machine', + name='name', + field=models.CharField(blank=True, unique=True, max_length=255, help_text='Optionnel', null=True), + ), + ] diff --git a/machines/migrations/0011_auto_20160704_0105.py b/machines/migrations/0011_auto_20160704_0105.py new file mode 100644 index 00000000..7f8bfd00 --- /dev/null +++ b/machines/migrations/0011_auto_20160704_0105.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0010_auto_20160704_0104'), + ] + + operations = [ + migrations.AlterField( + model_name='machine', + name='name', + field=models.CharField(help_text='Optionnel', blank=True, null=True, max_length=255), + ), + ] diff --git a/machines/migrations/0012_auto_20160704_0118.py b/machines/migrations/0012_auto_20160704_0118.py new file mode 100644 index 00000000..e33b5fe1 --- /dev/null +++ b/machines/migrations/0012_auto_20160704_0118.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0011_auto_20160704_0105'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='dns', + field=models.CharField(max_length=255, help_text='Obligatoire et unique', unique=True), + ), + ] diff --git a/machines/migrations/0013_auto_20160705_1014.py b/machines/migrations/0013_auto_20160705_1014.py new file mode 100644 index 00000000..68b67758 --- /dev/null +++ b/machines/migrations/0013_auto_20160705_1014.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0012_auto_20160704_0118'), + ] + + operations = [ + migrations.AddField( + model_name='machine', + name='active', + field=models.BooleanField(default=True), + ), + migrations.AlterField( + model_name='interface', + name='dns', + field=models.CharField(max_length=255, unique=True, help_text='Obligatoire et unique, doit se terminer en .rez et ne pas comporter de points'), + ), + ] diff --git a/machines/migrations/0014_auto_20160706_1220.py b/machines/migrations/0014_auto_20160706_1220.py new file mode 100644 index 00000000..c03da02a --- /dev/null +++ b/machines/migrations/0014_auto_20160706_1220.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import machines.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0013_auto_20160705_1014'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='dns', + field=models.CharField(unique=True, max_length=255, help_text="Obligatoire et unique, doit se terminer en .rez et ne pas comporter d'autres points"), + ), + ] diff --git a/machines/migrations/0015_auto_20160707_0105.py b/machines/migrations/0015_auto_20160707_0105.py new file mode 100644 index 00000000..b06a96e4 --- /dev/null +++ b/machines/migrations/0015_auto_20160707_0105.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations +import machines.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0014_auto_20160706_1220'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='dns', + field=models.CharField(unique=True, help_text="Obligatoire et unique, doit se terminer en .example et ne pas comporter d'autres points", max_length=255), + ), + ] diff --git a/machines/migrations/0016_auto_20160708_1633.py b/machines/migrations/0016_auto_20160708_1633.py new file mode 100644 index 00000000..7b00b79c --- /dev/null +++ b/machines/migrations/0016_auto_20160708_1633.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import machines.models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0015_auto_20160707_0105'), + ] + + operations = [ + migrations.CreateModel( + name='Extension', + fields=[ + ('id', models.AutoField(primary_key=True, verbose_name='ID', serialize=False, auto_created=True)), + ('name', models.CharField(max_length=255)), + ], + ), + migrations.AlterField( + model_name='interface', + name='dns', + field=models.CharField(unique=True, max_length=255, help_text="Obligatoire et unique, doit se terminer en .rez et ne pas comporter d'autres points"), + ), + migrations.AddField( + model_name='machinetype', + name='extension', + field=models.ForeignKey(null=True, blank=True, on_delete=django.db.models.deletion.PROTECT, to='machines.Extension'), + ), + ] diff --git a/machines/migrations/0017_auto_20160708_1645.py b/machines/migrations/0017_auto_20160708_1645.py new file mode 100644 index 00000000..d0d88915 --- /dev/null +++ b/machines/migrations/0017_auto_20160708_1645.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0016_auto_20160708_1633'), + ] + + operations = [ + migrations.AlterField( + model_name='machinetype', + name='extension', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, default=1, to='machines.Extension'), + preserve_default=False, + ), + ] diff --git a/machines/migrations/0018_auto_20160708_1813.py b/machines/migrations/0018_auto_20160708_1813.py new file mode 100644 index 00000000..beed3f06 --- /dev/null +++ b/machines/migrations/0018_auto_20160708_1813.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0017_auto_20160708_1645'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='dns', + field=models.CharField(help_text="Obligatoire et unique, doit se terminer en .rez et ne pas comporter d'autres points", unique=True, max_length=255), + ), + ] diff --git a/machines/migrations/0019_auto_20160718_1141.py b/machines/migrations/0019_auto_20160718_1141.py new file mode 100644 index 00000000..bd99efb6 --- /dev/null +++ b/machines/migrations/0019_auto_20160718_1141.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0018_auto_20160708_1813'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='machine', + field=models.ForeignKey(to='machines.Machine'), + ), + ] diff --git a/machines/migrations/0020_auto_20160718_1849.py b/machines/migrations/0020_auto_20160718_1849.py new file mode 100644 index 00000000..1028368d --- /dev/null +++ b/machines/migrations/0020_auto_20160718_1849.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0019_auto_20160718_1141'), + ] + + operations = [ + migrations.RemoveField( + model_name='machine', + name='type', + ), + migrations.AddField( + model_name='interface', + name='type', + field=models.ForeignKey(to='machines.MachineType', default=1, on_delete=django.db.models.deletion.PROTECT), + preserve_default=False, + ), + ] diff --git a/machines/migrations/0021_auto_20161006_1943.py b/machines/migrations/0021_auto_20161006_1943.py new file mode 100644 index 00000000..9bc7f6bb --- /dev/null +++ b/machines/migrations/0021_auto_20161006_1943.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0020_auto_20160718_1849'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='dns', + field=models.CharField(unique=True, max_length=255), + ), + ] diff --git a/machines/migrations/0022_auto_20161011_1829.py b/machines/migrations/0022_auto_20161011_1829.py new file mode 100644 index 00000000..76d7c8e7 --- /dev/null +++ b/machines/migrations/0022_auto_20161011_1829.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('machines', '0021_auto_20161006_1943'), + ] + + operations = [ + migrations.AlterField( + model_name='interface', + name='dns', + field=models.CharField(help_text="Obligatoire et unique, doit se terminer par exemple en .rez et ne pas comporter d'autres points", unique=True, max_length=255), + ), + ] diff --git a/machines/migrations/__init__.py b/machines/migrations/__init__.py new file mode 100644 index 00000000..e69de29b