Files
faveo/database/migrations2/2016_01_12_060642_create_widgets_table.php
2016-01-25 20:45:35 +05:30

36 lines
549 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateWidgetsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('widgets', function(Blueprint $table)
{
$table->integer('id', true);
$table->string('name', 30)->nullable();
$table->text('value')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('widgets');
}
}