Skip to content

Commit

Permalink
Release 0.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jellesiderius committed Jul 1, 2022
1 parent 9649df9 commit c5532b9
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 13 deletions.
4 changes: 1 addition & 3 deletions dist/tasks/importTask.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tasks/importTask.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/tasks/magentoConfigureTask.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tasks/magentoConfigureTask.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage-db-sync",
"version": "0.5.8",
"version": "0.5.9",
"description": "Database synchronizer for Magento, based on Magerun",
"author": {
"name": "Jelle Siderius"
Expand Down
4 changes: 1 addition & 3 deletions src/tasks/importTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ class ImportTask {
{
title: 'Importing database',
task: async (): Promise<void> => {
// Drop database
await localhostMagentoRootExec(`magerun2 db:drop -f -q`, config);
// Create database
await localhostMagentoRootExec(`magerun2 db:create -q`, config);
// Import SQL file to database
await localhostMagentoRootExec(`magerun2 db:import ${config.serverVariables.databaseName}.sql --force --skip-authorization-entry-creation -q`, config);
await localhostMagentoRootExec(`magerun2 db:import ${config.serverVariables.databaseName}.sql --force --skip-authorization-entry-creation -q --drop`, config);
// Add default admin authorization rules (Fix for missing auth roles)
await localhostMagentoRootExec(`magerun2 db:add-default-authorization-entries -q`, config);
}
Expand Down
2 changes: 0 additions & 2 deletions src/tasks/magentoConfigureTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ class MagentoConfigureTask {
dbQueryUpdate = dbQueryUpdate + `UPDATE core_config_data SET value = 'elasticsearch7' WHERE path = 'catalog/search/engine';`;
}

// @TODO: Mirasvit

// Build up query
dbQuery = dbQueryUpdate;

Expand Down

0 comments on commit c5532b9

Please sign in to comment.