Skip to content

Commit 67ae8d1

Browse files
committed
set section to nullable on attributes
1 parent 397edf5 commit 67ae8d1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
use Illuminate\Database\Schema\Blueprint;
4+
use Illuminate\Support\Facades\Schema;
5+
use Lunar\Base\Migration;
6+
7+
class SetSectionToNullableOnAttributes extends Migration
8+
{
9+
public function up()
10+
{
11+
Schema::table($this->prefix.'attributes', function (Blueprint $table) {
12+
$table->string('section')->nullable()->change();
13+
});
14+
}
15+
16+
public function down()
17+
{
18+
Schema::table($this->prefix.'attributes', function ($table) {
19+
$table->string('section')->nullable(false)->change();
20+
});
21+
}
22+
}

0 commit comments

Comments
 (0)