如何调试此错误?当我尝试 make migrate 在 cmd 中显示此错误时 [关闭]

问题描述 投票:0回答:0

SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'brand_id' (SQL: create table

products
(
id
bigint unsigned not null auto_increment primary key,
name
varchar(255) not null,
brand_id
bigint unsigned 不为空,
brand_id
bigint unsigned 不为空,
category_id
bigint unsigned 不为空,
category_id
bigint unsigned 不为空,
slug
varchar(255) 不为空,
primary_image
varchar(255) 不为空,
 description
text not null,
status
int not null default '1',
is_active
tinyint(1) not null default '1',
delivery_amount
int unsigned not null default '0',
delivery_amount_per_product
int unsigned null,
created_at
timestamp null,
updated_at
timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

php laravel null product migrate
© www.soinside.com 2019 - 2024. All rights reserved.