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
ab44c7d6
Commit
ab44c7d6
authored
May 29, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana
parents
ed2092e2
c0d5b614
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
pkg/services/sqlstore/migrations/alert_mig.go
+2
-2
pkg/services/sqlstore/migrations/dashboard_mig.go
+2
-2
pkg/services/sqlstore/migrations/temp_user.go
+4
-4
No files found.
pkg/services/sqlstore/migrations/alert_mig.go
View file @
ab44c7d6
...
...
@@ -16,7 +16,7 @@ func addAlertMigrations(mg *Migrator) {
{
Name
:
"org_id"
,
Type
:
DB_BigInt
,
Nullable
:
false
},
{
Name
:
"name"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
false
},
{
Name
:
"message"
,
Type
:
DB_Text
,
Nullable
:
false
},
{
Name
:
"state"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
false
},
{
Name
:
"state"
,
Type
:
DB_NVarchar
,
Length
:
190
,
Nullable
:
false
},
{
Name
:
"settings"
,
Type
:
DB_Text
,
Nullable
:
false
},
{
Name
:
"frequency"
,
Type
:
DB_BigInt
,
Nullable
:
false
},
{
Name
:
"handler"
,
Type
:
DB_BigInt
,
Nullable
:
false
},
...
...
@@ -70,7 +70,7 @@ func addAlertMigrations(mg *Migrator) {
mg
.
AddMigration
(
"Update alert table charset"
,
NewTableCharsetMigration
(
"alert"
,
[]
*
Column
{
{
Name
:
"name"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
false
},
{
Name
:
"message"
,
Type
:
DB_Text
,
Nullable
:
false
},
{
Name
:
"state"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
false
},
{
Name
:
"state"
,
Type
:
DB_NVarchar
,
Length
:
190
,
Nullable
:
false
},
{
Name
:
"settings"
,
Type
:
DB_Text
,
Nullable
:
false
},
{
Name
:
"severity"
,
Type
:
DB_Text
,
Nullable
:
false
},
{
Name
:
"execution_error"
,
Type
:
DB_Text
,
Nullable
:
false
},
...
...
pkg/services/sqlstore/migrations/dashboard_mig.go
View file @
ab44c7d6
...
...
@@ -56,7 +56,7 @@ func addDashboardMigration(mg *Migrator) {
Columns
:
[]
*
Column
{
{
Name
:
"id"
,
Type
:
DB_BigInt
,
IsPrimaryKey
:
true
,
IsAutoIncrement
:
true
},
{
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
:
"data"
,
Type
:
DB_Text
,
Nullable
:
false
},
{
Name
:
"org_id"
,
Type
:
DB_BigInt
,
Nullable
:
false
},
...
...
@@ -127,7 +127,7 @@ func addDashboardMigration(mg *Migrator) {
}))
mg
.
AddMigration
(
"Update dashboard table charset"
,
NewTableCharsetMigration
(
"dashboard"
,
[]
*
Column
{
{
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
:
"plugin_id"
,
Type
:
DB_NVarchar
,
Nullable
:
true
,
Length
:
255
},
{
Name
:
"data"
,
Type
:
DB_MediumText
,
Nullable
:
false
},
...
...
pkg/services/sqlstore/migrations/temp_user.go
View file @
ab44c7d6
...
...
@@ -9,10 +9,10 @@ func addTempUserMigrations(mg *Migrator) {
{
Name
:
"id"
,
Type
:
DB_BigInt
,
IsPrimaryKey
:
true
,
IsAutoIncrement
:
true
},
{
Name
:
"org_id"
,
Type
:
DB_BigInt
,
Nullable
:
false
},
{
Name
:
"version"
,
Type
:
DB_Int
,
Nullable
:
false
},
{
Name
:
"email"
,
Type
:
DB_NVarchar
,
Length
:
255
},
{
Name
:
"email"
,
Type
:
DB_NVarchar
,
Length
:
190
},
{
Name
:
"name"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
true
},
{
Name
:
"role"
,
Type
:
DB_NVarchar
,
Length
:
20
,
Nullable
:
true
},
{
Name
:
"code"
,
Type
:
DB_NVarchar
,
Length
:
255
},
{
Name
:
"code"
,
Type
:
DB_NVarchar
,
Length
:
190
},
{
Name
:
"status"
,
Type
:
DB_Varchar
,
Length
:
20
},
{
Name
:
"invited_by_user_id"
,
Type
:
DB_BigInt
,
Nullable
:
true
},
{
Name
:
"email_sent"
,
Type
:
DB_Bool
},
...
...
@@ -37,10 +37,10 @@ func addTempUserMigrations(mg *Migrator) {
addTableIndicesMigrations
(
mg
,
"v1-7"
,
tempUserV1
)
mg
.
AddMigration
(
"Update temp_user table charset"
,
NewTableCharsetMigration
(
"temp_user"
,
[]
*
Column
{
{
Name
:
"email"
,
Type
:
DB_NVarchar
,
Length
:
255
},
{
Name
:
"email"
,
Type
:
DB_NVarchar
,
Length
:
190
},
{
Name
:
"name"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
true
},
{
Name
:
"role"
,
Type
:
DB_NVarchar
,
Length
:
20
,
Nullable
:
true
},
{
Name
:
"code"
,
Type
:
DB_NVarchar
,
Length
:
255
},
{
Name
:
"code"
,
Type
:
DB_NVarchar
,
Length
:
190
},
{
Name
:
"status"
,
Type
:
DB_Varchar
,
Length
:
20
},
{
Name
:
"remote_addr"
,
Type
:
DB_Varchar
,
Length
:
255
,
Nullable
:
true
},
}))
...
...
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