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 message is returned when delete a new added site #306

Closed
zhangwenx opened this issue Jun 3, 2015 · 2 comments
Closed

Error message is returned when delete a new added site #306

zhangwenx opened this issue Jun 3, 2015 · 2 comments
Labels

Comments

@zhangwenx
Copy link

Browser: Firefox
Go through demo PEcAn_Demo_Handout.1.4.0.pdf/Additional material/2.3 (To add a new site). After add a new site, cannot delete this new site. It returns Error message:
" PG::ForeignKeyViolation: ERROR: update or delete on table "sites" violates foreign key constraint "fk_inputs_sites_1" on table "inputs" DETAIL: Key (id)=(99000000001) is still referenced from table "inputs". : DELETE FROM "sites" WHERE "sites"."id" = $1 "

@gsrohde
Copy link
Contributor

gsrohde commented Jun 4, 2015

The error message now will say "There are still inputs that refer to this site." once fixes are deployed.

@gsrohde
Copy link
Contributor

gsrohde commented Dec 7, 2015

Fixed in release 4.2.

@gsrohde gsrohde closed this as completed Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants