Commit c0996a7d authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

Réécrit les migrations dans le bon ordre pour ne pas planter sur les contraintes de l'id rezo

parent 2bef8382
......@@ -2,6 +2,9 @@
from __future__ import unicode_literals
from django.db import migrations, models
import ldapdb.models.fields
import django.db.models.deletion
import users.models
class Migration(migrations.Migration):
......@@ -11,10 +14,24 @@ class Migration(migrations.Migration):
]
operations = [
migrations.AddField(
model_name='ldapuser',
name='login_shell',
field=ldapdb.models.fields.CharField(blank=True, db_column='loginShell', max_length=200, null=True),
),
migrations.AddField(
model_name='user',
name='rezo_rez_uid',
field=models.IntegerField(blank=True, unique=True, null=True),
),
migrations.AddField(
model_name='user',
name='uid_number',
field=models.IntegerField(default=1),
preserve_default=False,
field=models.IntegerField(unique=True),
),
migrations.AlterField(
model_name='user',
name='school',
field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.PROTECT, to='users.School', null=True),
),
]
......@@ -8,13 +8,13 @@ import users.models
class Migration(migrations.Migration):
dependencies = [
('users', '0034_user_uid_number'),
('users', '0034_auto_20161018_0037'),
]
operations = [
migrations.AlterField(
model_name='user',
name='uid_number',
field=models.IntegerField(default=users.models.User.auto_uid),
field=models.IntegerField(unique=True, default=users.models.User.auto_uid),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import users.models
class Migration(migrations.Migration):
dependencies = [
('users', '0035_auto_20160731_0448'),
]
operations = [
migrations.AlterField(
model_name='user',
name='uid_number',
field=models.IntegerField(default=users.models.User.auto_uid, unique=True),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import ldapdb.models.fields
class Migration(migrations.Migration):
dependencies = [
('users', '0036_auto_20160731_0448'),
]
operations = [
migrations.AddField(
model_name='ldapuser',
name='login_shell',
field=ldapdb.models.fields.CharField(null=True, db_column='loginShell', blank=True, max_length=200),
),
]
# -*- 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', '0037_ldapuser_login_shell'),
]
operations = [
migrations.AlterField(
model_name='user',
name='school',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='users.School'),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0037_ldapuser_login_shell'),
]
operations = [
migrations.AddField(
model_name='user',
name='rezo_rez_uid',
field=models.IntegerField(null=True, blank=True, unique=True),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0038_user_rezo_rez_uid'),
('users', '0038_auto_20161006_1952'),
]
operations = [
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment