-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Bug: Unknown column updated_at
in 'field list'
#8192
Comments
created_at
/ updated_at
in 'field listupdated_at
in 'field list
At least this is not a bug.
|
Try: protected $updatedField = ''; |
@kenjis You always make me happy, it worked! |
This is just a lack of documentation because that is how the code works. |
updated_at
in 'field listupdated_at
in 'field list'
It was documented.
|
PHP Version
8.2
CodeIgniter4 Version
CodeIgniter v4.4.3
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
libmysql - mysqlnd 8.0.10
What happened?
Column
updated_at
is required for all tables!Steps to Reproduce
composer create-project codeigniter4/appstarter CI4-bug
php spark make:migration Test
php spark migratin --all
php spark make:model Test
Expected Output
The presence of
updated_at
in the tables should not be mandatory.Anything else?
If I add column
updated_at
to the table. The error is fixed.I could create a separate field for the date here instead of using
$useTimestamps
, but the question is why didn't CI cover this.The text was updated successfully, but these errors were encountered: