라라벨 artisan migrate:install

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:58 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

artisan migrate:install

2 실행예시: 정상[ | ]

  • migrations 테이블이 없는 경우, 정상 수행됨
webuser@zetawiki:/var/www/laravel$ php artisan migrate:install
Migration table created successfully.
→ 테이블이 생성되었음

3 실행예시: 오류[ | ]

  • migrations 테이블이 이미 있는 경우, 오류 발생함
webuser@zetawiki:/var/www/laravel$ php artisan migrate:install

In Connection.php line 664:
                                                                                                                                                                      
  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'migrations' already exists (SQL: create table `migrations` (`id` int unsigned not null auto_increment primary key, `migration` varchar(255) not null, `batch` int not null) default character set utf8mb4 collate utf8mb4_unicode_ci)                                 
                                                                                                                                                                      
In Connection.php line 458:
                                                                                              
  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'migrations' already exists

4 같이 보기[ | ]

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