8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-06 01:46:27 +00:00

Fix LDAP migration #338

This commit is contained in:
chapeau 2024-02-18 18:23:05 +01:00
parent 19b39cc62f
commit b162170bf4

View file

@ -29,8 +29,8 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='LdapServiceUser', name='LdapServiceUser',
fields=[ fields=[
('dn', ldapdb.models.fields.CharField(max_length=200, serialize=False)), ('dn', ldapdb.models.fields.CharField(max_length=200, primary_key=True, serialize=False)),
('name', ldapdb.models.fields.CharField(db_column='cn', max_length=200, primary_key=True, serialize=False)), ('name', ldapdb.models.fields.CharField(db_column='cn', max_length=200, serialize=False)),
('user_password', ldapdb.models.fields.CharField(blank=True, db_column='userPassword', max_length=200, null=True)), ('user_password', ldapdb.models.fields.CharField(blank=True, db_column='userPassword', max_length=200, null=True)),
], ],
options={ options={
@ -40,8 +40,8 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='LdapServiceUserGroup', name='LdapServiceUserGroup',
fields=[ fields=[
('dn', ldapdb.models.fields.CharField(max_length=200, serialize=False)), ('dn', ldapdb.models.fields.CharField(max_length=200, primary_key=True, serialize=False)),
('name', ldapdb.models.fields.CharField(db_column='cn', max_length=200, primary_key=True, serialize=False)), ('name', ldapdb.models.fields.CharField(db_column='cn', max_length=200, serialize=False)),
('members', ldapdb.models.fields.ListField(blank=True, db_column='member')), ('members', ldapdb.models.fields.ListField(blank=True, db_column='member')),
], ],
options={ options={
@ -51,9 +51,9 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='LdapUser', name='LdapUser',
fields=[ fields=[
('dn', ldapdb.models.fields.CharField(max_length=200, serialize=False)), ('dn', ldapdb.models.fields.CharField(max_length=200, primary_key=True, serialize=False)),
('gid', ldapdb.models.fields.IntegerField(db_column='gidNumber')), ('gid', ldapdb.models.fields.IntegerField(db_column='gidNumber')),
('name', ldapdb.models.fields.CharField(db_column='cn', max_length=200, primary_key=True, serialize=False)), ('name', ldapdb.models.fields.CharField(db_column='cn', max_length=200, serialize=False)),
('uid', ldapdb.models.fields.CharField(db_column='uid', max_length=200)), ('uid', ldapdb.models.fields.CharField(db_column='uid', max_length=200)),
('uidNumber', ldapdb.models.fields.IntegerField(db_column='uidNumber', unique=True)), ('uidNumber', ldapdb.models.fields.IntegerField(db_column='uidNumber', unique=True)),
('sn', ldapdb.models.fields.CharField(db_column='sn', max_length=200)), ('sn', ldapdb.models.fields.CharField(db_column='sn', max_length=200)),
@ -76,33 +76,13 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='LdapUserGroup', name='LdapUserGroup',
fields=[ fields=[
('dn', ldapdb.models.fields.CharField(max_length=200, serialize=False)), ('dn', ldapdb.models.fields.CharField(max_length=200, primary_key=True, serialize=False)),
('gid', ldapdb.models.fields.IntegerField(db_column='gidNumber')), ('gid', ldapdb.models.fields.IntegerField(db_column='gidNumber')),
('members', ldapdb.models.fields.ListField(blank=True, db_column='memberUid')), ('members', ldapdb.models.fields.ListField(blank=True, db_column='memberUid')),
('name', ldapdb.models.fields.CharField(db_column='cn', max_length=200, primary_key=True, serialize=False)), ('name', ldapdb.models.fields.CharField(db_column='cn', max_length=200, serialize=False)),
], ],
options={ options={
'abstract': False, 'abstract': False,
}, },
), ),
migrations.AlterField(
model_name='ldapserviceuser',
name='dn',
field=ldapdb.models.fields.CharField(max_length=200, primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='ldapserviceusergroup',
name='dn',
field=ldapdb.models.fields.CharField(max_length=200, primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='ldapuser',
name='dn',
field=ldapdb.models.fields.CharField(max_length=200, primary_key=True, serialize=False),
),
migrations.AlterField(
model_name='ldapusergroup',
name='dn',
field=ldapdb.models.fields.CharField(max_length=200, primary_key=True, serialize=False),
),
] ]