laravel如何进行高效的数据迁移操作?
- 内容介绍
- 文章标签
- 相关推荐
本文共计414个文字,预计阅读时间需要2分钟。
plaintextgistfile1.txt
1.如果不存在,创建migrations表:php artisan migrate:install
2.创建迁移文件:php artisan migrate:make create_authors_table
可在创建迁移时指定路径,使用 --path 选项,指定目录相对于安装目录。本文共计414个文字,预计阅读时间需要2分钟。
plaintextgistfile1.txt
1.如果不存在,创建migrations表:php artisan migrate:install
2.创建迁移文件:php artisan migrate:make create_authors_table
可在创建迁移时指定路径,使用 --path 选项,指定目录相对于安装目录。
