8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-25 00:13:45 +00:00

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

This commit is contained in:
Gabriel Detraz 2016-10-18 00:47:53 +02:00 committed by root
parent 467519f45b
commit 2357cc056b
8 changed files with 39 additions and 116 deletions

View file

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
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):
dependencies = [
('users', '0033_remove_ldapuser_loginshell'),
]
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(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),
),
]

View file

@ -1,20 +0,0 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0033_remove_ldapuser_loginshell'),
]
operations = [
migrations.AddField(
model_name='user',
name='uid_number',
field=models.IntegerField(default=1),
preserve_default=False,
),
]

View file

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

View file

@ -1,20 +0,0 @@
# -*- 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),
),
]

View file

@ -1,20 +0,0 @@
# -*- 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),
),
]

View file

@ -1,20 +0,0 @@
# -*- 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'),
),
]

View file

@ -1,19 +0,0 @@
# -*- 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),
),
]

View file

@ -1,15 +0,0 @@
# -*- 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 = [
]