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

Fix the primary key creation queries in v2.2.1 migration #299

Merged
merged 1 commit into from
Apr 18, 2017
Merged

Fix the primary key creation queries in v2.2.1 migration #299

merged 1 commit into from
Apr 18, 2017

Conversation

galexrt
Copy link
Contributor

@galexrt galexrt commented Mar 14, 2017

  • Add id column to task__output table (fix the queries for it)
  • Print error message in case of database error(s)

I tried to fix the util test but failed in doing so..


Should the PR target the develop or master branch ? (This PR is targeted at the develop branch)

Add id column to task__output table "instead"
Print error message in case of database errors
@matejkramny matejkramny merged commit 60a6570 into semaphoreui:develop Apr 18, 2017
@@ -1,27 +1,5 @@
ALTER TABLE `user` ADD PRIMARY KEY(id)
ALTER TABLE `project__user` ADD PRIMARY KEY(project_id);
Copy link
Contributor

Choose a reason for hiding this comment

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

this primary key makes it impossible to add > 1 user to a project since the key structure is a unique key user_id+project_id

matejkramny added a commit that referenced this pull request Apr 18, 2017
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.

None yet

2 participants