form improvements
This commit is contained in:
@@ -17,7 +17,8 @@ class CreateUsersTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
$table->string('name')->unique();
|
||||
$table->string('email')->unique()->nullable();
|
||||
$table->string('title')->index();
|
||||
$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->rememberToken();
|
||||
});
|
||||
|
||||
@@ -19,6 +19,7 @@ class CreateTablesTable extends Migration
|
||||
$table->unsignedInteger('owner_id');
|
||||
$table->unsignedInteger('ancestor_id')->index()->nullable();
|
||||
$table->unsignedInteger('revision_id')->index(); // active revision
|
||||
$table->string('name')->index(); // indexable
|
||||
$table->string('title')->index(); // indexable
|
||||
$table->text('description');
|
||||
$table->text('license');
|
||||
|
||||
Reference in New Issue
Block a user