2016-09-07 23:48:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class AddUniqueIdentifier extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*/
|
2022-11-25 21:29:04 +01:00
|
|
|
public function up(): void
|
2016-09-07 23:48:20 +02:00
|
|
|
{
|
|
|
|
Schema::table('services', function (Blueprint $table) {
|
|
|
|
$table->char('author', 36)->after('id');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
2022-11-25 21:29:04 +01:00
|
|
|
public function down(): void
|
2016-09-07 23:48:20 +02:00
|
|
|
{
|
|
|
|
Schema::table('services', function (Blueprint $table) {
|
|
|
|
$table->dropColumn('author');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|