mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 06:51:08 +00:00
Bit of code cleanup courtesy of PHPStorm.
This commit is contained in:
@@ -1,31 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
class FixNullables extends Migration {
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run the migrations.
|
* Class FixNullables
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function up()
|
class FixNullables extends Migration
|
||||||
{
|
{
|
||||||
Schema::table(
|
|
||||||
'rule_groups', function (Blueprint $table)
|
|
||||||
{
|
|
||||||
$table->text('description')->nullable()->change();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
Schema::table(
|
|
||||||
'rules', function (Blueprint $table)
|
|
||||||
{
|
|
||||||
$table->text('description')->nullable()->change();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverse the migrations.
|
* Reverse the migrations.
|
||||||
@@ -36,4 +18,24 @@ class FixNullables extends Migration {
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table(
|
||||||
|
'rule_groups', function (Blueprint $table) {
|
||||||
|
$table->text('description')->nullable()->change();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
Schema::table(
|
||||||
|
'rules', function (Blueprint $table) {
|
||||||
|
$table->text('description')->nullable()->change();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user