Added fields for expense taxes
This commit is contained in:
parent
e59bcbd234
commit
bc0cd4ee52
1 changed files with 25 additions and 4 deletions
|
|
@ -5,7 +5,6 @@ use Illuminate\Database\Migrations\Migration;
|
|||
|
||||
class AddSwapCurrencySymbolToCurrency extends Migration
|
||||
{
|
||||
const TABLE_NAME = 'currencies';
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
|
|
@ -13,9 +12,20 @@ class AddSwapCurrencySymbolToCurrency extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table(self::TABLE_NAME,function(Blueprint $table){
|
||||
Schema::table('currencies', function(Blueprint $table) {
|
||||
$table->boolean('swap_currency_symbol')->default(false);
|
||||
});
|
||||
|
||||
Schema::table('expenses', function(Blueprint $table) {
|
||||
$table->string('tax_name1')->nullable();
|
||||
$table->decimal('tax_rate1', 13, 3);
|
||||
$table->string('tax_name2')->nullable();
|
||||
$table->decimal('tax_rate2', 13, 3);
|
||||
});
|
||||
|
||||
Schema::table('account_gateways', function(Blueprint $table) {
|
||||
$table->boolean('require_cvv')->default(true)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -25,8 +35,19 @@ class AddSwapCurrencySymbolToCurrency extends Migration
|
|||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table(self::TABLE_NAME,function(Blueprint $table){
|
||||
$table->dropColumn('swap_currency_symbol');
|
||||
Schema::table('currencies', function(Blueprint $table) {
|
||||
$table->dropColumn('swap_currency_symbol');
|
||||
});
|
||||
|
||||
Schema::table('expenses', function(Blueprint $table) {
|
||||
$table->dropColumn('tax_name1');
|
||||
$table->dropColumn('tax_rate1');
|
||||
$table->dropColumn('tax_name2');
|
||||
$table->dropColumn('tax_rate2');
|
||||
});
|
||||
|
||||
Schema::table('account_gateways', function(Blueprint $table) {
|
||||
$table->dropColumn('require_cvv');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue