Fix for issues when updating

This commit is contained in:
Hillel Coren 2016-02-04 22:58:34 +02:00
parent e619bacf66
commit 024e1eb046
2 changed files with 5 additions and 4 deletions

View File

@ -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');
});
*/
}
/**

View File

@ -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');
}