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
f224fd83
Commit
f224fd83
authored
Jun 04, 2017
by
Dan Cech
Committed by
Torkel Ödegaard
Jun 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce length of dashboard columns used in compound indexes (#8507)
parent
4fe99353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pkg/services/sqlstore/migrations/dashboard_mig.go
+3
-3
No files found.
pkg/services/sqlstore/migrations/dashboard_mig.go
View file @
f224fd83
...
@@ -8,7 +8,7 @@ func addDashboardMigration(mg *Migrator) {
...
@@ -8,7 +8,7 @@ func addDashboardMigration(mg *Migrator) {
Columns
:
[]
*
Column
{
Columns
:
[]
*
Column
{
{
Name
:
"id"
,
Type
:
DB_BigInt
,
IsPrimaryKey
:
true
,
IsAutoIncrement
:
true
},
{
Name
:
"id"
,
Type
:
DB_BigInt
,
IsPrimaryKey
:
true
,
IsAutoIncrement
:
true
},
{
Name
:
"version"
,
Type
:
DB_Int
,
Nullable
:
false
},
{
Name
:
"version"
,
Type
:
DB_Int
,
Nullable
:
false
},
{
Name
:
"slug"
,
Type
:
DB_NVarchar
,
Length
:
1
90
,
Nullable
:
false
},
{
Name
:
"slug"
,
Type
:
DB_NVarchar
,
Length
:
1
89
,
Nullable
:
false
},
{
Name
:
"title"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
false
},
{
Name
:
"title"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
false
},
{
Name
:
"data"
,
Type
:
DB_Text
,
Nullable
:
false
},
{
Name
:
"data"
,
Type
:
DB_Text
,
Nullable
:
false
},
{
Name
:
"account_id"
,
Type
:
DB_BigInt
,
Nullable
:
false
},
{
Name
:
"account_id"
,
Type
:
DB_BigInt
,
Nullable
:
false
},
...
@@ -114,7 +114,7 @@ func addDashboardMigration(mg *Migrator) {
...
@@ -114,7 +114,7 @@ func addDashboardMigration(mg *Migrator) {
// add column to store plugin_id
// add column to store plugin_id
mg
.
AddMigration
(
"Add column plugin_id in dashboard"
,
NewAddColumnMigration
(
dashboardV2
,
&
Column
{
mg
.
AddMigration
(
"Add column plugin_id in dashboard"
,
NewAddColumnMigration
(
dashboardV2
,
&
Column
{
Name
:
"plugin_id"
,
Type
:
DB_NVarchar
,
Nullable
:
true
,
Length
:
255
,
Name
:
"plugin_id"
,
Type
:
DB_NVarchar
,
Nullable
:
true
,
Length
:
189
,
}))
}))
mg
.
AddMigration
(
"Add index for plugin_id in dashboard"
,
NewAddIndexMigration
(
dashboardV2
,
&
Index
{
mg
.
AddMigration
(
"Add index for plugin_id in dashboard"
,
NewAddIndexMigration
(
dashboardV2
,
&
Index
{
...
@@ -129,7 +129,7 @@ func addDashboardMigration(mg *Migrator) {
...
@@ -129,7 +129,7 @@ func addDashboardMigration(mg *Migrator) {
mg
.
AddMigration
(
"Update dashboard table charset"
,
NewTableCharsetMigration
(
"dashboard"
,
[]
*
Column
{
mg
.
AddMigration
(
"Update dashboard table charset"
,
NewTableCharsetMigration
(
"dashboard"
,
[]
*
Column
{
{
Name
:
"slug"
,
Type
:
DB_NVarchar
,
Length
:
189
,
Nullable
:
false
},
{
Name
:
"slug"
,
Type
:
DB_NVarchar
,
Length
:
189
,
Nullable
:
false
},
{
Name
:
"title"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
false
},
{
Name
:
"title"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
false
},
{
Name
:
"plugin_id"
,
Type
:
DB_NVarchar
,
Nullable
:
true
,
Length
:
255
},
{
Name
:
"plugin_id"
,
Type
:
DB_NVarchar
,
Nullable
:
true
,
Length
:
189
},
{
Name
:
"data"
,
Type
:
DB_MediumText
,
Nullable
:
false
},
{
Name
:
"data"
,
Type
:
DB_MediumText
,
Nullable
:
false
},
}))
}))
...
...
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