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
42d12052
Commit
42d12052
authored
Dec 06, 2015
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed gofmt checks
parent
3d903404
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
pkg/services/sqlstore/migrations/dashboard_mig.go
+8
-8
pkg/services/sqlstore/migrator/migrations.go
+1
-1
No files found.
pkg/services/sqlstore/migrations/dashboard_mig.go
View file @
42d12052
...
@@ -93,13 +93,13 @@ func addDashboardMigration(mg *Migrator) {
...
@@ -93,13 +93,13 @@ func addDashboardMigration(mg *Migrator) {
Postgres
(
"SELECT 0;"
)
.
Postgres
(
"SELECT 0;"
)
.
Mysql
(
"ALTER TABLE dashboard MODIFY data MEDIUMTEXT;"
))
Mysql
(
"ALTER TABLE dashboard MODIFY data MEDIUMTEXT;"
))
// add column to store creator of a dashboard
// add column to store creator of a dashboard
mg
.
AddMigration
(
"Add column created_by"
,
NewAddColumnMigration
(
dashboardV2
,
&
Column
{
mg
.
AddMigration
(
"Add column created_by"
,
NewAddColumnMigration
(
dashboardV2
,
&
Column
{
Name
:
"created_by"
,
Type
:
DB_BigInt
,
Nullable
:
true
,
Name
:
"created_by"
,
Type
:
DB_BigInt
,
Nullable
:
true
,
}))
}))
// add column to store updater of a dashboard
// add column to store updater of a dashboard
mg
.
AddMigration
(
"Add column updated_by"
,
NewAddColumnMigration
(
dashboardV2
,
&
Column
{
mg
.
AddMigration
(
"Add column updated_by"
,
NewAddColumnMigration
(
dashboardV2
,
&
Column
{
Name
:
"updated_by"
,
Type
:
DB_BigInt
,
Nullable
:
true
,
Name
:
"updated_by"
,
Type
:
DB_BigInt
,
Nullable
:
true
,
}))
}))
}
}
pkg/services/sqlstore/migrator/migrations.go
View file @
42d12052
...
@@ -65,7 +65,7 @@ type AddColumnMigration struct {
...
@@ -65,7 +65,7 @@ type AddColumnMigration struct {
}
}
func
NewAddColumnMigration
(
table
Table
,
col
*
Column
)
*
AddColumnMigration
{
func
NewAddColumnMigration
(
table
Table
,
col
*
Column
)
*
AddColumnMigration
{
return
&
AddColumnMigration
{
tableName
:
table
.
Name
,
column
:
col
}
return
&
AddColumnMigration
{
tableName
:
table
.
Name
,
column
:
col
}
}
}
func
(
m
*
AddColumnMigration
)
Table
(
tableName
string
)
*
AddColumnMigration
{
func
(
m
*
AddColumnMigration
)
Table
(
tableName
string
)
*
AddColumnMigration
{
...
...
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