Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
04a94ce3
Commit
04a94ce3
authored
Feb 05, 2018
by
Carl Bergquist
Committed by
Torkel Ödegaard
Feb 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds unique index for org_id+folder_id+title on dashboards (#10766)
parent
8ce2074e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
pkg/services/sqlstore/migrations/dashboard_mig.go
+4
-0
No files found.
pkg/services/sqlstore/migrations/dashboard_mig.go
View file @
04a94ce3
...
...
@@ -167,4 +167,8 @@ func addDashboardMigration(mg *Migrator) {
mg
.
AddMigration
(
"Remove unique index org_id_slug"
,
NewDropIndexMigration
(
dashboardV2
,
&
Index
{
Cols
:
[]
string
{
"org_id"
,
"slug"
},
Type
:
UniqueIndex
,
}))
mg
.
AddMigration
(
"Add unique index for dashboard_org_id_title_folder_id"
,
NewAddIndexMigration
(
dashboardV2
,
&
Index
{
Cols
:
[]
string
{
"org_id"
,
"folder_id"
,
"title"
},
Type
:
UniqueIndex
,
}))
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment