Shield installation |
I'm following the steps in the tutorial:
https://shield.codeigniter.com/getting_started/install/ It seems to work but nothing is created in the database Run `spark migrate --all` now? [y, n]: y Running all new migrations... Migrations complete. There are no errors in the proces, there are no migrations files on app\Database\Migrations. I dont know it should be. I'm really lost here
If there is no errors, the installation has been completed.
The migration files locate in the Shield directory in the vendor directory. (02-05-2024, 02:43 AM)kenjis Wrote: If there is no errors, the installation has been completed. When the migration is executed, shouldn't the tables have been created? I tried it in project to test and I think the tables on the db were created with the spark shield:update On migrate ![]() (02-05-2024, 03:14 AM)Karstico Wrote: When the migration is executed, shouldn't the tables have been created? Yes. Code: $ php spark migrate:status Code: $ php spark db:table --show
I'm here again
Code: PS C:\xampp\htdocs\manmount> php spark migrate --all
It seems your migration files are not executed at all.
I don't know why. Is there any error in CI4 log file?
Then, there is no error, but your migration files are not executed at all. Weird.
Why do you have two `create_auth_tables`? | App | 2020-12-28-223112 | create_auth_tables | --- | --- | --- | | CodeIgniter\Shield | 2020-12-28-223112 | create_auth_tables | --- | --- | --- |
I dont know, maybe i copied it trying some fix. I delete it now but i got the same
Code: PS C:\xampp\htdocs\manmount> php spark migrate --all
Did you disable migration?
See https://github.com/codeigniter4/CodeIgni...ns.php#L19 |
Welcome Guest, Not a member yet? Register Sign In |