1 개요[ | ]
- 라라벨 artisan migrate:rollback
- 이전 migrate 상태로 되돌리는 artisan 명령어
- 최근 migrate 작업을 취소하는 개념
Console
Copy
root@zetawiki:/var/www/laravel# php artisan migrate:status
+------+------------------------------------------------+
| Ran? | Migration |
+------+------------------------------------------------+
| Y | 2015_10_27_141258_create_tasks_table |
| Y | 2016_05_11_125910_create_channels_table |
| N | 2016_05_15_090840_create_photos_table |
+------+------------------------------------------------+
root@zetawiki:/var/www/laravel# php artisan migrate:rollback
Rolled back: 2016_05_11_125910_create_channels_table
root@zetawiki:/var/www/laravel# php artisan migrate:status
+------+------------------------------------------------+
| Ran? | Migration |
+------+------------------------------------------------+
| Y | 2015_10_27_141258_create_tasks_table |
| N | 2016_05_11_125910_create_channels_table |
| N | 2016_05_15_090840_create_photos_table |
+------+------------------------------------------------+
2 같이 보기[ | ]
- artisan migrate:reset - 전체 마이그레이션 되돌리기
- artisan migrate:status - 마이그레이션 상태 조회
- artisan 명령어
- 롤백
- 라라벨 migration 삭제
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.