阅读(4319)
赞(2)
Laravel 8 重命名 / 删除数据表
2021-07-07 09:14:37 更新
若要重命名数据表,可以使用 rename 方法:
Schema::rename($from, $to); 删除一个已存在的数据表, 可使用 drop 或 dropIfExists 方法:
Schema::drop('users');
Schema::dropIfExists('users'); 若要重命名数据表,可以使用 rename 方法:
Schema::rename($from, $to); 删除一个已存在的数据表, 可使用 drop 或 dropIfExists 方法:
Schema::drop('users');
Schema::dropIfExists('users'); Copyright©2023 字节宝字节宝| |
违法和不良信息举报电话:|举报邮箱:3111859717@qq.com
