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

Ref #3002 : add "gitcommit" table and add column "modificationid" to "... #10

Conversation

VinceMacBuche
Copy link
Member

...eventLog" table

this is linked to http://www.rudder-project.org/redmine/issues/3134

it update the upgrade script to take into account the modification added by the rollback process in Rudder

# Upgrade database schema from 2.4 to 2.5 if necessary - third part : Check if the modificationId column is present in event log table, and create it if needed.
RES=$(su - postgres -c "psql -t -d rudder -c \"select count(attname) from pg_attribute where attrelid = (select oid from pg_class where relname = 'eventlog') and attname = 'modificationid'\"")
if [ $RES -eq 0 ]; then
psql -q -U rudder -h localhost -d rudder -f ${RUDDER_UPGRADE_TOOLS}/dbMigration-2.4-2.5-add-modification-id-to-EventLog.sql > /dev/null
Copy link
Member

Choose a reason for hiding this comment

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

Indentation policy in this file is to use tabs - please respect the existing code around your patch.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok I corrected all identation in database migration

The one i copied had the same indentation problem

@jooooooon
Copy link
Member

Thanks! Merging.

jooooooon added a commit that referenced this pull request Jan 4, 2013
…databases_integration

Fixes #3002 : add "gitcommit" table and add column "modificationid" to "...
@jooooooon jooooooon merged commit 615b293 into Normation:master Jan 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants