From 11a20c5be971d97f4a4f575f91b706791c1893a9 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 26 Apr 2015 23:29:17 +0200 Subject: Competitions; CompetitionTypes; Participants; better routing; administrators; ... --- ...26_192035_botleaguesapi-create_participants.php | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/migrations/2015_04_26_192035_botleaguesapi-create_participants.php (limited to 'src/migrations/2015_04_26_192035_botleaguesapi-create_participants.php') diff --git a/src/migrations/2015_04_26_192035_botleaguesapi-create_participants.php b/src/migrations/2015_04_26_192035_botleaguesapi-create_participants.php new file mode 100644 index 0000000..9b76316 --- /dev/null +++ b/src/migrations/2015_04_26_192035_botleaguesapi-create_participants.php @@ -0,0 +1,36 @@ +increments('id'); + $table->integer('botId')->unsigned(); + $table->foreign('botId')->references('id')->on('bots'); + $table->integer('competitionId')->unsigned(); + $table->foreign('competitionId')->references('id')->on('competitions'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('participants'); + } + +} -- cgit v1.2.3