feat: ✅ Update customer_logins last_connection field for unit tests with MySQL 8

This commit is contained in:
Vincent BRIDIER 2025-04-23 10:40:26 +02:00
parent b340a252ff
commit acef67939a
No known key found for this signature in database
GPG key ID: 8571BFA20420D512

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::table('customer_logins', function (Blueprint $table) {
$table->timestamp('last_connection')->nullable()->default(null)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::table('customer_logins', function (Blueprint $table) {
$table->timestamp('last_connection')->nullable(false)->change();
});
}
};