(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
CodeIgniter v4.4.3 Command Line Tool - Server Time: 2024-02-05 10:37:13 UTC+00:00
+----------------------+-------------------+---------------------+---------+---------------------+-------+
| Namespace | Version | Filename | Group | Migrated On | Batch |
+----------------------+-------------------+---------------------+---------+---------------------+-------+
| CodeIgniter\Shield | 2020-12-28-223112 | create_auth_tables | default | 2023-12-27 11:52:21 | 1 |
| CodeIgniter\Settings | 2021-07-04-041948 | CreateSettingsTable | default | 2023-12-27 11:52:21 | 1 |
| CodeIgniter\Settings | 2021-11-14-143905 | AddContextColumn | default | 2023-12-27 11:52:21 | 1 |
+----------------------+-------------------+---------------------+---------+---------------------+-------+
Code:
$ php spark db:table --show
CodeIgniter v4.4.3 Command Line Tool - Server Time: 2024-02-05 10:38:22 UTC+00:00
The following is a list of the names of all database tables:
+----+------------------------+-------------+---------------+
| ID | Table Name | Num of Rows | Num of Fields |
+----+------------------------+-------------+---------------+
| 1 | migrations | 3 | 7 |
| 2 | users | 2 | 9 |
| 3 | auth_identities | 3 | 12 |
| 4 | auth_logins | 0 | 8 |
| 5 | auth_token_logins | 0 | 8 |
| 6 | auth_remember_tokens | 0 | 7 |
| 7 | auth_groups_users | 2 | 4 |
| 8 | auth_permissions_users | 0 | 4 |
| 9 | settings | 0 | 8 |
+----+------------------------+-------------+---------------+