Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Notice: Undefined index: in /data/phpspider/phplib/misc.function.php on line 226
Mysql 执行Liquibase changeLog时,触发器在Amazon Aurora中不起作用_Mysql_Rds_Aurora - Fatal编程技术网

Mysql 执行Liquibase changeLog时,触发器在Amazon Aurora中不起作用

Mysql 执行Liquibase changeLog时,触发器在Amazon Aurora中不起作用,mysql,rds,aurora,Mysql,Rds,Aurora,我创建了一个表,id的数据类型是二进制的(16) 然后我创建一个触发器,为每一行生成一个id - changeSet: id: 1586934810000-1 author: qwe changes: - sql: sql: create trigger ins_document_request_types before insert on document_request_types for each row set new.id = unhex(repla

我创建了一个表,id的数据类型是二进制的(16)

然后我创建一个触发器,为每一行生成一个id

- changeSet:
  id: 1586934810000-1
  author: qwe
  changes:
    - sql:
        sql: create trigger ins_document_request_types before insert on document_request_types for each row set new.id = unhex(replace(uuid(), '-', ''));

- changeSet:
  id: 1586934810000-5
  author: michael-eb
  runOnChange: true
  changes:
    - loadUpdateData:
        columns:
          - column:
              name: name
              type: STRING
        file: db/changelog/data/document-request-types.csv
        primaryKey: id
        tableName: document_request_types
然后我从CSV文件加载数据,它没有每行的id。 我得到一个错误:字段“id”没有默认值

所有这些步骤都由Liquibase执行

我曾尝试在ubuntu的控制台上自己插入一行,触发器起作用了,但当我使用IDEA做同样的事情时,它不起作用

我哪一步做错了?如何修复它