-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(spanddl): support dropping interleaved tables
Before the parent would have an reference to the dropped table, which caused an type error since the type could not be resolved. This PR removes the child reference in the parent table.
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- This migration should result in no schema changes. | ||
CREATE TABLE Genres ( | ||
SingerId INT64 NOT NULL, | ||
GenreId INT64 NOT NULL, | ||
) PRIMARY KEY (SingerId, GenreId), | ||
INTERLEAVE IN PARENT Singers ON DELETE CASCADE; | ||
|
||
DROP TABLE Genres; |