diff --git a/fiches/migrations/0001_initial.py b/fiches/migrations/0001_initial.py index 4269ef8..88a86cb 100644 --- a/fiches/migrations/0001_initial.py +++ b/fiches/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 2.2b1 on 2019-02-11 22:49 +# Generated by Django 2.2b1 on 2019-02-18 20:46 from django.conf import settings import django.core.validators @@ -19,6 +19,7 @@ class Migration(migrations.Migration): name='Department', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=1023, verbose_name='nom du département')), ], ), migrations.CreateModel( @@ -38,4 +39,22 @@ class Migration(migrations.Migration): ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='utilisateur')), ], ), + migrations.CreateModel( + name='Social', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=1023, verbose_name='type')), + ('content', models.CharField(max_length=1023, verbose_name='contenu')), + ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='fiches.Profile', verbose_name='profil')), + ], + ), + migrations.CreateModel( + name='Phone', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=1023, verbose_name='type')), + ('number', models.CharField(max_length=1023, verbose_name='numéro')), + ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='fiches.Profile', verbose_name='profil')), + ], + ), ] diff --git a/fiches/migrations/0002_department_name.py b/fiches/migrations/0002_department_name.py deleted file mode 100644 index 35a9fec..0000000 --- a/fiches/migrations/0002_department_name.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 2.2b1 on 2019-02-13 11:43 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('fiches', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='department', - name='name', - field=models.CharField(default=' ', max_length=1023, verbose_name='nom du département'), - preserve_default=False, - ), - ] diff --git a/fiches/migrations/0003_phone_social.py b/fiches/migrations/0003_phone_social.py deleted file mode 100644 index fe35941..0000000 --- a/fiches/migrations/0003_phone_social.py +++ /dev/null @@ -1,32 +0,0 @@ -# Generated by Django 2.2b1 on 2019-02-13 12:07 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('fiches', '0002_department_name'), - ] - - operations = [ - migrations.CreateModel( - name='Social', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=1023, verbose_name='type')), - ('content', models.TextField(verbose_name='contenu')), - ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='fiches.Profile', verbose_name='profil')), - ], - ), - migrations.CreateModel( - name='Phone', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=1023, verbose_name='type')), - ('number', models.CharField(max_length=1023, verbose_name='numéro')), - ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='fiches.Profile', verbose_name='profil')), - ], - ), - ] diff --git a/fiches/migrations/0004_auto_20190213_1212.py b/fiches/migrations/0004_auto_20190213_1212.py deleted file mode 100644 index f714cea..0000000 --- a/fiches/migrations/0004_auto_20190213_1212.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2b1 on 2019-02-13 12:12 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('fiches', '0003_phone_social'), - ] - - operations = [ - migrations.AlterField( - model_name='social', - name='content', - field=models.CharField(max_length=1023, verbose_name='contenu'), - ), - ]