squash migrations

This commit is contained in:
Martin Pépin 2019-02-18 21:52:07 +01:00
parent 799a62798c
commit 72a182fdcb
4 changed files with 20 additions and 70 deletions

View file

@ -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 from django.conf import settings
import django.core.validators import django.core.validators
@ -19,6 +19,7 @@ class Migration(migrations.Migration):
name='Department', name='Department',
fields=[ fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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( 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')), ('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')),
],
),
] ]

View file

@ -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,
),
]

View file

@ -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')),
],
),
]

View file

@ -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'),
),
]