Skip to content

Commit

Permalink
Merge branch 'main' of github.com:WatheqAlshowaiter/backup-tables
Browse files Browse the repository at this point in the history
  • Loading branch information
WatheqAlshowaiter committed Aug 20, 2024
2 parents aa5ee60 + 7e78e87 commit 90128d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BackupTablesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected function backupTablesForSqlite($newTableName, $table)

protected function backupTablesForForMysqlAndMariaDb($newTableName, $table): array
{
if($this->getMysqlVersion() >= Constants::VERSION_AFTER_STORED_AS_VIRTUAL_AS_SUPPORT){
if ($this->getMysqlVersion() >= Constants::VERSION_AFTER_STORED_AS_VIRTUAL_AS_SUPPORT) {
DB::statement(/**@lang MySQL**/ "CREATE TABLE $newTableName AS SELECT * FROM $table");
DB::statement(/**@lang MySQL**/ "INSERT INTO $newTableName SELECT * FROM $table");
}
Expand Down

0 comments on commit 90128d4

Please sign in to comment.