fix formatting issues and create update migration

This commit is contained in:
Mohit Panjwani
2022-03-03 11:32:30 +05:30
parent 3f4305c7cb
commit 99f553f1c3
3 changed files with 29 additions and 1 deletions

View File

@ -53,6 +53,7 @@ function get_page_title($company_id)
}
$pageTitle = Setting::getSetting('admin_page_title');
return $pageTitle ? $pageTitle : $defaultPageTitle;
}
}

View File

@ -26,7 +26,7 @@ class AddOverdueToInvoicesTable extends Migration
public function down()
{
Schema::table('invoices', function (Blueprint $table) {
$table->dropForeign(['overdue']);
$table->dropForeign(['overdue']);
});
}
}

View File

@ -0,0 +1,27 @@
<?php
use Crater\Models\Setting;
use Illuminate\Database\Migrations\Migration;
class CraterVersion605 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Setting::setSetting('version', '6.0.5');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}