mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:04:41 -04:00
Fix for issues when updating
This commit is contained in:
parent
e619bacf66
commit
024e1eb046
@ -11,8 +11,6 @@ class AddInvoiceFontSupport extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::dropIfExists('fonts');
|
||||
|
||||
Schema::create('fonts', function ($t) {
|
||||
$t->increments('id');
|
||||
|
||||
@ -30,18 +28,20 @@ class AddInvoiceFontSupport extends Migration
|
||||
});
|
||||
|
||||
// Create fonts
|
||||
$seeder = new FontsSeeder();
|
||||
$seeder->run();
|
||||
//$seeder = new FontsSeeder();
|
||||
//$seeder->run();
|
||||
|
||||
Schema::table('accounts', function ($table) {
|
||||
$table->unsignedInteger('header_font_id')->default(1);
|
||||
$table->unsignedInteger('body_font_id')->default(1);
|
||||
});
|
||||
|
||||
/*
|
||||
Schema::table('accounts', function ($table) {
|
||||
$table->foreign('header_font_id')->references('id')->on('fonts');
|
||||
$table->foreign('body_font_id')->references('id')->on('fonts');
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -16,6 +16,7 @@ class DatabaseSeeder extends Seeder
|
||||
$this->call('ConstantsSeeder');
|
||||
$this->call('CountriesSeeder');
|
||||
$this->call('PaymentLibrariesSeeder');
|
||||
$this->call('FontsSeeder');
|
||||
$this->call('BanksSeeder');
|
||||
$this->call('InvoiceStatusSeeder');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user