Skip to content

Commit

Permalink
WIP: change code for sql Server
Browse files Browse the repository at this point in the history
  • Loading branch information
WatheqAlshowaiter committed Aug 23, 2024
1 parent eea7673 commit f7e8c1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/BackupTablesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ public function test_generate_single_table_backup_with_different_data()

$newTableName = $tableName.'_backup_'.now()->format('Y_m_d_H_i_s');

// todo Debugging output to inspect the contents of the backup table
$backupData = DB::table($newTableName)->get();
dump([
DB::getDriverName(),
$backupData
]);

$this->assertTrue(Schema::hasTable($newTableName));

$this->assertEquals(DB::table($tableName)->value('types'), DB::table($newTableName)->value('types'));
Expand All @@ -125,7 +132,6 @@ public function test_generate_2_single_table_backup_all_table_data()
$sonTable = 'sons';

$father = Father::create([
'id' => 1,
'first_name' => 'Ahmed',
'last_name' => 'Saleh',
'email' => 'father@email.com',
Expand Down

0 comments on commit f7e8c1c

Please sign in to comment.