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 cd72b60 + 39e0c26 commit b334b54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function up(): void
$table->string('last_name'); // required
$table->string('email'); // required

if (DB::getDriverName() == 'mysql'|| DB::getDriverName() == 'mariadb') {
if (DB::getDriverName() == 'mysql' || DB::getDriverName() == 'mariadb') {
$table->string('full_name')->virtualAs("CONCAT(first_name, ' ', last_name)");
$table->string('status')->storedAs('IF(active = 1, TRUE, FALSE)');
}
Expand Down

0 comments on commit b334b54

Please sign in to comment.