coolify/database/migrations/2023_08_06_142951_add_description_field_to_applications_table.php

29 lines
616 B
PHP
Raw Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2023-08-11 20:48:52 +02:00
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
2023-08-07 18:46:40 +02:00
Schema::table('applications', function (Blueprint $table) {
$table->string('description')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
2023-08-07 18:46:40 +02:00
Schema::table('applications', function (Blueprint $table) {
$table->dropColumn('description');
});
}
};