./composer.json has been updated
Running composer update robersonfaria/laravel-database-schedule
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking robersonfaria/laravel-database-schedule (1.4.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Downloading robersonfaria/laravel-database-schedule (1.4.0)
- Installing robersonfaria/laravel-database-schedule (1.4.0): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Illuminate\Database\QueryException
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'agilts_backend.schedules' doesn't exist (Connection: mysql, SQL: select * from `schedules` where `status` = 1 and `schedules`.`deleted_at` is null)
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:813
809▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
810▕ );
811▕ }
812▕
➜ 813▕ throw new QueryException(
814▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
815▕ );
816▕ }
817▕ }
i A table was not found: You might have forgotten to run your database migrations.
https://laravel.com/docs/master/migrations#running-migrations
1 [internal]:0
RobersonFaria\DatabaseSchedule\Console\Scheduling\Schedule::__construct()
+13 vendor frames
15 [internal]:0
RobersonFaria\DatabaseSchedule\Console\Scheduling\Schedule::__construct()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
3. ```php artisan migrate```
Illuminate\Database\QueryException
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'agilts_backend.schedules' doesn't exist (Connection: mysql, SQL: select * from schedules where status = 1 and schedules.deleted_at is null)
I just now have time to install robersonfaria/laravel-database-schedule for a project that needs to upgrade to Laravel 11. However, the integration still has the same problem as the old version
[UPDATED]
Version
Reproduce the error
composer require robersonfaria/laravel-database-schedule
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Illuminate\Database\QueryException
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'agilts_backend.schedules' doesn't exist (Connection: mysql, SQL: select * from
schedules
wherestatus
= 1 andschedules
.deleted_at
is null)at vendor/laravel/framework/src/Illuminate/Database/Connection.php:813 809▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 810▕ ); 811▕ } 812▕ ➜ 813▕ throw new QueryException( 814▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 815▕ ); 816▕ } 817▕ }
i A table was not found: You might have forgotten to run your database migrations. https://laravel.com/docs/master/migrations#running-migrations
1 [internal]:0 RobersonFaria\DatabaseSchedule\Console\Scheduling\Schedule::__construct() +13 vendor frames
15 [internal]:0 RobersonFaria\DatabaseSchedule\Console\Scheduling\Schedule::__construct()