aboutsummaryrefslogtreecommitdiff
path: root/src/migrations/2015_02_23_184413_botleaguesapi-create_bots.php
diff options
context:
space:
mode:
authorCamil Staps2015-05-24 22:09:13 +0200
committerCamil Staps2015-05-24 22:09:13 +0200
commit4a4b5e05576c68b382e5a6b19638da785cc81c45 (patch)
tree334a651073eea8672ddc93a96e5b9372c48c01f6 /src/migrations/2015_02_23_184413_botleaguesapi-create_bots.php
parentPassword reminders (diff)
Using email as id; User & PasswordReminder
Diffstat (limited to 'src/migrations/2015_02_23_184413_botleaguesapi-create_bots.php')
-rw-r--r--src/migrations/2015_02_23_184413_botleaguesapi-create_bots.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/migrations/2015_02_23_184413_botleaguesapi-create_bots.php b/src/migrations/2015_02_23_184413_botleaguesapi-create_bots.php
index 11ab786..268039b 100644
--- a/src/migrations/2015_02_23_184413_botleaguesapi-create_bots.php
+++ b/src/migrations/2015_02_23_184413_botleaguesapi-create_bots.php
@@ -15,8 +15,8 @@ class BotleaguesapiCreateBots extends Migration {
Schema::create('bots', function(Blueprint $table)
{
$table->increments('id')->unsigned();
- $table->integer('userId')->unsigned();
- $table->foreign('userId')->references('id')->on('users');
+ $table->string('userEmail', 127)->index();
+ $table->foreign('userEmail')->references('email')->on('users');
$table->integer('gameId')->unsigned();
$table->foreign('gameId')->references('id')->on('games');
$table->string('title', 45);