From 420e44e0fe4623a439e26dfd0526ee5ef606a170 Mon Sep 17 00:00:00 2001 From: horus Date: Mon, 24 Feb 2020 02:47:52 +0100 Subject: Crude workaround. --- .../migrations/2020_02_24_005015_add_fk_stats.php | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2020_02_24_005015_add_fk_stats.php (limited to 'database/migrations/2020_02_24_005015_add_fk_stats.php') diff --git a/database/migrations/2020_02_24_005015_add_fk_stats.php b/database/migrations/2020_02_24_005015_add_fk_stats.php new file mode 100644 index 0000000..3a6a66a --- /dev/null +++ b/database/migrations/2020_02_24_005015_add_fk_stats.php @@ -0,0 +1,32 @@ +foreign('mal_id')->references('mal_id')->on('anime'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('stats', function (Blueprint $table) { + // + }); + } +} -- cgit v1.2.3