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 moddb.module_version table #1484

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

jtpalmer
Copy link
Contributor

Description

Updates TIMESTAMP columns in the moddb.module_versions table and updates PHP code to insert both date and time into the created_on column.

Due to how MySQL handles timestamp columns this table was triggering an alter statement by the ETL system. See https://github.com/ubccr/xdmod/blob/xdmod9.5/classes/ETL/DbModel/Column.php#L186 for more about how those columns are handled by the ETL system.

Motivation and Context

I noticed the table was being altered while I was debugging some role configurations. Since the ALTER statement doesn't do anything this will prevent it from being executed every time acl-config is used.

Tests performed

Ran acl-config --debug then checked for ALTER statements. Then checked contents of moddb.module_versions.

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

Due to how MySQL handles timestamp columns this table was triggering an
alter statement by the ETL system.  Also updates PHP code to insert
both date and time into the create_on column.
@jtpalmer jtpalmer added bug Bugfixes Category:ACL Access Control Lists labels Jan 15, 2021
@jtpalmer jtpalmer added this to the 9.5.0 milestone Jan 15, 2021
@jtpalmer jtpalmer merged commit 5fb83ce into ubccr:xdmod9.5 Jan 15, 2021
jtpalmer added a commit to jtpalmer/xdmod that referenced this pull request Jan 26, 2021
Due to how MySQL handles timestamp columns this table was triggering an
alter statement by the ETL system.  Also updates PHP code to insert
both date and time into the create_on column.
@jtpalmer jtpalmer deleted the module-versions-update branch August 25, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugfixes Category:ACL Access Control Lists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants