Batuhan
Batuhan
FFilament
Created by Batuhan on 2/14/2024 in #❓┊help
Laravel migrate
When I try to run php artisan migrate, I encounter the error 2024_02_14_184516_create_employees_table [1] 73367 segmentation fault php artisan migrate, and in the code I've written as follows:
public function up(): void
{
Schema::create('employees', function (Blueprint $table) {
$table->id();
$table->foreignId('country_id')->constrained()->cascadeOnDelete();
$table->foreignId('state_id')->constrained()->cascadeOnDelete();
$table->foreignId('city_id')->constrained()->cascadeOnDelete();
$table->foreignId('department_id')->constrained()->cascadeOnDelete();
$table->string('first_name');
$table->string('last_name');
$table->string('address');
$table->string('zip_code');
$table->date('birth_date');
$table->date('date_hired');
$table->timestamps();
});
}
public function up(): void
{
Schema::create('employees', function (Blueprint $table) {
$table->id();
$table->foreignId('country_id')->constrained()->cascadeOnDelete();
$table->foreignId('state_id')->constrained()->cascadeOnDelete();
$table->foreignId('city_id')->constrained()->cascadeOnDelete();
$table->foreignId('department_id')->constrained()->cascadeOnDelete();
$table->string('first_name');
$table->string('last_name');
$table->string('address');
$table->string('zip_code');
$table->date('birth_date');
$table->date('date_hired');
$table->timestamps();
});
}
15 replies