Commit c4e53a94 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

minor: cleanup-migrations

parent fa97d4ba
Pipeline #5033 passed with stage
in 28 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-12-20 09:39
# Generated by Django 1.11.20 on 2019-08-28 12:01
from __future__ import unicode_literals
from django.conf import settings
......@@ -21,6 +21,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('picture', models.URLField(blank=True, null=True)),
('issuer', models.URLField(blank=True, null=True)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
......@@ -28,25 +29,27 @@ class Migration(migrations.Migration):
},
),
migrations.CreateModel(
name='ChatConfig',
name='ChatProfile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('jabberID', models.CharField(blank=True, max_length=255, null=True)),
('jabberRoom', models.BooleanField(default=True)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='chatProfile', to=settings.AUTH_USER_MODEL)),
],
options={
'permissions': (('view_chatroom', 'Read'), ('control_chatroom', 'Control')),
'permissions': (('view_chatprofile', 'Read'), ('control_chatprofile', 'Control')),
},
),
migrations.CreateModel(
name='ChatProfile',
name='OPClient',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('config', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='djangoldp_account.ChatConfig')),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='chatProfile', to=settings.AUTH_USER_MODEL)),
('issuer', models.URLField()),
('client_id', models.CharField(max_length=255)),
('client_secret', models.CharField(max_length=255)),
],
options={
'permissions': (('view_chatprofile', 'Read'), ('control_chatprofile', 'Control')),
'abstract': False,
'default_permissions': ('add', 'change', 'delete', 'view', 'control'),
},
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-01-21 16:51
from __future__ import unicode_literals
from django.db import migrations, models
def migrate_data(apps, schema_editor):
ChatProfile = apps.get_model('djangoldp_account', 'ChatProfile')
for profile in ChatProfile.objects.all():
profile.jabberID = profile.config.jabberID
profile.save()
class Migration(migrations.Migration):
dependencies = [
('djangoldp_account', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='chatprofile',
name='jabberID',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='chatprofile',
name='jabberRoom',
field=models.BooleanField(default=True),
),
migrations.RunPython(migrate_data),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-01-21 16:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_account', '0002_auto_20190121_1651'),
]
operations = [
migrations.RemoveField(
model_name='chatprofile',
name='config',
),
migrations.RemoveField(
model_name='chatprofile',
name='jabberRoom',
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-01-21 17:06
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_circle', '0004_remove_circle_chatconfig'),
('djangoldp_account', '0003_auto_20190121_1659'),
]
operations = [
migrations.DeleteModel(
name='ChatConfig',
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-04-04 14:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_account', '0004_delete_chatconfig'),
]
operations = [
migrations.CreateModel(
name='OPClient',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('issuer', models.URLField()),
('client_id', models.CharField(max_length=255)),
],
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-04-15 11:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_account', '0005_opclient'),
]
operations = [
migrations.AddField(
model_name='opclient',
name='client_secret',
field=models.CharField(default=1, max_length=255),
preserve_default=False,
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-04-30 14:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_account', '0006_opclient_client_secret'),
]
operations = [
migrations.AddField(
model_name='account',
name='issuer',
field=models.URLField(blank=True, null=True),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11.21 on 2019-06-14 13:56
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_account', '0007_account_issuer'),
]
operations = [
migrations.AlterModelOptions(
name='opclient',
options={'default_permissions': ('add', 'change', 'delete', 'view', 'control')},
),
]
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