|
|
@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema; |
|
|
use Illuminate\Database\Schema\Blueprint; |
|
|
use Illuminate\Database\Schema\Blueprint; |
|
|
use Illuminate\Database\Migrations\Migration; |
|
|
use Illuminate\Database\Migrations\Migration; |
|
|
|
|
|
|
|
|
class DummyClass extends Migration |
|
|
|
|
|
|
|
|
class CreateMastersTable extends Migration |
|
|
{ |
|
|
{ |
|
|
/** |
|
|
/** |
|
|
* Run the migrations. |
|
|
* Run the migrations. |
|
|
@ -13,7 +13,7 @@ class DummyClass extends Migration |
|
|
*/ |
|
|
*/ |
|
|
public function up() |
|
|
public function up() |
|
|
{ |
|
|
{ |
|
|
Schema::create('DummyTable', function (Blueprint $table) { |
|
|
|
|
|
|
|
|
Schema::create('masters', function (Blueprint $table) { |
|
|
$table->increments('id'); |
|
|
$table->increments('id'); |
|
|
$table->string('name', 60); |
|
|
$table->string('name', 60); |
|
|
$table->string('description'); |
|
|
$table->string('description'); |
|
|
@ -28,6 +28,6 @@ class DummyClass extends Migration |
|
|
*/ |
|
|
*/ |
|
|
public function down() |
|
|
public function down() |
|
|
{ |
|
|
{ |
|
|
Schema::dropIfExists('DummyTable'); |
|
|
|
|
|
|
|
|
Schema::dropIfExists('masters'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |