Closed officialxviid closed 1 year ago
^4.0
is not a exact version. It shows version range.
Please write the exact version you use.
Can I not customize the 'id' field value in the table?
Yes, you can. The code you pointed is for: https://codeigniter4.github.io/CodeIgniter4/dbmgmt/forge.html#creating-an-id-field
We use GitHub issues to track BUGS and to track approved DEVELOPMENT work packages. We use our forum to provide SUPPORT and to discuss FEATURE REQUESTS.
Thanks sir.. My Allah bless u
Thanks sir.. My Allah bless u
Sorry for the wrong place to ask
PHP Version
8.1
CodeIgniter4 Version
^4.0
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MySQL
What happened?
What I experienced: 1) Unable to migrate database. 2) In the 'id' field, I can't customize a value.
For point 2: For point 2: I looked at 'CodeIgniter\Database\Forge' at line 362-367, there is an array containing:
Can I not customize the 'id' field value in the table?
Steps to Reproduce
1) Config File
I created 1 config file in
app/Config/ExampleConfig.php
2) Migration File
I created 1 migration file in
app/Database/Migrations/2023-05-01-231938_CreateTableExample.php
3) Run Migration
php spark migrate
Expected Output
It is possible to customize a field in the config file 🤔
Anything else?
I instead get an error message: