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

Simplify settingsStmt to make migrations easier #76

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Simplify settingsStmt to make migrations easier
  • Loading branch information
floatdrop committed Feb 14, 2014
commit 92aa848a835c5e9ae21fa17564b48779e34bfe65
6 changes: 1 addition & 5 deletions pkg/database/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ import (
const settingsTable = "settings"

// SQL Queries to retrieve the system settings
const settingsStmt = `
SELECT id, github_key, github_secret, bitbucket_key, bitbucket_secret,
smtp_server, smtp_port, smtp_address, smtp_username, smtp_password, hostname, scheme
FROM settings WHERE id = 1
`
const settingsStmt = `SELECT * FROM settings WHERE id = 1`

//var (
// // mutex for locking the local settings cache
Expand Down