38 lines
644 B
PHP
38 lines
644 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateIdentitiesTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('identities', function(Blueprint $table)
|
|
{
|
|
$table->increments('id');
|
|
$table->string('title', 100);
|
|
$table->string('name', 200)->nullable();
|
|
$table->text('configs', 65535)->nullable();
|
|
$table->text('remark', 65535)->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('identities');
|
|
}
|
|
|
|
}
|