Skip to content

Commit

Permalink
Merge pull request #616 from wri/feat/TM-1400-research-insert-fixes
Browse files Browse the repository at this point in the history
[TM-1400] Allow null in specific epithet.
  • Loading branch information
roguenet authored Dec 16, 2024
2 parents fd95eda + 50aa495 commit d66b705
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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('tree_species_research', function (Blueprint $table) {
$table->string('specific_epithet')->nullable()->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('tree_species_research', function (Blueprint $table) {
$table->string('specific_epithet')->nullable(false)->change();
});
}
};

0 comments on commit d66b705

Please sign in to comment.