unbroken-dome / liquibase-orientdb Goto Github PK
View Code? Open in Web Editor NEWLiquibase Plugin for OrientDB
License: MIT License
Liquibase Plugin for OrientDB
License: MIT License
Hello, i tried to use your library (thank you for it), and get an error when run liquibase:update task:
Error setting up or running Liquibase: liquibase.exception.DatabaseException:
Error while executing command [Failed SQL: CREATE TABLE DATABASECHANGELOGLOCK (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED datetime, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID))]:
Cannot find a command executor for the command request: sql.CREATE TABLE DATABASECHANGELOGLOCK (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED datetime, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID))
Have you ever got this error or something like this?
I guess that the problem in liquibase algorithms, they try to create tables in database, but database doesn't understand this syntax.
I hope for your help, thank you.
Please compare liquibase-orientdb.xsd
<xsd:attribute name="name" type="tns:PropertyQualifiedName" use="required" />
@SerializedField(description = "The name of the class that contains the property")
@NotNull
@Size(min = 1)
public String getClassName() {
return className;
}
@SerializedField(description = "The name of the property")
@NotNull
@Size(min = 1)
public String getPropertyName() {
return propertyName;
}
Currently running Liquibase dropAll
with the plugin on an OrientDB fails because the DROP TABLE
statements are sent to OrientDB directly. OrientDB doesn't understand DROP TABLE
; these statements should be mapped to DROP CLASS
instead.
The plugin should provide a custom SqlGenerator
s that maps DropTableStatement
to a DropClassSql
, similar to what OrientCreateTableSqlGenerator does for CreateTableStatement.
There are possibly other types of DB objects that need to be dropped correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.