From e8b4bdf6f40370555b2b58e65490bbca46757a3b Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 27 Oct 2017 20:35:34 -0700 Subject: [PATCH] Added location_id to assets table to denorm --- ...17_10_27_180947_denorm_asset_locations.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 database/migrations/2017_10_27_180947_denorm_asset_locations.php diff --git a/database/migrations/2017_10_27_180947_denorm_asset_locations.php b/database/migrations/2017_10_27_180947_denorm_asset_locations.php new file mode 100644 index 0000000000..b6ec3df8e4 --- /dev/null +++ b/database/migrations/2017_10_27_180947_denorm_asset_locations.php @@ -0,0 +1,35 @@ +integer('location_id')->nullable()->default(null); + }); + + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('assets', function (Blueprint $table) { + $table->dropColumn('location_id'); + }); + } +}