theFundi
3 months ago

Kernel Command Breaks Fresh Deployment

Posted 3 months ago by theFundi

Hey Guys,

I have scheduled a command to do some processing at a time which is configured in a database table.

The problem I have found is that with a fresh install, php artisan migrate:fresh (or any artisan command) fails to say it cant find the table, how do I skip this command when doing my initial deployment ? Or is there a better place for this command ?

$schedule->command('foo:bar')->dailyAt(Setting::find('foo_deadline')->value);

Error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'foo.settings' doesn't exist

Please sign in or create an account to participate in this conversation.