Item multiple tax added
This commit is contained in:
@ -16,6 +16,17 @@ class CoreV210 extends Migration
|
||||
Schema::table('failed_jobs', function (Blueprint $table) {
|
||||
$table->string('uuid')->after('id')->nullable()->unique();
|
||||
});
|
||||
|
||||
Schema::create('item_taxes', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('company_id');
|
||||
$table->integer('item_id');
|
||||
$table->integer('tax_id');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->index(['company_id', 'item_id']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -25,6 +36,7 @@ class CoreV210 extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('item_taxes');
|
||||
//
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user