Laravel 5.5 Error Base table or view already exists: 1050 Table 'users' already exists

前端 未结 15 1298
温柔的废话
温柔的废话 2020-11-30 10:22

Specifications:

  • Laravel Version: 5.5.3
  • PHP Version: 7.1
  • Database Driver & Version: MariaDB 10.1.26

15条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 11:01

    I Solved My Problem Myself by Changing My create_users_table.php

    increments('id');
                $table->string('name');
                $table->string('email')->unique();
                $table->string('password');
                $table->rememberToken();
                $table->timestamps();
            });
        }
    
        /**
         * Reverse the migrations.
         *
         * @return void
         */
        public function down()
        {
            Schema::dropIfExists('users');
        }
    }
    

提交回复
热议问题