2016-09-07 17:48:20 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2025-09-24 13:34:19 +02:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
2016-09-07 17:48:20 -04:00
|
|
|
|
2024-03-19 21:03:50 -04:00
|
|
|
return new class extends Migration
|
2016-09-07 17:48:20 -04:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*/
|
2024-03-19 21:12:27 -04:00
|
|
|
public function up(): void
|
2016-09-07 17:48:20 -04:00
|
|
|
{
|
|
|
|
|
Schema::table('services', function (Blueprint $table) {
|
2025-04-07 21:08:03 -04:00
|
|
|
$table->string('author', 36)->nullable()->after('id');
|
2016-09-07 17:48:20 -04:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*/
|
2024-03-19 21:12:27 -04:00
|
|
|
public function down(): void
|
2016-09-07 17:48:20 -04:00
|
|
|
{
|
|
|
|
|
Schema::table('services', function (Blueprint $table) {
|
|
|
|
|
$table->dropColumn('author');
|
|
|
|
|
});
|
|
|
|
|
}
|
2024-03-19 21:03:50 -04:00
|
|
|
};
|