invoiceninja/database/migrations/2014_10_22_174452_add_affiliate_price.php
2017-01-30 21:40:43 +02:00

39 lines
801 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
class AddAffiliatePrice extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('affiliates', function ($table) {
$table->decimal('price', 7, 2)->nullable();
});
Schema::table('licenses', function ($table) {
$table->unsignedInteger('product_id')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('affiliates', function ($table) {
$table->dropColumn('price');
});
Schema::table('licenses', function ($table) {
$table->dropColumn('product_id');
});
}
}