Skip to content

Commit c1d35e0

Browse files
committed
temp: remove migration history rewriting, since we're keeping the old apps around
1 parent 3e5fff4 commit c1d35e0

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

cms/djangoapps/contentstore/migrations/0009_learningcontextlinksstatus_publishableentitylink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Migration(migrations.Migration):
8181
null=True,
8282
on_delete=django.db.models.deletion.SET_NULL,
8383
related_name='links',
84-
to='oel_authoring.publishableentity',
84+
to='oel_publishing.publishableentity',
8585
),
8686
),
8787
],

cms/djangoapps/contentstore/migrations/0010_container_link_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Migration(migrations.Migration):
3232
null=True,
3333
on_delete=django.db.models.deletion.SET_NULL,
3434
related_name='links',
35-
to='oel_authoring.component',
35+
to='oel_components.component',
3636
),
3737
),
3838
migrations.CreateModel(
@@ -48,7 +48,7 @@ class Migration(migrations.Migration):
4848
('created', models.DateTimeField(validators=[openedx_learning.lib.validators.validate_utc_datetime])),
4949
('updated', models.DateTimeField(validators=[openedx_learning.lib.validators.validate_utc_datetime])),
5050
('upstream_container_key', opaque_keys.edx.django.models.ContainerKeyField(help_text='Upstream block key (e.g. lct:...), this value cannot be null and is useful to track upstream library blocks that do not exist yet or were deleted.', max_length=255)),
51-
('upstream_container', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='links', to='oel_authoring.container')),
51+
('upstream_container', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='links', to='oel_publishing.container')),
5252
],
5353
options={
5454
'abstract': False,

cms/djangoapps/modulestore_migrator/migrations/0001_initial.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Migration(migrations.Migration):
2525
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2626
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
2727
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
28-
('change_log_record', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to='oel_authoring.draftchangelogrecord')),
28+
('change_log_record', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to='oel_publishing.draftchangelogrecord')),
2929
],
3030
),
3131
migrations.CreateModel(
@@ -36,7 +36,7 @@ class Migration(migrations.Migration):
3636
('composition_level', models.CharField(choices=[('component', 'Component'), ('unit', 'Unit'), ('subsection', 'Subsection'), ('section', 'Section')], default='component', help_text='Maximum hierachy level at which content should be aggregated in target library', max_length=255)),
3737
('repeat_handling_strategy', models.CharField(choices=[('skip', 'Skip'), ('fork', 'Fork'), ('update', 'Update')], default='skip', help_text='If a piece of content already exists in the content library, choose how to handle it.', max_length=24)),
3838
('preserve_url_slugs', models.BooleanField(default=False, help_text='Should the migration preserve the location IDs of the existing blocks?If not, then new, unique human-readable IDs will be generated based on the block titles.')),
39-
('change_log', models.ForeignKey(help_text='Changelog entry in the target learning package which records this migration', null=True, on_delete=django.db.models.deletion.SET_NULL, to='oel_authoring.draftchangelog')),
39+
('change_log', models.ForeignKey(help_text='Changelog entry in the target learning package which records this migration', null=True, on_delete=django.db.models.deletion.SET_NULL, to='oel_publishing.draftchangelog')),
4040
],
4141
),
4242
migrations.CreateModel(
@@ -60,12 +60,12 @@ class Migration(migrations.Migration):
6060
migrations.AddField(
6161
model_name='modulestoremigration',
6262
name='target',
63-
field=models.ForeignKey(help_text='Content will be imported into this library', on_delete=django.db.models.deletion.CASCADE, to='oel_authoring.learningpackage'),
63+
field=models.ForeignKey(help_text='Content will be imported into this library', on_delete=django.db.models.deletion.CASCADE, to='oel_publishing.learningpackage'),
6464
),
6565
migrations.AddField(
6666
model_name='modulestoremigration',
6767
name='target_collection',
68-
field=models.ForeignKey(blank=True, help_text='Optional - Collection (within the target library) into which imported content will be grouped', null=True, on_delete=django.db.models.deletion.SET_NULL, to='oel_authoring.collection'),
68+
field=models.ForeignKey(blank=True, help_text='Optional - Collection (within the target library) into which imported content will be grouped', null=True, on_delete=django.db.models.deletion.SET_NULL, to='oel_collections.collection'),
6969
),
7070
migrations.AddField(
7171
model_name='modulestoremigration',
@@ -99,7 +99,7 @@ class Migration(migrations.Migration):
9999
migrations.AddField(
100100
model_name='modulestoreblockmigration',
101101
name='target',
102-
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='oel_authoring.publishableentity'),
102+
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='oel_publishing.publishableentity'),
103103
),
104104
migrations.AlterUniqueTogether(
105105
name='modulestoreblockmigration',

cms/djangoapps/modulestore_migrator/migrations/0004_alter_modulestoreblockmigration_target_squashed_0005_modulestoreblockmigration_unsupported_reason.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Migration(migrations.Migration):
1919
help_text='The target entity of this block migration, set to null if it fails to migrate',
2020
null=True,
2121
on_delete=django.db.models.deletion.CASCADE,
22-
to='oel_authoring.publishableentity',
22+
to='oel_publishing.publishableentity',
2323
),
2424
),
2525
migrations.AddField(

openedx/core/djangoapps/content_libraries/migrations/0010_contentlibrary_learning_package_and_more.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Migration(migrations.Migration):
1515
migrations.AddField(
1616
model_name='contentlibrary',
1717
name='learning_package',
18-
field=models.OneToOneField(default=None, null=True, on_delete=django.db.models.deletion.RESTRICT, to='oel_authoring.learningpackage'),
18+
field=models.OneToOneField(default=None, null=True, on_delete=django.db.models.deletion.RESTRICT, to='oel_publishing.learningpackage'),
1919
),
2020
migrations.AlterField(
2121
model_name='contentlibrary',

0 commit comments

Comments
 (0)