Score
0
Watch 308 Star 1.3K Fork 556

GVPalvis / uexamJavaAGPL-3.0

数据库脚本貌似没有更新

Closed
terrydash  Opened this issue

RT 插入班级没有看到T_CLASS表 应该是数据库脚本没更新

2093093_stefango 1215045_alvis-yu total 3 participants

Comments (2)

2093093_stefango
stefango 2019-09-22 10:02

主键重复了吧?

Navicat报错↓↓↓
[SQL] Query exam start
[ERR] 错误: 对表 "t_classes_user" 指定多个主键是不允许的

-- ----------------------------
-- Table structure for t_classes_user
-- ----------------------------
CREATE TABLE "public"."t_classes_user" (
  "id" serial4 primary key,
  "classes_id" int4,
  "user_id" int4,
  "create_time" timestamp(6),
  "deleted" bool
)
;
COMMENT ON COLUMN "public"."t_classes_user"."create_time" IS '加入时间';

-- ----------------------------
-- Primary Key structure for table t_classes_user
-- ----------------------------
ALTER TABLE "public"."t_classes_user" ADD CONSTRAINT "t_classes_user_pkey" PRIMARY KEY ("id");
1215045_alvis-yu
alvis 2019-09-22 10:32 owner

去掉最后一句

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/alvis-yu/uexam.git
git@gitee.com:alvis-yu/uexam.git
alvis-yu
uexam
uexam

Help Search