Skip to content
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

Diagramm is not created when FK has no name #2

Open
s13o opened this issue Dec 3, 2020 · 0 comments
Open

Diagramm is not created when FK has no name #2

s13o opened this issue Dec 3, 2020 · 0 comments

Comments

@s13o
Copy link
Contributor

s13o commented Dec 3, 2020

The constraint name of FK is optional. This example is fully correct. When you doing schema export in Spanner web console with the "Show Equivalent DDL" button you can easily get something like this.

CREATE TABLE Orders (
  OrderID INT64 NOT NULL,
  CustomerID INT64 NOT NULL,
  ProductID INT64 NOT NULL,
  FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID)
) PRIMARY KEY (OrderID);

But the diagram will be not created for it

s13o added a commit to s13o/spanner-er that referenced this issue Dec 3, 2020
nktks pushed a commit that referenced this issue Dec 10, 2020
Diagramm is not created when FK has no name #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant