Change recurring_expenses.last_sent_date from timestamp to date

This commit is contained in:
Hillel Coren 2018-04-17 12:25:05 +03:00
parent 7b7ee5084f
commit 40dbbb2ce2
3 changed files with 15 additions and 8 deletions

View File

@ -6,6 +6,7 @@ use App\Libraries\CurlUtils;
use Carbon;
use Str;
use Cache;
use Utils;
use Exception;
use App\Jobs\SendInvoiceEmail;
use App\Models\Invoice;
@ -195,6 +196,10 @@ class SendReminders extends Command
private function loadExchangeRates()
{
if (Utils::isNinjaDev()) {
return;
}
$this->info('Loading latest exchange rates...');
$data = CurlUtils::get(config('ninja.exchange_rates_url'));

View File

@ -137,6 +137,7 @@ class AddMoreCustomFields extends Migration
});
DB::statement('UPDATE gateway_types SET alias = "custom1", name = "Custom 1" WHERE id = 6');
DB::statement('ALTER TABLE recurring_expenses MODIFY COLUMN last_sent_date DATE');
}
/**

File diff suppressed because one or more lines are too long