mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
39 lines
801 B
PHP
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');
|
|
});
|
|
}
|
|
}
|