codeigniter 如何修复codeignter4未定义变量:数据库驱动程序,位于系统路径\命令\生成器\视图\迁移,tpl.php:16

n3schb8v  于 2022-12-06  发布在  PHP
关注(0)|答案(1)|浏览(87)

如何修复创建会话迁移
未定义的变量:数据库驱动程序位于SYSTEMPATH\命令\生成器\视图\迁移。tpl.php:16

enter codnamespace {namespace};

use CodeIgniter\Database\Migration;
class {class} extends Migration
{
    protected $DBGroup = 'default';
    public function up()
    {
        $this->forge->addField([
            'id' => ['type' => 'VARCHAR', 'constraint' => 128, 'null' => false]e here
toiithl6

toiithl61#

使用以下命令php spark make:迁移--会话

相关问题