Browse Source
Zatím neověřeně funkční reorganizace migrací, která odstraňuje situaci, kdy existovaly Node, ale neexistovalo django-polymorphic. Opravuje problém, kdy zmigrované problémy nemají jména (a asi i nic dalšího), možná přináší jiné problémy, nutné ověřit.middleware_test
Tomas "Jethro" Pokorny
4 years ago
13 changed files with 119 additions and 67 deletions
@ -0,0 +1,31 @@ |
|||
|
|||
# Generated by Django 2.2.4 on 2019-08-13 19:45 |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('contenttypes', '0002_remove_content_type_name'), |
|||
('seminar', '0066_problem_polymorphic_ctype'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='OrgTextNode', |
|||
fields=[ |
|||
('treenode_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='seminar.TreeNode')), |
|||
('org_verejny', models.BooleanField(default=True, help_text='Pokud ano, bude org pod článkem podepsaný', verbose_name='Org je veřejný?')), |
|||
('organizator', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='seminar.Organizator', verbose_name='Organizátor')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Organizátorský článek (Node)', |
|||
'verbose_name_plural': 'Organizátorské články (Node)', |
|||
'db_table': 'seminar_nodes_orgtextnode', |
|||
}, |
|||
bases=('seminar.treenode',), |
|||
), |
|||
|
|||
] |
@ -0,0 +1,29 @@ |
|||
# Generated by Django 2.2.4 on 2019-08-13 19:45 |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('contenttypes', '0002_remove_content_type_name'), |
|||
('seminar', '0066b_orgtextnode'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='ReseniNode', |
|||
fields=[ |
|||
('treenode_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='seminar.TreeNode')), |
|||
('reseni', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='seminar.Reseni', verbose_name='reseni')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Otištěné řešení (Node)', |
|||
'verbose_name_plural': 'Otištěná řešení (Node)', |
|||
'db_table': 'seminar_nodes_otistene_reseni', |
|||
}, |
|||
bases=('seminar.treenode',), |
|||
), |
|||
|
|||
] |
@ -1,27 +0,0 @@ |
|||
# Generated by Django 2.2.9 on 2020-03-18 23:59 |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('seminar', '0077_auto_20200318_2146'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='OtisteneReseniNode', |
|||
fields=[ |
|||
('treenode_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='seminar.TreeNode')), |
|||
('reseni', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='seminar.Reseni', verbose_name='reseni')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Otištěné řešení (Node)', |
|||
'verbose_name_plural': 'Otištěná řešení (Node)', |
|||
'db_table': 'seminar_nodes_otistene_reseni', |
|||
}, |
|||
bases=('seminar.treenode',), |
|||
), |
|||
] |
@ -0,0 +1,28 @@ |
|||
# Generated by Django 2.2.12 on 2021-03-30 19:05 |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('seminar', '0092_auto_20210309_2049'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.DeleteModel( |
|||
name='VysledkyCelkemKCislu', |
|||
), |
|||
migrations.DeleteModel( |
|||
name='VysledkyKCislu', |
|||
), |
|||
migrations.DeleteModel( |
|||
name='VysledkyKCisluOdjakziva', |
|||
), |
|||
migrations.DeleteModel( |
|||
name='VysledkyKCisluZaRocnik', |
|||
), |
|||
migrations.DeleteModel( |
|||
name='VysledkyZaCislo', |
|||
), |
|||
] |
Loading…
Reference in new issue