"라라벨 artisan migrate:rollback"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
4번째 줄: 4번째 줄:
* 최근 migrate 작업을 취소하는 개념
* 최근 migrate 작업을 취소하는 개념


<source lang='console'>
<syntaxhighlight lang='console'>
root@zetawiki:/var/www/laravel# php artisan migrate:status
root@zetawiki:/var/www/laravel# php artisan migrate:status
+------+------------------------------------------------+
+------+------------------------------------------------+
23번째 줄: 23번째 줄:
| N    | 2016_05_15_090840_create_photos_table          |
| N    | 2016_05_15_090840_create_photos_table          |
+------+------------------------------------------------+
+------+------------------------------------------------+
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 02:58 기준 최신판

1 개요[ | ]

라라벨 artisan migrate:rollback
  • 이전 migrate 상태로 되돌리는 artisan 명령어
  • 최근 migrate 작업을 취소하는 개념
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 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}