Skip to content

Commit

Permalink
Fixed resource name for index setup tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Mar 5, 2020
1 parent 1ea8bc0 commit d821c78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mshoplib/setup/IndexMigrateTextInnodb.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function migrate()
{
$this->msg( 'Migrate mshop_index_text table engine to InnoDB', 0 );

$schema = $this->getSchema( 'db-index' );
$schema = $this->getSchema( 'db-product' );
$sql = sprintf( '
SELECT ENGINE FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = \'%1$s\' AND TABLE_NAME = \'mshop_index_text\'
Expand Down
2 changes: 1 addition & 1 deletion lib/mshoplib/setup/IndexPrepareSimplePrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getPostDependencies() : array
public function migrate()
{
$this->msg( 'Prepare mshop_index_price table for simplification', 0 );
$schema = $this->getSchema( 'db-index' );
$schema = $this->getSchema( 'db-product' );

if( $schema->tableExists( 'mshop_index_price' ) === true
&& $schema->constraintExists( 'mshop_index_price', 'unq_msindpr_p_s_prid_lt' ) === true
Expand Down
2 changes: 1 addition & 1 deletion lib/mshoplib/setup/IndexPrepareSimpleText.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getPostDependencies() : array
public function migrate()
{
$this->msg( 'Prepare mshop_index_text table for simplification', 0 );
$schema = $this->getSchema( 'db-index' );
$schema = $this->getSchema( 'db-product' );

if( $schema->tableExists( 'mshop_index_text' ) === true
&& $schema->constraintExists( 'mshop_index_text', 'unq_msindte_p_s_tid_lt' ) === true
Expand Down

0 comments on commit d821c78

Please sign in to comment.