logo, improved listing, some helpers, mail confirms table, confirmed flag, user title column..
This commit is contained in:
@@ -18,8 +18,11 @@ class CreateUsersTable extends Migration
|
||||
$table->timestamps();
|
||||
$table->string('name')->unique();
|
||||
$table->string('title')->index();
|
||||
$table->text('bio')->nullable();
|
||||
$table->text('website')->nullable();
|
||||
$table->string('email')->unique(); // would have to be nullable if we supported login via providers that don't give us e-mail
|
||||
$table->string('password')->nullable();
|
||||
$table->string('password')->nullable(); // null if registered via provider and not set a pw yet
|
||||
$table->boolean('confirmed')->default(false); // set to 1 after e-mail is verified
|
||||
$table->rememberToken();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,6 +18,8 @@ class CreateRevisionsTable extends Migration
|
||||
$table->timestamps();
|
||||
$table->unsignedInteger('ancestor_id')->index()->nullable(); // parent revision
|
||||
|
||||
$table->unsignedInteger('row_count'); // cached nbr of rows
|
||||
|
||||
// columns specification
|
||||
// array with: {name, title, type}
|
||||
$table->jsonb('columns');
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateEmailConfirmationsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('email_confirmations', function (Blueprint $table) {
|
||||
$table->unsignedInteger('user_id')->index();
|
||||
$table->timestamp('created_at')->nullable();
|
||||
$table->string('token');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('email_confirmations');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user