aboutsummaryrefslogtreecommitdiff
path: root/src/migrations/2015_02_23_184413_botleaguesapi-create_bots.php
diff options
context:
space:
mode:
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);