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

Update vulnerability assessment knowledge database script #382

Closed
wants to merge 2 commits into from

Conversation

eren-ck
Copy link

@eren-ck eren-ck commented May 14, 2020

PL/pgSQL script to update the vulnerability assessment knowledge database.

For more details please see the file header comment of rest-backend/src/main/resources/db/update_knowledge_db.sql

Signed-off-by: Eren Cakmak <eren.cakmak@uni-konstanz.de>
Copy link
Contributor

@serenaponta serenaponta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script updates the tables with the IDs coming from the exported data which may be higher than the current value of the sequence 'hibernate_sequence'. To ensure the proper working of the steady backend, the hibernate sequence should be updated to the max value of the imported ids.

Still, in general it may happen that the imported data use an ID which is already used for some row in the target database. I think the consequences of such collision will strongly depend on which are the entities among which the collision occur. If the script is to be used just for an initial import, i think this risk can be accepted.

Signed-off-by: Eren Cakmak <eren.cakmak@uni-konstanz.de>
@henrikplate
Copy link
Contributor

@eren-ck With the development of kb-importer, a tool importing vulnerabilities maintained with and coming from Project KB, this database script is not needed anymore. Let me thank you nevertheless, Cheers, Henrik

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

Successfully merging this pull request may close these issues.

None yet

3 participants