Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problemas com migrate #152

Open
jurandircod opened this issue Jun 26, 2024 · 0 comments
Open

Problemas com migrate #152

jurandircod opened this issue Jun 26, 2024 · 0 comments

Comments

@jurandircod
Copy link

Bom dia, tudo bem? Então fui realizar a instalação do programa e após criar um banco de dados vazio zig e configurar o .env na raiz de projeto fui realizar o migrate assim como está descrito na documentação entretanto retornou esse erro pra mim

"php command migrate
PHP Warning: PDO::query(): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'zig.migrations' doesn't exist in /var/www/zigmoney/zig/System/NativeQuery/NativeQuery.php on line 16
PHP Fatal error: Uncaught Error: Call to a member function execute() on bool in /var/www/zigmoney/zig/System/NativeQuery/NativeQuery.php:19
Stack trace:
#0 /var/www/zigmoney/zig/System/CommandLine/Migrate.php(59): System\NativeQuery\NativeQuery->query()
#1 /var/www/zigmoney/zig/System/CommandLine/Migrate.php(26): System\CommandLine\Migrate->migrate()
#2 /var/www/zigmoney/zig/System/CommandLine/Command.php(31): System\CommandLine\Migrate->__construct()
#3 /var/www/zigmoney/zig/command(16): System\CommandLine\Command->run()"

até tentei inserir o migrations manualmente no banco de dados o que funcionou mas os dados não são migrados, estou fazendo algo de errado? conseguem me ajudar?
#4 {main}
thrown in /var/www/zigmoney/zig/System/NativeQuery/NativeQuery.php on line 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant