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

Rename the date column of reports to creation_time #1520

Conversation

jhelmold
Copy link
Member

@jhelmold jhelmold commented May 14, 2021

What:
Changed all relevant entries in manage_sql.c from date
to creation_time. Changed the relevant entries for the
creation of the database in manage_pg.c accordingly.
Added a function for the necessary database changes in
manage_migrators.c. Set the Databaseversion to 245.

Why:
Make report timestamps more consistent

How did you test it:
Checked scan runs, reports and filters

Checklist:

Changed all relevant entries in manage_sql.c from date
to creation_time. Changed the relevant entries for the
creation of the database in manage_pg.c accordingly.
Added a function for the necessary database changes in
manage_migrators.c. Set the Databaseversion to 245.
@jhelmold jhelmold marked this pull request as ready for review May 17, 2021 07:46
@jhelmold jhelmold requested a review from a team as a code owner May 17, 2021 07:46
src/manage_migrators.c Outdated Show resolved Hide resolved
src/manage_pg.c Outdated Show resolved Hide resolved
src/manage_sql.c Outdated Show resolved Hide resolved
src/manage_sql.c Show resolved Hide resolved
creation_time AP-1343" issue.

Removed 3 "CREATE OR REPLACE FUNCTION"-statements from
manage_migrators.c, because they are redundant. Added "date"
as an alias for "creation_time" to the corresponding line of
the REPORT_ITERATOR_WHERE_COLUMNS columns and added it to
the REPORT_ITERATOR_FILTER_COLUMNS columns. Did a few code
format changes.
src/manage_pg.c Outdated Show resolved Hide resolved
src/manage_sql.c Outdated Show resolved Hide resolved
@timopollmeier timopollmeier merged commit 298918d into greenbone:master May 18, 2021
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.

2 participants