$table->integer('user_id')->unsigned(); $table->string('ip_address')->nullable(); $table->integer('attempts')->default(0); $table->boolean('suspended')->default(0); $table->boolean('banned')->default(0); $table->timestamp('last_attempt_at')->nullable(); $table->timestamp('suspended_at')->nullable(); $table->timestamp('banned_at')->nullable(); // We'll need to ensure that MySQL uses the InnoDB engine to // support the indexes, other engines aren't affected. $table->engine = 'InnoDB'; $table->index('user_id'); }); } } /** * seed the database with initial value */ public function seed() { try { Sentry::createUser(array('email' => '*****@*****.**', 'password' => 'password', 'first_name' => 'Website', 'last_name' => 'Administrator', 'activated' => 1, 'permissions' => array('admin' => 1))); } catch (Exception $e) { echo $e->getMessage() . "\n"; } } } $migrator = new Migrator($config['database']['connections'][$config['database']['default']]); $migrator->migrate(); $migrator->seed();