Files
Docker/Productivite/Snipe-IT/database/migrations/2015_11_05_061115_add_company_id_to_consumables_table.php
2024-04-21 14:42:52 +02:00

34 lines
796 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddCompanyIdToConsumablesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('consumables', function (Blueprint $table) {
$table->integer('company_id')->unsigned()->nullable();
//$table->foreign('company_id')->references('id')->on('companies');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('consumables', function (Blueprint $table) {
//$table->dropForeign('consumables_company_id_foreign');
$table->dropColumn('company_id');
});
}
}