Just using prefix for my databases tables by setting in the config/database.php (e.g. sv_).
Then, when trying to run the command:
php artisan typescriptable:models
I get this errors:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'survey.responses' doesn't exist (Connection: mysql, SQL: SHOW COLUMNS FROM responses)
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:822
818▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
819▕ );
820▕ }
821▕
➜ 822▕ throw new QueryException(
823▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
824▕ );
825▕ }
826▕ }
i A table was not found: You might have forgotten to run your database migrations.
https://laravel.com/docs/master/migrations#running-migrations
+27 vendor frames
28 artisan:35
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
How to reproduce the bug
Setting the database prefix
Install the package
Try to generate TS types for models
Error table not found!
Package Version
^1.11
PHP Version
8.2.10
Which operating systems does with happen with?
macOS
Notes
I was try to publish the package configuration and I don't found any related config to settings the database tables prefix.
What happened?
Just using prefix for my databases tables by setting in the
config/database.php
(e.g.sv_
).Then, when trying to run the command:
I get this errors:
How to reproduce the bug
Package Version
^1.11
PHP Version
8.2.10
Which operating systems does with happen with?
macOS
Notes
I was try to publish the package configuration and I don't found any related config to settings the database tables prefix.