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

Error with composite foreign keys when importing from PostgreSQL #248

Closed
FergusFettes opened this issue Mar 30, 2022 · 1 comment
Closed

Comments

@FergusFettes
Copy link

Duplicate of #142 but for Postgres.

Example Postgres Import:

create table table1 (
    field text not null,
    field2 text not null,
    primary key(field, field2)
);

create table if not exists table2 (
    id int generated always as identity primary key,
    field text,
    field2 text,
    foreign key (field, field2) references table1(field, field2)
);

using the web interface.

@NQPhuc
Copy link
Contributor

NQPhuc commented Sep 6, 2023

Fixed in #416

@NQPhuc NQPhuc closed this as completed Sep 6, 2023
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

2 participants