laravel 通过migration改变字段类型或枚举增加种类

//改变枚举的种类
DB::statement("ALTER TABLE verify_codes MODIFY COLUMN platform ENUM('ios', 'android', 'h5', 'web')");
//将枚举变为string
DB::statement("ALTER TABLE verify_codes CHANGE COLUMN position position VARCHAR(255)  DEFAULT ''");

 

最新回复(0)
/jishuE8JjEWWIfZGGZNif92FS5aWNPMik50WSubYxDw_3D_3D4858549
8 简首页