0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

よろしく

Last updated at Posted at 2018-09-20

はじめまして
とりあえず毎日のプログラミングの出来事を
いろいろ記録していきたいと思います
宜しくお願い致します。

#####2018.09.20
laravel migrationを行う時に、こんなエラー出てきました

qiita.rb
SQLSTATE[42S01]: Base table or view already exists: 1050 Table users already exists (SQL: create table users ( 
id int unsigned not null auto_increment primary key, name varchar(255) not null, email varchar(255) not null, 
password varchar(60) not null, remember_token varchar(100) null, created_at timestamp default 0 not null, up 
dated_at timestamp default 0 not null) default character set utf8 collate utf8_unicode_ci)

[PDOException] 
SQLSTATE[42S01]: Base table or view already exists: 1050 Table users already exists

解消方法:userのmigrationのソースに

qiita.rb
Schema::dropIfExists('users');

を追加

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?