diff --git a/app/database/migrations/2013_11_16_103258_create_locations_table.php b/app/database/migrations/2013_11_16_103258_create_locations_table.php new file mode 100644 index 0000000000..6f751a5ccf --- /dev/null +++ b/app/database/migrations/2013_11_16_103258_create_locations_table.php @@ -0,0 +1,36 @@ +increments('id'); + $table->string('name'); + $table->string('city'); + $table->string('state',2); + $table->string('country',2); + $table->timestamps(); + $table->integer('user_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('locations'); + } + +} \ No newline at end of file diff --git a/app/database/migrations/2013_11_16_103336_add_location_id_to_assets.php b/app/database/migrations/2013_11_16_103336_add_location_id_to_assets.php new file mode 100644 index 0000000000..e6a9f9c8b0 --- /dev/null +++ b/app/database/migrations/2013_11_16_103336_add_location_id_to_assets.php @@ -0,0 +1,30 @@ +integer('location_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } + +} \ No newline at end of file diff --git a/app/database/migrations/2013_11_16_103407_add_checkedout_to_to_assets.php b/app/database/migrations/2013_11_16_103407_add_checkedout_to_to_assets.php new file mode 100644 index 0000000000..50ccadf768 --- /dev/null +++ b/app/database/migrations/2013_11_16_103407_add_checkedout_to_to_assets.php @@ -0,0 +1,30 @@ +integer('checkedout_to'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } + +} \ No newline at end of file diff --git a/app/database/migrations/2013_11_16_103425_create_history_table.php b/app/database/migrations/2013_11_16_103425_create_history_table.php new file mode 100644 index 0000000000..7c8b1a2d3e --- /dev/null +++ b/app/database/migrations/2013_11_16_103425_create_history_table.php @@ -0,0 +1,34 @@ +increments('id'); + $table->integer('checkedout_to')->nullable; + $table->integer('location_id')->nullable; + $table->timestamps(); + $table->integer('user_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('history'); + } + +} \ No newline at end of file