建库

  1. create database Yearning DEFAULT CHARACTER SET utf8mb4;
  2. create user admin identified by '7iMavUCOnI8N';
  3. GRANT ALL PRIVILEGES ON Yearning.* TO 'admin'@'%' identified with mysql_native_password by '7iMavUCOnI8N';
  4. flush privileges;

dcoker启动

  1. ## 安装指南 https://guide.yearning.io
  2. ## 构建镜像
  3. docker build -t yearning:lts . -f Dockerfile
  4. ## 启动
  5. docker run -d --name yearning \
  6. -p11110:8000 \
  7. -e MYSQL_DB=Yearning \
  8. -e MYSQL_USER=admin -e MYSQL_ADDR=172.16.100.138:3306 -e MYSQL_PASSWORD=xxxxxx \
  9. yearning:lts

基础配置

LDAP设置

image.png

用户权限

image.png
image.png

审核流程

  • 1 提交人 -> 执行人
  • 2 提交人 -> 审核人 -> 执行人

image.png

审核规则开关

  1. 强制表必须拥有表注释
  2. 强制主键名称为ID
  3. 允许单个工单提交多条DDL语句
  4. 允许使用after/first
  5. 强制DML语句必须拥有where条件
  6. DML最大影响行数 0
  7. create/alter 表或字段时允许的Collate范围。多个请使用逗号进行分割 utf8mb4_general_ci