本文主要是介绍【Laravel】06 数据库迁移工具migration,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
【Laravel】06 数据库迁移工具migration
- 1.migration文件目录
- 2. 举例
1.migration文件目录
2. 举例
(base) ➜ example-app php artisan migrate
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table (6.90ms)
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table (4.51ms)
Migrating: 2019_08_19_000000_create_failed_jobs_table
Migrated: 2019_08_19_000000_create_failed_jobs_table (4.77ms)
Migrating: 2019_12_14_000001_create_personal_access_tokens_table
Migrated: 2019_12_14_000001_create_personal_access_tokens_table (8.04ms)
数据库已经生成了这三张表
创建迁移
这篇关于【Laravel】06 数据库迁移工具migration的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!