add log table for loggin import-table logdata.#52
Conversation
JacobusXIII
left a comment
There was a problem hiding this comment.
Great first version! Now it needs some polishing up ;)
There was a problem hiding this comment.
Should we be more specific about naming? Like table_data_metadata instead of just metadata or so?
@BertScholten what do you think?
|
|
decided: metadata table will be renamed to "load_table_logs" |
JacobusXIII
left a comment
There was a problem hiding this comment.
The action being performed is registering all load_tables, which result in een entry in the load_table_logs table. That's why I'm in favor of the name register_load_table as a function-, boolean- and contants-name.
BertScholten
left a comment
There was a problem hiding this comment.
Bit late to the party perhaps (went over open PRs to check if anything could be closed), but had a suggestion.
…he default value of the should_register_load_table to TRUE. With this change, de build default is to register the metadata in the table log data.
…=false: register.
JacobusXIII
left a comment
There was a problem hiding this comment.
Last issue hopefully
This PR adds a log table for logging import-table logdata and functionalily to fill it.
This table is filled during the database-build with some metadata from the imported import-files, like the name of the file, the import-time and the checksums of the table before and after the import. This is done by a altered function of "load_table".
This overwiew can be used for checks on the database build(are the correct import-files used during the build-proces?).
Also, often is the question what import-file is used for a particular table. This information is placed in the .html- and .rtf files, but these stand apart from the database, so if those can't be found, there is no way to know.
With the introduction of this log-table, the used import-files can be easy to find.