-
Notifications
You must be signed in to change notification settings - Fork 17
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
Interleaved tables are generated as normal Foreign Keys in snapshot #78
Comments
The
The example in this issue uses |
I've been looking into whether it would be feasible to generate the
|
@marcindyjas I'll close this issue and open a new one for the remaining issue: Interleaved table relationships are not included in a generated snapshot. |
Descripton:
constraintName is not generated in changelog for addForeignKeyConstraint operation.
Steps to reproduce:
Use for example DDL as below to create new table on Spanner:
CREATE TABLE TEST (
TEST_LOC STRING(8) NOT NULL,
) PRIMARY KEY(TEST_LOC);
CREATE TABLE TEST_CONTNT (
TEST_LOC STRING(8) NOT NULL,
) PRIMARY KEY(TEST_LOC),
INTERLEAVE IN PARENT TEST ON DELETE CASCADE;
Then run:
liquibase --url="jdbc:cloudspanner:/projects/<project>/instances/<instance>/databases/<database>" --changeLogFile=changeLog.yml generateChangeLog
ChangeLog contains addForeignKeyConstraint without "constraintName" - as below:
The text was updated successfully, but these errors were encountered: