Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit f3e625d

Browse files
committed
Fix broken renamed slideshows app.
Use the right (old) table name in initial migration so that a later migration can correctly rename it.
1 parent d7c69ef commit f3e625d

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

docs/changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88
content plugin available (which renders a grid of thumbnails into a
99
lightbox).
1010

11+
Breaking changes:
12+
13+
* The initial migration for `icekit.plugins.slideshow` had the wrong database
14+
table name, which meant that the `0004_auto_20160821_2140` migration would
15+
not have correctly renamed the database table when upgrading to `>=0.10`
16+
from an earlier version.
17+
18+
To fix this, run the following SQL manually:
19+
20+
ALTER TABLE "slideshow_slideshow" RENAME TO "icekit_plugins_slideshow_slideshow";
21+
22+
If you have yet to upgrade from `<0.10`, you don't need to do anything.
23+
1124
## 0.15 (27 September 2016)
1225

1326
* Improvements to publishing to make it accomodate more types of content.

icekit/plugins/slideshow/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Migration(migrations.Migration):
1919
('show_title', models.BooleanField(default=False, help_text='Should the title of the slide show be displayed?')),
2020
],
2121
options={
22-
'db_table': 'icekit_plugins_slideshow_slideshow'
22+
'db_table': 'slideshow_slideshow'
2323
},
2424
bases=(models.Model,),
2525
),

0 commit comments

Comments
 (0)