mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Merge pull request #181 from andrenam/sqliteissues
SQLite: fix issues migrating and seeding
This commit is contained in:
commit
f6e18f0e45
@ -26,11 +26,11 @@ class SupportHidingQuantity extends Migration {
|
||||
|
||||
Schema::table('invoices', function($table)
|
||||
{
|
||||
$table->decimal('custom_value1', 13, 2);
|
||||
$table->decimal('custom_value2', 13, 2);
|
||||
$table->decimal('custom_value1', 13, 2)->default(0);
|
||||
$table->decimal('custom_value2', 13, 2)->default(0);
|
||||
|
||||
$table->boolean('custom_taxes1');
|
||||
$table->boolean('custom_taxes2');
|
||||
$table->boolean('custom_taxes1')->default(0);
|
||||
$table->boolean('custom_taxes2')->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -20,14 +20,14 @@ class PaymentLibrariesSeeder extends Seeder
|
||||
// check that moolah exists
|
||||
if (!DB::table('gateways')->where('name', '=', 'moolah')->get()) {
|
||||
DB::table('gateways')->update(['recommended' => 0]);
|
||||
DB::table('gateways')->insert([
|
||||
Gateway::create(array(
|
||||
'name' => 'moolah',
|
||||
'provider' => 'AuthorizeNet_AIM',
|
||||
'sort_order' => 1,
|
||||
'recommended' => 1,
|
||||
'site_url' => 'https://invoiceninja.mymoolah.com/',
|
||||
'payment_library_id' => 1
|
||||
]);
|
||||
));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -50,4 +50,4 @@ class PaymentLibrariesSeeder extends Seeder
|
||||
*/
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
class Gateway extends Eloquent
|
||||
{
|
||||
public $timestamps = false;
|
||||
public $timestamps = true;
|
||||
protected $softDelete = false;
|
||||
|
||||
public function paymentlibrary()
|
||||
@ -53,4 +53,4 @@ class Gateway extends Eloquent
|
||||
return $fields;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user