general: turn CellBase into a concrete class (#17645)

This commit is contained in:
Frédéric Péters 2018-01-07 15:37:26 +01:00
parent 7a410dbd78
commit 1c2fe18a69
43 changed files with 3448 additions and 1 deletions

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('calendar', '0002_bookingcalendar_days_displayed'),
('data', '0032_auto_20180107_1240'),
]
operations = [
migrations.AddField(
model_name='bookingcalendar',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('calendar', '0003_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 12, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM calendar_bookingcalendar;"""),
migrations.RunSQL("""
UPDATE calendar_bookingcalendar SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = calendar_bookingcalendar.id
AND data_cellbase.subclass = 12);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT calendar_bookingcalendar.cellbase_ptr_id, calendar_bookingcalendar_groups.group_id
FROM calendar_bookingcalendar JOIN calendar_bookingcalendar_groups
ON calendar_bookingcalendar.id = calendar_bookingcalendar_groups.bookingcalendar_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('calendar', '0004_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='bookingcalendar',
name='extra_css_class',
),
migrations.RemoveField(
model_name='bookingcalendar',
name='groups',
),
migrations.RemoveField(
model_name='bookingcalendar',
name='id',
),
migrations.RemoveField(
model_name='bookingcalendar',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='bookingcalendar',
name='order',
),
migrations.RemoveField(
model_name='bookingcalendar',
name='page',
),
migrations.RemoveField(
model_name='bookingcalendar',
name='placeholder',
),
migrations.RemoveField(
model_name='bookingcalendar',
name='public',
),
migrations.RemoveField(
model_name='bookingcalendar',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='bookingcalendar',
name='slug',
),
migrations.AlterField(
model_name='bookingcalendar',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0002_auto_20180105_0846'),
('data', '0032_auto_20180107_1240'),
]
operations = [
migrations.AddField(
model_name='dashboardcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0003_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 13, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM dashboard_dashboardcell;"""),
migrations.RunSQL("""
UPDATE dashboard_dashboardcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = dashboard_dashboardcell.id
AND data_cellbase.subclass = 13);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT dashboard_dashboardcell.cellbase_ptr_id, dashboard_dashboardcell_groups.group_id
FROM dashboard_dashboardcell JOIN dashboard_dashboardcell_groups
ON dashboard_dashboardcell.id = dashboard_dashboardcell_groups.dashboardcell_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0004_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='dashboardcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='dashboardcell',
name='groups',
),
migrations.RemoveField(
model_name='dashboardcell',
name='id',
),
migrations.RemoveField(
model_name='dashboardcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='dashboardcell',
name='order',
),
migrations.RemoveField(
model_name='dashboardcell',
name='page',
),
migrations.RemoveField(
model_name='dashboardcell',
name='placeholder',
),
migrations.RemoveField(
model_name='dashboardcell',
name='public',
),
migrations.RemoveField(
model_name='dashboardcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='dashboardcell',
name='slug',
),
migrations.AlterField(
model_name='dashboardcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('dataviz', '0007_auto_20170214_2006'),
]
operations = [
migrations.AddField(
model_name='chartcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='cubesbarchart',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='cubestable',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='gauge',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,100 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dataviz', '0008_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 14, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM dataviz_chartcell;"""),
migrations.RunSQL("""
UPDATE dataviz_chartcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = dataviz_chartcell.id
AND data_cellbase.subclass = 14);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT dataviz_chartcell.cellbase_ptr_id, dataviz_chartcell_groups.group_id
FROM dataviz_chartcell JOIN dataviz_chartcell_groups
ON dataviz_chartcell.id = dataviz_chartcell_groups.chartcell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 15, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM dataviz_cubesbarchart;"""),
migrations.RunSQL("""
UPDATE dataviz_cubesbarchart SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = dataviz_cubesbarchart.id
AND data_cellbase.subclass = 15);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT dataviz_cubesbarchart.cellbase_ptr_id, dataviz_cubesbarchart_groups.group_id
FROM dataviz_cubesbarchart JOIN dataviz_cubesbarchart_groups
ON dataviz_cubesbarchart.id = dataviz_cubesbarchart_groups.cubesbarchart_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 16, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM dataviz_cubestable;"""),
migrations.RunSQL("""
UPDATE dataviz_cubestable SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = dataviz_cubestable.id
AND data_cellbase.subclass = 16);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT dataviz_cubestable.cellbase_ptr_id, dataviz_cubestable_groups.group_id
FROM dataviz_cubestable JOIN dataviz_cubestable_groups
ON dataviz_cubestable.id = dataviz_cubestable_groups.cubestable_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 17, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM dataviz_gauge;"""),
migrations.RunSQL("""
UPDATE dataviz_gauge SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = dataviz_gauge.id
AND data_cellbase.subclass = 17);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT dataviz_gauge.cellbase_ptr_id, dataviz_gauge_groups.group_id
FROM dataviz_gauge JOIN dataviz_gauge_groups
ON dataviz_gauge.id = dataviz_gauge_groups.gauge_id;"""),
]

View File

@ -0,0 +1,196 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dataviz', '0009_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='chartcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='chartcell',
name='groups',
),
migrations.RemoveField(
model_name='chartcell',
name='id',
),
migrations.RemoveField(
model_name='chartcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='chartcell',
name='order',
),
migrations.RemoveField(
model_name='chartcell',
name='page',
),
migrations.RemoveField(
model_name='chartcell',
name='placeholder',
),
migrations.RemoveField(
model_name='chartcell',
name='public',
),
migrations.RemoveField(
model_name='chartcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='chartcell',
name='slug',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='extra_css_class',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='groups',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='id',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='order',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='page',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='placeholder',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='public',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='cubesbarchart',
name='slug',
),
migrations.RemoveField(
model_name='cubestable',
name='extra_css_class',
),
migrations.RemoveField(
model_name='cubestable',
name='groups',
),
migrations.RemoveField(
model_name='cubestable',
name='id',
),
migrations.RemoveField(
model_name='cubestable',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='cubestable',
name='order',
),
migrations.RemoveField(
model_name='cubestable',
name='page',
),
migrations.RemoveField(
model_name='cubestable',
name='placeholder',
),
migrations.RemoveField(
model_name='cubestable',
name='public',
),
migrations.RemoveField(
model_name='cubestable',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='cubestable',
name='slug',
),
migrations.RemoveField(
model_name='gauge',
name='extra_css_class',
),
migrations.RemoveField(
model_name='gauge',
name='groups',
),
migrations.RemoveField(
model_name='gauge',
name='id',
),
migrations.RemoveField(
model_name='gauge',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='gauge',
name='order',
),
migrations.RemoveField(
model_name='gauge',
name='page',
),
migrations.RemoveField(
model_name='gauge',
name='placeholder',
),
migrations.RemoveField(
model_name='gauge',
name='public',
),
migrations.RemoveField(
model_name='gauge',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='gauge',
name='slug',
),
migrations.AlterField(
model_name='chartcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='cubesbarchart',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='cubestable',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='gauge',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('family', '0004_familyinfoscell_last_update_timestamp'),
]
operations = [
migrations.AddField(
model_name='familyinfoscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('family', '0005_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 18, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM family_familyinfoscell;"""),
migrations.RunSQL("""
UPDATE family_familyinfoscell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = family_familyinfoscell.id
AND data_cellbase.subclass = 18);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT family_familyinfoscell.cellbase_ptr_id, family_familyinfoscell_groups.group_id
FROM family_familyinfoscell JOIN family_familyinfoscell_groups
ON family_familyinfoscell.id = family_familyinfoscell_groups.familyinfoscell_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('family', '0006_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='familyinfoscell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='familyinfoscell',
name='groups',
),
migrations.RemoveField(
model_name='familyinfoscell',
name='id',
),
migrations.RemoveField(
model_name='familyinfoscell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='familyinfoscell',
name='order',
),
migrations.RemoveField(
model_name='familyinfoscell',
name='page',
),
migrations.RemoveField(
model_name='familyinfoscell',
name='placeholder',
),
migrations.RemoveField(
model_name='familyinfoscell',
name='public',
),
migrations.RemoveField(
model_name='familyinfoscell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='familyinfoscell',
name='slug',
),
migrations.AlterField(
model_name='familyinfoscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('fargo', '0004_recentdocumentscell_fargo_site'),
]
operations = [
migrations.AddField(
model_name='recentdocumentscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('fargo', '0005_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 19, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM fargo_recentdocumentscell;"""),
migrations.RunSQL("""
UPDATE fargo_recentdocumentscell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = fargo_recentdocumentscell.id
AND data_cellbase.subclass = 19);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT fargo_recentdocumentscell.cellbase_ptr_id, fargo_recentdocumentscell_groups.group_id
FROM fargo_recentdocumentscell JOIN fargo_recentdocumentscell_groups
ON fargo_recentdocumentscell.id = fargo_recentdocumentscell_groups.recentdocumentscell_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fargo', '0006_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='recentdocumentscell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='recentdocumentscell',
name='groups',
),
migrations.RemoveField(
model_name='recentdocumentscell',
name='id',
),
migrations.RemoveField(
model_name='recentdocumentscell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='recentdocumentscell',
name='order',
),
migrations.RemoveField(
model_name='recentdocumentscell',
name='page',
),
migrations.RemoveField(
model_name='recentdocumentscell',
name='placeholder',
),
migrations.RemoveField(
model_name='recentdocumentscell',
name='public',
),
migrations.RemoveField(
model_name='recentdocumentscell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='recentdocumentscell',
name='slug',
),
migrations.AlterField(
model_name='recentdocumentscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('lingo', '0030_transaction_to_be_paid_remote_items'),
]
operations = [
migrations.AddField(
model_name='activeitems',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='itemshistory',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='lingobasketcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='lingobasketlinkcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='lingorecenttransactionscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='selfdeclaredinvoicepayment',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='tipipaymentformcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,163 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('lingo', '0031_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 20, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM lingo_activeitems;"""),
migrations.RunSQL("""
UPDATE lingo_activeitems SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = lingo_activeitems.id
AND data_cellbase.subclass = 20);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT lingo_activeitems.cellbase_ptr_id, lingo_activeitems_groups.group_id
FROM lingo_activeitems JOIN lingo_activeitems_groups
ON lingo_activeitems.id = lingo_activeitems_groups.activeitems_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 21, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM lingo_itemshistory;"""),
migrations.RunSQL("""
UPDATE lingo_itemshistory SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = lingo_itemshistory.id
AND data_cellbase.subclass = 21);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT lingo_itemshistory.cellbase_ptr_id, lingo_itemshistory_groups.group_id
FROM lingo_itemshistory JOIN lingo_itemshistory_groups
ON lingo_itemshistory.id = lingo_itemshistory_groups.itemshistory_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 22, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM lingo_lingobasketcell;"""),
migrations.RunSQL("""
UPDATE lingo_lingobasketcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = lingo_lingobasketcell.id
AND data_cellbase.subclass = 22);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT lingo_lingobasketcell.cellbase_ptr_id, lingo_lingobasketcell_groups.group_id
FROM lingo_lingobasketcell JOIN lingo_lingobasketcell_groups
ON lingo_lingobasketcell.id = lingo_lingobasketcell_groups.lingobasketcell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 23, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM lingo_lingobasketlinkcell;"""),
migrations.RunSQL("""
UPDATE lingo_lingobasketlinkcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = lingo_lingobasketlinkcell.id
AND data_cellbase.subclass = 23);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT lingo_lingobasketlinkcell.cellbase_ptr_id, lingo_lingobasketlinkcell_groups.group_id
FROM lingo_lingobasketlinkcell JOIN lingo_lingobasketlinkcell_groups
ON lingo_lingobasketlinkcell.id = lingo_lingobasketlinkcell_groups.lingobasketlinkcell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 24, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM lingo_lingorecenttransactionscell;"""),
migrations.RunSQL("""
UPDATE lingo_lingorecenttransactionscell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = lingo_lingorecenttransactionscell.id
AND data_cellbase.subclass = 24);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT lingo_lingorecenttransactionscell.cellbase_ptr_id, lingo_lingorecenttransactionscell_groups.group_id
FROM lingo_lingorecenttransactionscell JOIN lingo_lingorecenttransactionscell_groups
ON lingo_lingorecenttransactionscell.id = lingo_lingorecenttransactionscell_groups.lingorecenttransactionscell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 25, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM lingo_selfdeclaredinvoicepayment;"""),
migrations.RunSQL("""
UPDATE lingo_selfdeclaredinvoicepayment SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = lingo_selfdeclaredinvoicepayment.id
AND data_cellbase.subclass = 25);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT lingo_selfdeclaredinvoicepayment.cellbase_ptr_id, lingo_selfdeclaredinvoicepayment_groups.group_id
FROM lingo_selfdeclaredinvoicepayment JOIN lingo_selfdeclaredinvoicepayment_groups
ON lingo_selfdeclaredinvoicepayment.id = lingo_selfdeclaredinvoicepayment_groups.selfdeclaredinvoicepayment_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 26, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM lingo_tipipaymentformcell;"""),
migrations.RunSQL("""
UPDATE lingo_tipipaymentformcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = lingo_tipipaymentformcell.id
AND data_cellbase.subclass = 26);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT lingo_tipipaymentformcell.cellbase_ptr_id, lingo_tipipaymentformcell_groups.group_id
FROM lingo_tipipaymentformcell JOIN lingo_tipipaymentformcell_groups
ON lingo_tipipaymentformcell.id = lingo_tipipaymentformcell_groups.tipipaymentformcell_id;"""),
]

View File

@ -0,0 +1,331 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('lingo', '0032_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='activeitems',
name='extra_css_class',
),
migrations.RemoveField(
model_name='activeitems',
name='groups',
),
migrations.RemoveField(
model_name='activeitems',
name='id',
),
migrations.RemoveField(
model_name='activeitems',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='activeitems',
name='order',
),
migrations.RemoveField(
model_name='activeitems',
name='page',
),
migrations.RemoveField(
model_name='activeitems',
name='placeholder',
),
migrations.RemoveField(
model_name='activeitems',
name='public',
),
migrations.RemoveField(
model_name='activeitems',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='activeitems',
name='slug',
),
migrations.RemoveField(
model_name='itemshistory',
name='extra_css_class',
),
migrations.RemoveField(
model_name='itemshistory',
name='groups',
),
migrations.RemoveField(
model_name='itemshistory',
name='id',
),
migrations.RemoveField(
model_name='itemshistory',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='itemshistory',
name='order',
),
migrations.RemoveField(
model_name='itemshistory',
name='page',
),
migrations.RemoveField(
model_name='itemshistory',
name='placeholder',
),
migrations.RemoveField(
model_name='itemshistory',
name='public',
),
migrations.RemoveField(
model_name='itemshistory',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='itemshistory',
name='slug',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='groups',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='id',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='order',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='page',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='placeholder',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='public',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='lingobasketcell',
name='slug',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='groups',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='id',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='order',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='page',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='placeholder',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='public',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='lingobasketlinkcell',
name='slug',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='groups',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='id',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='order',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='page',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='placeholder',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='public',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='lingorecenttransactionscell',
name='slug',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='extra_css_class',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='groups',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='id',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='order',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='page',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='placeholder',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='public',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='selfdeclaredinvoicepayment',
name='slug',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='groups',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='id',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='order',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='page',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='placeholder',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='public',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='tipipaymentformcell',
name='slug',
),
migrations.AlterField(
model_name='activeitems',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='itemshistory',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='lingobasketcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='lingobasketlinkcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='lingorecenttransactionscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='selfdeclaredinvoicepayment',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='tipipaymentformcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('maps', '0004_map_initial_state'),
]
operations = [
migrations.AddField(
model_name='map',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('maps', '0005_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 27, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM maps_map;"""),
migrations.RunSQL("""
UPDATE maps_map SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = maps_map.id
AND data_cellbase.subclass = 27);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT maps_map.cellbase_ptr_id, maps_map_groups.group_id
FROM maps_map JOIN maps_map_groups
ON maps_map.id = maps_map_groups.map_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('maps', '0006_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='map',
name='extra_css_class',
),
migrations.RemoveField(
model_name='map',
name='groups',
),
migrations.RemoveField(
model_name='map',
name='id',
),
migrations.RemoveField(
model_name='map',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='map',
name='order',
),
migrations.RemoveField(
model_name='map',
name='page',
),
migrations.RemoveField(
model_name='map',
name='placeholder',
),
migrations.RemoveField(
model_name='map',
name='public',
),
migrations.RemoveField(
model_name='map',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='map',
name='slug',
),
migrations.AlterField(
model_name='map',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('momo', '0011_momoiconcell_last_update_timestamp'),
]
operations = [
migrations.AddField(
model_name='momoiconcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('momo', '0012_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 28, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM momo_momoiconcell;"""),
migrations.RunSQL("""
UPDATE momo_momoiconcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = momo_momoiconcell.id
AND data_cellbase.subclass = 28);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT momo_momoiconcell.cellbase_ptr_id, momo_momoiconcell_groups.group_id
FROM momo_momoiconcell JOIN momo_momoiconcell_groups
ON momo_momoiconcell.id = momo_momoiconcell_groups.momoiconcell_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('momo', '0013_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='momoiconcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='momoiconcell',
name='groups',
),
migrations.RemoveField(
model_name='momoiconcell',
name='id',
),
migrations.RemoveField(
model_name='momoiconcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='momoiconcell',
name='order',
),
migrations.RemoveField(
model_name='momoiconcell',
name='page',
),
migrations.RemoveField(
model_name='momoiconcell',
name='placeholder',
),
migrations.RemoveField(
model_name='momoiconcell',
name='public',
),
migrations.RemoveField(
model_name='momoiconcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='momoiconcell',
name='slug',
),
migrations.AlterField(
model_name='momoiconcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('newsletters', '0003_newsletterscell_last_update_timestamp'),
]
operations = [
migrations.AddField(
model_name='newsletterscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('newsletters', '0004_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 29, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM newsletters_newsletterscell;"""),
migrations.RunSQL("""
UPDATE newsletters_newsletterscell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = newsletters_newsletterscell.id
AND data_cellbase.subclass = 29);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT newsletters_newsletterscell.cellbase_ptr_id, newsletters_newsletterscell_groups.group_id
FROM newsletters_newsletterscell JOIN newsletters_newsletterscell_groups
ON newsletters_newsletterscell.id = newsletters_newsletterscell_groups.newsletterscell_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('newsletters', '0005_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='newsletterscell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='newsletterscell',
name='groups',
),
migrations.RemoveField(
model_name='newsletterscell',
name='id',
),
migrations.RemoveField(
model_name='newsletterscell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='newsletterscell',
name='order',
),
migrations.RemoveField(
model_name='newsletterscell',
name='page',
),
migrations.RemoveField(
model_name='newsletterscell',
name='placeholder',
),
migrations.RemoveField(
model_name='newsletterscell',
name='public',
),
migrations.RemoveField(
model_name='newsletterscell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='newsletterscell',
name='slug',
),
migrations.AlterField(
model_name='newsletterscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('notifications', '0003_notification_origin'),
]
operations = [
migrations.AddField(
model_name='notificationscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('notifications', '0004_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 30, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM notifications_notificationscell;"""),
migrations.RunSQL("""
UPDATE notifications_notificationscell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = notifications_notificationscell.id
AND data_cellbase.subclass = 30);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT notifications_notificationscell.cellbase_ptr_id, notifications_notificationscell_groups.group_id
FROM notifications_notificationscell JOIN notifications_notificationscell_groups
ON notifications_notificationscell.id = notifications_notificationscell_groups.notificationscell_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('notifications', '0005_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='notificationscell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='notificationscell',
name='groups',
),
migrations.RemoveField(
model_name='notificationscell',
name='id',
),
migrations.RemoveField(
model_name='notificationscell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='notificationscell',
name='order',
),
migrations.RemoveField(
model_name='notificationscell',
name='page',
),
migrations.RemoveField(
model_name='notificationscell',
name='placeholder',
),
migrations.RemoveField(
model_name='notificationscell',
name='public',
),
migrations.RemoveField(
model_name='notificationscell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='notificationscell',
name='slug',
),
migrations.AlterField(
model_name='notificationscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('search', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='searchcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('search', '0002_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 31, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM search_searchcell;"""),
migrations.RunSQL("""
UPDATE search_searchcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = search_searchcell.id
AND data_cellbase.subclass = 31);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT search_searchcell.cellbase_ptr_id, search_searchcell_groups.group_id
FROM search_searchcell JOIN search_searchcell_groups
ON search_searchcell.id = search_searchcell_groups.searchcell_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('search', '0003_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='searchcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='searchcell',
name='groups',
),
migrations.RemoveField(
model_name='searchcell',
name='id',
),
migrations.RemoveField(
model_name='searchcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='searchcell',
name='order',
),
migrations.RemoveField(
model_name='searchcell',
name='page',
),
migrations.RemoveField(
model_name='searchcell',
name='placeholder',
),
migrations.RemoveField(
model_name='searchcell',
name='public',
),
migrations.RemoveField(
model_name='searchcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='searchcell',
name='slug',
),
migrations.AlterField(
model_name='searchcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('usersearch', '0003_usersearchcell_last_update_timestamp'),
]
operations = [
migrations.AddField(
model_name='usersearchcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('usersearch', '0004_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 32, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM usersearch_usersearchcell;"""),
migrations.RunSQL("""
UPDATE usersearch_usersearchcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = usersearch_usersearchcell.id
AND data_cellbase.subclass = 32);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT usersearch_usersearchcell.cellbase_ptr_id, usersearch_usersearchcell_groups.group_id
FROM usersearch_usersearchcell JOIN usersearch_usersearchcell_groups
ON usersearch_usersearchcell.id = usersearch_usersearchcell_groups.usersearchcell_id;"""),
]

View File

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('usersearch', '0005_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='usersearchcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='usersearchcell',
name='groups',
),
migrations.RemoveField(
model_name='usersearchcell',
name='id',
),
migrations.RemoveField(
model_name='usersearchcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='usersearchcell',
name='order',
),
migrations.RemoveField(
model_name='usersearchcell',
name='page',
),
migrations.RemoveField(
model_name='usersearchcell',
name='placeholder',
),
migrations.RemoveField(
model_name='usersearchcell',
name='public',
),
migrations.RemoveField(
model_name='usersearchcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='usersearchcell',
name='slug',
),
migrations.AlterField(
model_name='usersearchcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('wcs', '0014_auto_20170214_2006'),
]
operations = [
migrations.AddField(
model_name='categoriescell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='trackingcodeinputcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='wcscategorycell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='wcscurrentdraftscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='wcscurrentformscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='wcsformcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='wcsformsofcategorycell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,163 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:59
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wcs', '0015_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 33, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM wcs_categoriescell;"""),
migrations.RunSQL("""
UPDATE wcs_categoriescell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = wcs_categoriescell.id
AND data_cellbase.subclass = 33);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT wcs_categoriescell.cellbase_ptr_id, wcs_categoriescell_groups.group_id
FROM wcs_categoriescell JOIN wcs_categoriescell_groups
ON wcs_categoriescell.id = wcs_categoriescell_groups.categoriescell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 34, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM wcs_trackingcodeinputcell;"""),
migrations.RunSQL("""
UPDATE wcs_trackingcodeinputcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = wcs_trackingcodeinputcell.id
AND data_cellbase.subclass = 34);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT wcs_trackingcodeinputcell.cellbase_ptr_id, wcs_trackingcodeinputcell_groups.group_id
FROM wcs_trackingcodeinputcell JOIN wcs_trackingcodeinputcell_groups
ON wcs_trackingcodeinputcell.id = wcs_trackingcodeinputcell_groups.trackingcodeinputcell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 35, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM wcs_wcscategorycell;"""),
migrations.RunSQL("""
UPDATE wcs_wcscategorycell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = wcs_wcscategorycell.id
AND data_cellbase.subclass = 35);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT wcs_wcscategorycell.cellbase_ptr_id, wcs_wcscategorycell_groups.group_id
FROM wcs_wcscategorycell JOIN wcs_wcscategorycell_groups
ON wcs_wcscategorycell.id = wcs_wcscategorycell_groups.wcscategorycell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 36, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM wcs_wcscurrentdraftscell;"""),
migrations.RunSQL("""
UPDATE wcs_wcscurrentdraftscell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = wcs_wcscurrentdraftscell.id
AND data_cellbase.subclass = 36);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT wcs_wcscurrentdraftscell.cellbase_ptr_id, wcs_wcscurrentdraftscell_groups.group_id
FROM wcs_wcscurrentdraftscell JOIN wcs_wcscurrentdraftscell_groups
ON wcs_wcscurrentdraftscell.id = wcs_wcscurrentdraftscell_groups.wcscurrentdraftscell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 37, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM wcs_wcscurrentformscell;"""),
migrations.RunSQL("""
UPDATE wcs_wcscurrentformscell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = wcs_wcscurrentformscell.id
AND data_cellbase.subclass = 37);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT wcs_wcscurrentformscell.cellbase_ptr_id, wcs_wcscurrentformscell_groups.group_id
FROM wcs_wcscurrentformscell JOIN wcs_wcscurrentformscell_groups
ON wcs_wcscurrentformscell.id = wcs_wcscurrentformscell_groups.wcscurrentformscell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 38, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM wcs_wcsformcell;"""),
migrations.RunSQL("""
UPDATE wcs_wcsformcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = wcs_wcsformcell.id
AND data_cellbase.subclass = 38);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT wcs_wcsformcell.cellbase_ptr_id, wcs_wcsformcell_groups.group_id
FROM wcs_wcsformcell JOIN wcs_wcsformcell_groups
ON wcs_wcsformcell.id = wcs_wcsformcell_groups.wcsformcell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 39, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM wcs_wcsformsofcategorycell;"""),
migrations.RunSQL("""
UPDATE wcs_wcsformsofcategorycell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = wcs_wcsformsofcategorycell.id
AND data_cellbase.subclass = 39);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT wcs_wcsformsofcategorycell.cellbase_ptr_id, wcs_wcsformsofcategorycell_groups.group_id
FROM wcs_wcsformsofcategorycell JOIN wcs_wcsformsofcategorycell_groups
ON wcs_wcsformsofcategorycell.id = wcs_wcsformsofcategorycell_groups.wcsformsofcategorycell_id;"""),
]

View File

@ -0,0 +1,331 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wcs', '0016_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='categoriescell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='categoriescell',
name='groups',
),
migrations.RemoveField(
model_name='categoriescell',
name='id',
),
migrations.RemoveField(
model_name='categoriescell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='categoriescell',
name='order',
),
migrations.RemoveField(
model_name='categoriescell',
name='page',
),
migrations.RemoveField(
model_name='categoriescell',
name='placeholder',
),
migrations.RemoveField(
model_name='categoriescell',
name='public',
),
migrations.RemoveField(
model_name='categoriescell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='categoriescell',
name='slug',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='groups',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='id',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='order',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='page',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='placeholder',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='public',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='trackingcodeinputcell',
name='slug',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='groups',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='id',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='order',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='page',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='placeholder',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='public',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='wcscategorycell',
name='slug',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='groups',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='id',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='order',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='page',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='placeholder',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='public',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='wcscurrentdraftscell',
name='slug',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='groups',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='id',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='order',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='page',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='placeholder',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='public',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='wcscurrentformscell',
name='slug',
),
migrations.RemoveField(
model_name='wcsformcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='wcsformcell',
name='groups',
),
migrations.RemoveField(
model_name='wcsformcell',
name='id',
),
migrations.RemoveField(
model_name='wcsformcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='wcsformcell',
name='order',
),
migrations.RemoveField(
model_name='wcsformcell',
name='page',
),
migrations.RemoveField(
model_name='wcsformcell',
name='placeholder',
),
migrations.RemoveField(
model_name='wcsformcell',
name='public',
),
migrations.RemoveField(
model_name='wcsformcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='wcsformcell',
name='slug',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='groups',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='id',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='order',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='page',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='placeholder',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='public',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='wcsformsofcategorycell',
name='slug',
),
migrations.AlterField(
model_name='categoriescell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='trackingcodeinputcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='wcscategorycell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='wcscurrentdraftscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='wcscurrentformscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='wcsformcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='wcsformsofcategorycell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -0,0 +1,96 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 12:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0031_remove_blurps'),
]
operations = [
migrations.CreateModel(
name='CellBase',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('placeholder', models.CharField(max_length=20)),
('order', models.PositiveIntegerField()),
('slug', models.SlugField(blank=True, verbose_name='Slug')),
('extra_css_class', models.CharField(blank=True, max_length=100, verbose_name='Extra classes for CSS styling')),
('public', models.BooleanField(default=True, verbose_name='Public')),
('restricted_to_unlogged', models.BooleanField(default=False, verbose_name='Restrict to unlogged users')),
('last_update_timestamp', models.DateTimeField(auto_now=True)),
('subclass', models.IntegerField(default=-1)),
('subclassid', models.IntegerField(default=-1)),
('groups', models.ManyToManyField(blank=True, to='auth.Group', verbose_name='Groups')),
('page', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='data.Page')),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='configjsoncell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='feedcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='fortunecell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='jsoncell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='linkcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='menucell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='parameterscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='parentcontentcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='textcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
migrations.AddField(
model_name='unlockmarkercell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, null=True, blank=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, serialize=False, to='data.CellBase'),
preserve_default=False,
),
]

View File

@ -0,0 +1,228 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('data', '0032_auto_20180107_1240'),
('family', '0005_auto_20180107_1240'),
]
operations = [
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 2, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_configjsoncell;"""),
migrations.RunSQL("""
UPDATE data_configjsoncell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_configjsoncell.id
AND data_cellbase.subclass = 2);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_configjsoncell.cellbase_ptr_id, data_configjsoncell_groups.group_id
FROM data_configjsoncell JOIN data_configjsoncell_groups
ON data_configjsoncell.id = data_configjsoncell_groups.configjsoncell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 3, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_feedcell;"""),
migrations.RunSQL("""
UPDATE data_feedcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_feedcell.id
AND data_cellbase.subclass = 3);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_feedcell.cellbase_ptr_id, data_feedcell_groups.group_id
FROM data_feedcell JOIN data_feedcell_groups
ON data_feedcell.id = data_feedcell_groups.feedcell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 4, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_fortunecell;"""),
migrations.RunSQL("""
UPDATE data_fortunecell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_fortunecell.id
AND data_cellbase.subclass = 4);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_fortunecell.cellbase_ptr_id, data_fortunecell_groups.group_id
FROM data_fortunecell JOIN data_fortunecell_groups
ON data_fortunecell.id = data_fortunecell_groups.fortunecell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 5, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_jsoncell;"""),
migrations.RunSQL("""
UPDATE data_jsoncell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_jsoncell.id
AND data_cellbase.subclass = 5);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_jsoncell.cellbase_ptr_id, data_jsoncell_groups.group_id
FROM data_jsoncell JOIN data_jsoncell_groups
ON data_jsoncell.id = data_jsoncell_groups.jsoncell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 6, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_linkcell;"""),
migrations.RunSQL("""
UPDATE data_linkcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_linkcell.id
AND data_cellbase.subclass = 6);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_linkcell.cellbase_ptr_id, data_jsoncell_groups.group_id
FROM data_linkcell JOIN data_jsoncell_groups
ON data_linkcell.id = data_jsoncell_groups.jsoncell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 7, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_menucell;"""),
migrations.RunSQL("""
UPDATE data_menucell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_menucell.id
AND data_cellbase.subclass = 7);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_menucell.cellbase_ptr_id, data_menucell_groups.group_id
FROM data_menucell JOIN data_menucell_groups
ON data_menucell.id = data_menucell_groups.menucell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 8, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_parameterscell;"""),
migrations.RunSQL("""
UPDATE data_parameterscell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_parameterscell.id
AND data_cellbase.subclass = 8);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_parameterscell.cellbase_ptr_id, data_parameterscell_groups.group_id
FROM data_parameterscell JOIN data_parameterscell_groups
ON data_parameterscell.id = data_parameterscell_groups.parameterscell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 9, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_parentcontentcell;"""),
migrations.RunSQL("""
UPDATE data_parentcontentcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_parentcontentcell.id
AND data_cellbase.subclass = 9);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_parentcontentcell.cellbase_ptr_id, data_parentcontentcell_groups.group_id
FROM data_parentcontentcell JOIN data_parentcontentcell_groups
ON data_parentcontentcell.id = data_parentcontentcell_groups.parentcontentcell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 10, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_textcell;"""),
migrations.RunSQL("""
UPDATE data_textcell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_textcell.id
AND data_cellbase.subclass = 10);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_textcell.cellbase_ptr_id, data_textcell_groups.group_id
FROM data_textcell JOIN data_textcell_groups
ON data_textcell.id = data_textcell_groups.textcell_id;"""),
migrations.RunSQL("""
INSERT INTO data_cellbase (
subclass, subclassid,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp)
SELECT 11, id,
page_id, placeholder, "order", slug, extra_css_class,
public, restricted_to_unlogged, last_update_timestamp
FROM data_unlockmarkercell;"""),
migrations.RunSQL("""
UPDATE data_unlockmarkercell SET cellbase_ptr_id =
(SELECT data_cellbase.id
FROM data_cellbase
WHERE data_cellbase.subclassid = data_unlockmarkercell.id
AND data_cellbase.subclass = 11);"""),
migrations.RunSQL("""
INSERT INTO data_cellbase_groups (cellbase_id, group_id)
SELECT data_unlockmarkercell.cellbase_ptr_id, data_unlockmarkercell_groups.group_id
FROM data_unlockmarkercell JOIN data_unlockmarkercell_groups
ON data_unlockmarkercell.id = data_unlockmarkercell_groups.unlockmarkercell_id;"""),
]

View File

@ -0,0 +1,466 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0033_auto_20180107_1259'),
]
operations = [
migrations.RemoveField(
model_name='configjsoncell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='configjsoncell',
name='groups',
),
migrations.RemoveField(
model_name='configjsoncell',
name='id',
),
migrations.RemoveField(
model_name='configjsoncell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='configjsoncell',
name='order',
),
migrations.RemoveField(
model_name='configjsoncell',
name='page',
),
migrations.RemoveField(
model_name='configjsoncell',
name='placeholder',
),
migrations.RemoveField(
model_name='configjsoncell',
name='public',
),
migrations.RemoveField(
model_name='configjsoncell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='configjsoncell',
name='slug',
),
migrations.RemoveField(
model_name='feedcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='feedcell',
name='groups',
),
migrations.RemoveField(
model_name='feedcell',
name='id',
),
migrations.RemoveField(
model_name='feedcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='feedcell',
name='order',
),
migrations.RemoveField(
model_name='feedcell',
name='page',
),
migrations.RemoveField(
model_name='feedcell',
name='placeholder',
),
migrations.RemoveField(
model_name='feedcell',
name='public',
),
migrations.RemoveField(
model_name='feedcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='feedcell',
name='slug',
),
migrations.RemoveField(
model_name='fortunecell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='fortunecell',
name='groups',
),
migrations.RemoveField(
model_name='fortunecell',
name='id',
),
migrations.RemoveField(
model_name='fortunecell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='fortunecell',
name='order',
),
migrations.RemoveField(
model_name='fortunecell',
name='page',
),
migrations.RemoveField(
model_name='fortunecell',
name='placeholder',
),
migrations.RemoveField(
model_name='fortunecell',
name='public',
),
migrations.RemoveField(
model_name='fortunecell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='fortunecell',
name='slug',
),
migrations.RemoveField(
model_name='jsoncell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='jsoncell',
name='groups',
),
migrations.RemoveField(
model_name='jsoncell',
name='id',
),
migrations.RemoveField(
model_name='jsoncell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='jsoncell',
name='order',
),
migrations.RemoveField(
model_name='jsoncell',
name='page',
),
migrations.RemoveField(
model_name='jsoncell',
name='placeholder',
),
migrations.RemoveField(
model_name='jsoncell',
name='public',
),
migrations.RemoveField(
model_name='jsoncell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='jsoncell',
name='slug',
),
migrations.RemoveField(
model_name='linkcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='linkcell',
name='groups',
),
migrations.RemoveField(
model_name='linkcell',
name='id',
),
migrations.RemoveField(
model_name='linkcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='linkcell',
name='order',
),
migrations.RemoveField(
model_name='linkcell',
name='page',
),
migrations.RemoveField(
model_name='linkcell',
name='placeholder',
),
migrations.RemoveField(
model_name='linkcell',
name='public',
),
migrations.RemoveField(
model_name='linkcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='linkcell',
name='slug',
),
migrations.RemoveField(
model_name='menucell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='menucell',
name='groups',
),
migrations.RemoveField(
model_name='menucell',
name='id',
),
migrations.RemoveField(
model_name='menucell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='menucell',
name='order',
),
migrations.RemoveField(
model_name='menucell',
name='page',
),
migrations.RemoveField(
model_name='menucell',
name='placeholder',
),
migrations.RemoveField(
model_name='menucell',
name='public',
),
migrations.RemoveField(
model_name='menucell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='menucell',
name='slug',
),
migrations.RemoveField(
model_name='parameterscell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='parameterscell',
name='groups',
),
migrations.RemoveField(
model_name='parameterscell',
name='id',
),
migrations.RemoveField(
model_name='parameterscell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='parameterscell',
name='order',
),
migrations.RemoveField(
model_name='parameterscell',
name='page',
),
migrations.RemoveField(
model_name='parameterscell',
name='placeholder',
),
migrations.RemoveField(
model_name='parameterscell',
name='public',
),
migrations.RemoveField(
model_name='parameterscell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='parameterscell',
name='slug',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='groups',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='id',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='order',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='page',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='placeholder',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='public',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='parentcontentcell',
name='slug',
),
migrations.RemoveField(
model_name='textcell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='textcell',
name='groups',
),
migrations.RemoveField(
model_name='textcell',
name='id',
),
migrations.RemoveField(
model_name='textcell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='textcell',
name='order',
),
migrations.RemoveField(
model_name='textcell',
name='page',
),
migrations.RemoveField(
model_name='textcell',
name='placeholder',
),
migrations.RemoveField(
model_name='textcell',
name='public',
),
migrations.RemoveField(
model_name='textcell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='textcell',
name='slug',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='extra_css_class',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='groups',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='id',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='last_update_timestamp',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='order',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='page',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='placeholder',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='public',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='restricted_to_unlogged',
),
migrations.RemoveField(
model_name='unlockmarkercell',
name='slug',
),
migrations.AlterField(
model_name='configjsoncell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='feedcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='fortunecell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='jsoncell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='linkcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='menucell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='parameterscell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='parentcontentcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='textcell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
migrations.AlterField(
model_name='unlockmarkercell',
name='cellbase_ptr',
field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='data.CellBase'),
),
]

View File

@ -350,8 +350,12 @@ class CellBase(models.Model):
# get_badge(self, context); set to None so cell types can be skipped easily
get_badge = None
# created for migrating to concrete class.
subclass = models.IntegerField(default=-1)
subclassid = models.IntegerField(default=-1)
class Meta:
abstract = True
abstract = False
def __unicode__(self):
label = unicode(self.get_verbose_name())