Skip to content

Commit 523cb14

Browse files
committed
Merge branch 'issue_2205'
2 parents f75de70 + 433c955 commit 523cb14

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

eos/db/migrations/upgrade40.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Migration 40
3+
4+
Imports all item conversions since Migration 28 and runs them against module.baseItemID. This column seems to have been
5+
forgotten about since it's been added.
6+
7+
"""
8+
from .upgrade36 import CONVERSIONS as u36
9+
from .upgrade37 import CONVERSIONS as u37
10+
from .upgrade38 import CONVERSIONS as u38
11+
from .upgrade39 import CONVERSIONS as u39
12+
13+
def upgrade(saveddata_engine):
14+
for conversions in [u36, u37, u38, u39]:
15+
for replacement_item, list in conversions.items():
16+
for retired_item in list:
17+
saveddata_engine.execute('UPDATE "modules" SET "baseItemID" = ? WHERE "baseItemID" = ?',
18+
(replacement_item, retired_item))

0 commit comments

Comments
 (0)