-
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
Migrations not working #3317
Comments
For those who are facing the same issue, it seems that So instead of
use
|
Maybe you need also to supply the 'default' key just like what you did in 'added_on'. |
Well... that's how it should be handled. And it's documented here: https://codeigniter.com/user_guide/dbmgmt/forge.html?highlight=forge#passing-strings-as-fields |
So, the only way to fix this error is use |
I'm created 2 migrations using the commands below:
When I run
php spark migrate
, it shows both the migrations have run. Evenphp spark migrate:status
shows both have been performed.But in the database, only one table (company) is created (apart from the migration table). The user table is not created. I've tried this a couple of times but it's not working. I even tried using table name
users
instead ofuser
but the same issue.This is
xxxx-xx-xx-xxxxxx_add_user.php
:Why would this be happening ? @hex-ci @zahhar @lonnieezell @AndiKod
The text was updated successfully, but these errors were encountered: