New-site/database/migrations/2024_01_31_025117_create_we...
Dhaverd e6827b7c62
Some checks are pending
Gitea Actions / Build and deploy (push) Waiting to run
Поправил миграции
2024-04-21 14:38:06 +08:00

30 lines
621 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('weekdays', function (Blueprint $table) {
$table->id("id");
$table->text("weekday_name");
$table->date("current_date");
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('weekdays');
}
};