aboutsummaryrefslogtreecommitdiffhomepage
path: root/database
diff options
context:
space:
mode:
Diffstat (limited to 'database')
-rw-r--r--database/migrations/2014_10_12_000000_create_users_table.php1
-rw-r--r--database/seeds/DatabaseSeeder.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php
index 9281465..1846db1 100644
--- a/database/migrations/2014_10_12_000000_create_users_table.php
+++ b/database/migrations/2014_10_12_000000_create_users_table.php
@@ -20,6 +20,7 @@ class CreateUsersTable extends Migration
$table->string('avatar')->default('0.png');
$table->string('prevHash', 60)->unique();
$table->string('hash', 60)->unique();
+ $table->string('api_token')->default("");
$table->rememberToken();
$table->timestamps();
});
diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php
index 1f7953b..8edbc8e 100644
--- a/database/seeds/DatabaseSeeder.php
+++ b/database/seeds/DatabaseSeeder.php
@@ -27,7 +27,8 @@ class DatabaseSeeder extends Seeder
'email' => 'marvin@borners.de',
'password' => Hash::make('password'),
'prevHash' => Hash::make('genesis'),
- 'hash' => Hash::make(Hash::make('genesis') . 'Marvin Borner' . 'marvin@borners.de' . Hash::make('password')) // hashing: prev hash, all fields in current 'block'
+ 'hash' => Hash::make(Hash::make('genesis') . 'Marvin Borner' . 'marvin@borners.de' . Hash::make('password')), // hashing: prev hash, all fields in current 'block'
+ 'api_token' => "password"
]);
}
}