Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[仅限 docker-compose 方式构建] fix: 合并请求功能:创建时提示创建失败,合并后提示合并失败(实际都成功了) #113

Closed
IM-Tse opened this issue Aug 2, 2022 · 3 comments
Labels
docker issues about docker image fixed bug fixed or feature is online good first issue Good for newcomers

Comments

@IM-Tse
Copy link

IM-Tse commented Aug 2, 2022

问题描述(关联Issues:#82#103

1. 创建合并请求失败

创建合并请求时提示创建失败,页面也不刷新

create_error

不管它,点进去上游仓库一看,实际上已经创建成功了,

image

2. 合并时提示合并失败

image

不管它,回到合并请求页面查看,实际上已经合并完成了

image

错误日志示例

# cc_notification_content 表
Query error: Field 'nc_updated' doesn't have a default value
Query error: Field 'nc_deleted' doesn't have a default value

# cc_notification_users 表
Query error: Field 'nu_updated' doesn't have a default value
Query error: Field 'nu_deleted' doesn't have a default value

手动解决方法

  1. 进入容器
    $ docker container exec -it codefever /bin/bash
  2. 进入MYSQL
    $ mysql
  3. #输入下面SQL语句,修改完成后即可正常使用
use codefever_community;

alter table `cc_notification_content` alter column `nc_updated` set default '0000-00-00 00:00:00';
alter table `cc_notification_content` alter column `nc_deleted` set default '0000-00-00 00:00:00';

alter table `cc_notification_users` alter column `nu_updated` set default '0000-00-00 00:00:00';
alter table `cc_notification_users` alter column `nu_deleted` set default '0000-00-00 00:00:00';
@IM-Tse IM-Tse changed the title fix: 合并请求功能:创建时提示创建失败,合并后提示合并失败(实际都完成了) fix: 合并请求功能:创建时提示创建失败,合并后提示合并失败(实际都成功了) Aug 2, 2022
@cubicwork
Copy link
Contributor

@IM-Tse 您好,我看到了您的改动,请问您使用的 docker 镜像安装还是使用 docker-compose 方式安装呢 ?

@cubicwork cubicwork added the bug Something isn't working label Aug 3, 2022
@IM-Tse
Copy link
Author

IM-Tse commented Aug 4, 2022

docker-compose

@cubicwork
Copy link
Contributor

@cubicwork cubicwork changed the title fix: 合并请求功能:创建时提示创建失败,合并后提示合并失败(实际都成功了) [仅限 docker-compose 方式构建] fix: 合并请求功能:创建时提示创建失败,合并后提示合并失败(实际都成功了) Aug 4, 2022
@cubicwork cubicwork added good first issue Good for newcomers docker issues about docker image and removed bug Something isn't working labels Aug 4, 2022
@cubicwork cubicwork reopened this Aug 9, 2022
@cubicwork cubicwork added the fixed bug fixed or feature is online label Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker issues about docker image fixed bug fixed or feature is online good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants