Put migration table in migration to avoid import troubles
This commit is contained in:
parent
2313f0bcb5
commit
4b99eff7c8
2 changed files with 33 additions and 33 deletions
|
@ -17,7 +17,39 @@ import sqlalchemy as sa
|
||||||
from sqlalchemy.sql import table, column, text
|
from sqlalchemy.sql import table, column, text
|
||||||
|
|
||||||
from hlds.definitions import location_definitions
|
from hlds.definitions import location_definitions
|
||||||
from data.migration import LOCATION_LEGACY_TO_HLDS, DISH_LEGACY_TO_HLDS
|
|
||||||
|
LOCATION_LEGACY_TO_HLDS = {
|
||||||
|
2: "blauw_kotje",
|
||||||
|
3: "ocean_garden",
|
||||||
|
4: "delhaize",
|
||||||
|
5: "simpizza",
|
||||||
|
6: "shell_tankstation",
|
||||||
|
7: "pitta_pinte",
|
||||||
|
8: "lan_pizza",
|
||||||
|
9: "oriental",
|
||||||
|
10: "gouden_sate",
|
||||||
|
11: "quick",
|
||||||
|
12: "dominos",
|
||||||
|
13: "stella_di_mare",
|
||||||
|
14: "olifantje",
|
||||||
|
15: "pauls_boutique",
|
||||||
|
16: "fritoloog",
|
||||||
|
17: "andromeda",
|
||||||
|
19: "pita_cece",
|
||||||
|
20: "pita_uniq",
|
||||||
|
21: "basic_italian",
|
||||||
|
22: "pizza_hut",
|
||||||
|
23: "test",
|
||||||
|
25: "primadonna_takeaway",
|
||||||
|
26: "primadonna_delivery",
|
||||||
|
28: "s5",
|
||||||
|
29: "fitchen",
|
||||||
|
30: "kebab_anadolu",
|
||||||
|
}
|
||||||
|
|
||||||
|
DISH_LEGACY_TO_HLDS = {
|
||||||
|
# TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
LOCATION_LEGACY_TO_HLDS = {
|
|
||||||
2: "blauw_kotje",
|
|
||||||
3: "ocean_garden",
|
|
||||||
4: "delhaize",
|
|
||||||
5: "simpizza",
|
|
||||||
6: "shell_tankstation",
|
|
||||||
7: "pitta_pinte",
|
|
||||||
8: "lan_pizza",
|
|
||||||
9: "oriental",
|
|
||||||
10: "gouden_sate",
|
|
||||||
11: "quick",
|
|
||||||
12: "dominos",
|
|
||||||
13: "stella_di_mare",
|
|
||||||
14: "olifantje",
|
|
||||||
15: "pauls_boutique",
|
|
||||||
16: "fritoloog",
|
|
||||||
17: "andromeda",
|
|
||||||
19: "pita_cece",
|
|
||||||
20: "pita_uniq",
|
|
||||||
21: "basic_italian",
|
|
||||||
22: "pizza_hut",
|
|
||||||
23: "test",
|
|
||||||
25: "primadonna_takeaway",
|
|
||||||
26: "primadonna_delivery",
|
|
||||||
28: "s5",
|
|
||||||
29: "fitchen",
|
|
||||||
30: "kebab_anadolu",
|
|
||||||
}
|
|
||||||
|
|
||||||
DISH_LEGACY_TO_HLDS = {
|
|
||||||
# TODO
|
|
||||||
}
|
|
Loading…
Reference in a new issue