comparison ChangeLog @ 195:63f555bbdbc0

Fix a foreign key constraint violation when deleting outdated artifacts. artifacts/trunk@1425 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 08 Mar 2011 10:35:40 +0000
parents 949d69ad3756
children 171b6200d26d
comparison
equal deleted inserted replaced
194:fde2f193e846 195:63f555bbdbc0
1 2011-03-08 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2
3 * artifact-database/src/main/resources/sql/org-h2-driver.properties
4 artifact-database/src/main/resources/sql/org-postgresql-driver.properties:
5 The cleaner job is scanning the artifact database for outdated artifacts.
6 artifacts are aging independent from the collections they are in.
7 So the cleaner wants to delete artifacts that are still in
8 collections which violates a foreign key constraint and renders
9 the cleaner inop because this condition remains.
10
11 The fix prevents this behavior by only deleting artifacts that
12 are not in a collection.
13
1 2011-03-08 Sascha L. Teichmann <sascha.teichmann@intevation.de> 14 2011-03-08 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2 15
3 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: 16 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java:
4 Fixed issue with outdating artifact if it is removed from a collection. 17 Fixed issue with outdating artifact if it is removed from a collection.
5 18

http://dive4elements.wald.intevation.org