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

Fixes #3476 : Migration script to add modificationId to ChangeRequest ta... #37

Conversation

VinceMacBuche
Copy link
Member

@@ -719,5 +720,12 @@ check_and_add_config_property rudder.workflow.enabled "
#
rudder.workflow.enabled=${WORKFLOWS_BOOL:-"false"}"

# - 2.6.0 : Add modification id column to change request table
RES=$(su - postgres -c "psql -t -d rudder -c \"select count(attname) from pg_attribute where attrelid = (select oid from pg_class where relname = 'ChangeRequest') and attname = 'modificationId'\"")
Copy link
Member

Choose a reason for hiding this comment

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

the relation names should be lowercased : ChangeRequest -> changerequest

Copy link
Member Author

Choose a reason for hiding this comment

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

does the case is ignored when we are making request ?

When I tried to use a lowercase it was not working... I'll try again!

Copy link
Member

Choose a reason for hiding this comment

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

the creation script should have created it lowercase

@VinceMacBuche
Copy link
Member Author

Thanks Nicolas for your wisdom!! I fixed the migration script

jooooooon added a commit that referenced this pull request Apr 23, 2013
…hange_request_script

Fixes #3476 : Migration script to add modificationId to ChangeRequest ta...
@jooooooon jooooooon merged commit 9a5fb05 into Normation:master Apr 23, 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
3 participants