CodeIgniter Forums
Codeigniter Shield creates strange tables - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Codeigniter Shield creates strange tables (/showthread.php?tid=92045)



Codeigniter Shield creates strange tables - narachamus - 11-20-2024

Hi, I just created my first project in CodeIgnitier 4. I've been programming with Codeigniter 3 for 8 years. In the Codeigniter Shield documentation, it says that when you run
Code:
php spark shield:setup
, it creates the tables: ‘users’, ‘auth_identities’, ‘auth_logins’, ‘auth_token_logins’, ‘auth_remember_tokens’, ‘auth_groups_users’ and ‘auth_permissions_users’.

However, it creates me: ‘groups’, ‘login_attempts’, ‘migrations’, ‘users’ and ‘users_groups’.

What is going on, which one is correct?


RE: Codeigniter Shield creates strange tables - InsiteFX - 11-20-2024

If you look in the app/Database/Migrations/0000_Migration_file.php

you can see the tables it creates.


RE: Codeigniter Shield creates strange tables - narachamus - 11-21-2024

(11-20-2024, 10:44 PM)InsiteFX Wrote: If you look in the app/Database/Migrations/0000_Migration_file.php

you can see the tables it creates.

Thanks for the answer. I have looked in both migrations and seeds, and both folders are empty in the newly created project. :/


RE: Codeigniter Shield creates strange tables - datamweb - 11-30-2024

To properly investigate the issue, we would need more information. Please provide the following details so we can assist you better:

Database: Which database are you using? For example, MySQL, PostgreSQL, or SQLite?
CodeIgniter Version: Which version of CodeIgniter 4 are you using?
Shield Version: The exact version of Shield being used in your project.
PHP Version: Which version of PHP are you using?
With this information, we’ll be able to investigate the issue more thoroughly.