Skip to content

Commit

Permalink
Added translated migration (ezsystems#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianz5 committed Aug 23, 2018
1 parent ed69d90 commit 478c7a1
Show file tree
Hide file tree
Showing 10 changed files with 18,521 additions and 3,852 deletions.
4 changes: 2 additions & 2 deletions app/config/default_parameters.yml
Expand Up @@ -108,9 +108,9 @@ parameters:

# locationIds used for fetching items on home page
app.home.place_list_location_id: 219
app.home.tastes_location_id: 96
app.home.tastes_location_id: 207

app.migration_reference_file: '/src/AppBundle/MigrationVersions/References/references_all.yml'
app.migration_reference_file: '/src/AppBundle/MigrationVersions/References/references.yml'

app.migration.values_mapping:
app.home.place_list_location_id: 'ref_location_place_list__home__places_and_tastes__places'
Expand Down
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -104,6 +104,7 @@
]
},
"config": {
"process-timeout":0,
"bin-dir": "bin",
"preferred-install": {
"ezsystems/*": "dist"
Expand Down
10 changes: 7 additions & 3 deletions src/AppBundle/Installer/PlatformDemoInstaller.php
Expand Up @@ -28,11 +28,15 @@ public function importData()
}

$migrationCommands = [
'cache:clear',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/schema_mysql.sql -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/tags.yml -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/product_list.yml -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/all.yml -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/users.yml -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/languages.yml -v -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/product_list.yml -v -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/all.yml -v -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/images.yml -v -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/content.yml -v -n',
'kaliop:migration:migrate --path=src/AppBundle/MigrationVersions/users.yml -v -n',
];

foreach ($migrationCommands as $cmd) {
Expand Down

0 comments on commit 478c7a1

Please sign in to comment.