7641c1dfdf
- added nearly all database seed files
38 lines
889 B
PHP
38 lines
889 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateAccountsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('accounts', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('login', 20);
|
|
$table->string('password', 60);
|
|
$table->string('email')->unique();
|
|
$table->string('first_name', 255)->nullable();
|
|
$table->string('last_name', 255)->nullable();
|
|
$table->rememberToken();
|
|
$table->nullableTimestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('accounts');
|
|
}
|
|
}
|