Liquibase 和 AWS Redshift:由于错误而无法生成更改日志:关系"information_schema.sequences"不存在



我正在尝试使用liquidbase来跟踪我现有的AWS红移数据库。当我试图运行更新时,我得到一个错误,告诉我information_schema。序列缺失。看起来它没有正确地说"红移"。我在下面包含了我的属性的一个版本。

❯ liquibase generate-changelog --changeLogFile="gen.sql"
####################################################
##   _     _             _ _                      ##
##  | |   (_)           (_) |                     ##
##  | |    _  __ _ _   _ _| |__   __ _ ___  ___   ##
##  | |   | |/ _` | | | | | '_  / _` / __|/ _   ##
##  | |___| | (_| | |_| | | |_) | (_| __   __/  ##
##  _____/_|__, |__,_|_|_.__/ __,_|___/___|  ##
##              | |                               ##
##              |_|                               ##
##                                                ##
##  Get documentation at docs.liquibase.com       ##
##  Get certified courses at learn.liquibase.com  ##
##  Free schema change activity reports at        ##
##      https://hub.liquibase.com                 ##
##                                                ##
####################################################
Starting Liquibase at 20:27:03 (version 4.20.0 #7837 built at 2023-03-07 16:25+0000)
Liquibase Version: 4.20.0
Liquibase Open Source 4.20.0 by Liquibase
Unexpected error running Liquibase: ERROR: current transaction is aborted, commands ignored until end of transaction block
- Caused by: ERROR: relation "information_schema.sequences" does not exist

liquibase。属性文件

changeLogFile:report.changelog-root.xml
url:  jdbc:redshift://localhost:1234/project_name
username:  <<UserGoesHere>>
password:  <<Passy-McPasswordFace>> 
driver: com.amazon.redshift.jdbc42.Driver
classpath:  lib/liquibase-redshift-4.20.0.jar

aws驱动程序和liquibase扩展都安装在lib目录下的"C:Program Filesliquibaselib"并在子目录" lib">

这是一个有用的工具:红移研究项目系统表跟踪器

在系统表中查找该表/视图;它不在那里。这可能是因为Redshift不支持序列。

最新更新