Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class AddShortDescTextreaToBlogEtc extends Migration |
||
13 | { |
||
14 | /** |
||
15 | * Create the DB table changes to add TEXT short_description column. |
||
16 | */ |
||
17 | public function up(): void |
||
18 | { |
||
19 | Schema::table('blog_etc_posts', static function (Blueprint $table) { |
||
20 | $table->text('short_description')->nullable(); |
||
21 | }); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Reverse the migrations. |
||
26 | */ |
||
27 | public function down(): void |
||
31 | }); |
||
32 | } |
||
34 |