-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
migration ::down() cannot be called statically #2037
Comments
Could you show the code that runs it? |
do you mean this ? class Migration_Modify_column_title extends CI_Migration {
public function up()
{
$fields = array(
'title' => array(
'name' => 'title',
'type' => 'VARCHAR',
'constraint' => 250
)
);
$this->dbforge->modify_column('news', $fields);
}
public function down()
{
}
} |
You already had that code shown, why would I want you to post it again? |
thats the only code |
This can't be the only code. You need to call this class somehow, probably in a controller. |
autoload migration library |
The Migration library doesn't have any static calls. Could you please be a bit more descriptive, at least once? It almost looks like you've intentionally cut the Line number part of the E_NOTICE that you're getting. And your obscure comments aren't helping. I realize that sounds harsh, but you're posting as a bug every single problem that you have and you're never giving any relevant information. |
you can see the log http://i.imgur.com/Ki9h5.png |
5.2.x php
The text was updated successfully, but these errors were encountered: