Skip to content

Commit 2351783

Browse files
author
morbitzerd
committed
Use getTable from ModuleDataSetupInterface to get table name with prefix
1 parent 2a4e068 commit 2351783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Setup/Patch/Schema/AutocompleteConfigPatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function apply()
3737
];
3838
$this->moduleDataSetup->getConnection()->startSetup();
3939
$connection = $this->moduleDataSetup->getConnection();
40-
$table = $connection->getTableName('core_config_data');
40+
$table = $this->moduleDataSetup->getTable('core_config_data');
4141
foreach ($movedConfigDirectives as $from => $to) {
4242
try {
4343
$connection->query('UPDATE ' . $table . ' SET path = "' . $to . '" WHERE path = "' . $from . '"');

0 commit comments

Comments
 (0)