Skip to content

Commit

Permalink
get table prefix (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv authored Sep 19, 2022
1 parent 20c09ec commit f6b0aa0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public function up()
{
$prefix = config('database.connections.mysql.prefix');
$prefix = DB::connection()->getTablePrefix();
DB::statement(DB::raw('ALTER TABLE ' . $prefix . 'comdef_db_version ENGINE = InnoDB;'));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public function up()
{
$prefix = config('database.connections.mysql.prefix');
$prefix = DB::connection()->getTablePrefix();
DB::statement(DB::raw('ALTER TABLE ' . $prefix . 'comdef_meetings_data ENGINE = InnoDB;'));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public function up()
{
$prefix = config('database.connections.mysql.prefix');
$prefix = DB::connection()->getTablePrefix();
DB::statement(DB::raw('ALTER TABLE ' . $prefix . 'comdef_meetings_longdata ENGINE = InnoDB;'));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public function up()
{
$prefix = config('database.connections.mysql.prefix');
$prefix = DB::connection()->getTablePrefix();
DB::statement(DB::raw('ALTER TABLE ' . $prefix . 'comdef_formats ENGINE = InnoDB;'));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public function up()
{
$prefix = config('database.connections.mysql.prefix');
$prefix = DB::connection()->getTablePrefix();
DB::statement(DB::raw('ALTER TABLE ' . $prefix . 'comdef_meetings_main ENGINE = InnoDB;'));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public function up()
{
$prefix = config('database.connections.mysql.prefix');
$prefix = DB::connection()->getTablePrefix();
DB::statement(DB::raw('ALTER TABLE ' . $prefix . 'comdef_service_bodies ENGINE = InnoDB;'));
}

Expand Down
2 changes: 1 addition & 1 deletion src/database/migrations/1909_01_01_000000_innodb_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public function up()
{
$prefix = config('database.connections.mysql.prefix');
$prefix = DB::connection()->getTablePrefix();
DB::statement(DB::raw('ALTER TABLE ' . $prefix . 'comdef_users ENGINE = InnoDB;'));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public function up()
{
$prefix = config('database.connections.mysql.prefix');
$prefix = DB::connection()->getTablePrefix();
DB::statement(DB::raw('ALTER TABLE ' . $prefix . 'comdef_changes ENGINE = InnoDB;'));
}

Expand Down

0 comments on commit f6b0aa0

Please sign in to comment.