You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
class m200000_000000_change_table_fruits extends \yii\db\Migration
{
publicfunctionsafeUp()
{
$this->alterColumn('{{%fruits}}', 'name', $this->string(151)->notNull());
// below line is not needed, it should not be generated for above migration statement$this->alterColumn('{{%fruits}}', 'name', "SET NOT NULL");
// same applies for `default`
}