* google calendar improvements * fix * change vacation request name * #85 - google calendar improvements * #85 - fix * #85 - fix * #85 - fix
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class() extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table("vacations", function (Blueprint $table): void {
|
||||
$table->dropColumn("event_id");
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table("vacations", function (Blueprint $table): void {
|
||||
$table->string("event_id")->nullable();
|
||||
});
|
||||
}
|
||||
};
|
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class() extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table("vacation_requests", function (Blueprint $table): void {
|
||||
$table->json("event_ids")->nullable();
|
||||
$table->dropColumn("name");
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table("vacation_requests", function (Blueprint $table): void {
|
||||
$table->dropColumn("event_ids");
|
||||
$table->string("name")->nullable();
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user