Skip to content

Commit

Permalink
[harvest] add nullable columns migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislav-chynoransky authored and eronisko committed Mar 9, 2024
1 parent f2eb29c commit 16704ca
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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::table('spice_harvester_harvests', function (Blueprint $table) {
$table->string('set_spec')->nullable()->change();
$table->string('set_name')->nullable()->change();
$table->string('set_description')->nullable()->change();
$table->text('status_messages')->nullable()->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('spice_harvester_harvests', function (Blueprint $table) {
$table->string('set_spec')->nullable(false)->change();
$table->string('set_name')->nullable(false)->change();
$table->string('set_description')->nullable(false)->change();
$table->text('status_messages')->nullable(false)->change();
});
}
};

0 comments on commit 16704ca

Please sign in to comment.