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
79d0f47e
Commit
79d0f47e
authored
Dec 07, 2015
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added columns in dashboard_snapshot
parent
42d12052
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
pkg/services/sqlstore/migrations/dashboard_snapshot_mig.go
+11
-0
No files found.
pkg/services/sqlstore/migrations/dashboard_snapshot_mig.go
View file @
79d0f47e
...
@@ -54,4 +54,15 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
...
@@ -54,4 +54,15 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
Sqlite
(
"SELECT 0 WHERE 0;"
)
.
Sqlite
(
"SELECT 0 WHERE 0;"
)
.
Postgres
(
"SELECT 0;"
)
.
Postgres
(
"SELECT 0;"
)
.
Mysql
(
"ALTER TABLE dashboard_snapshot MODIFY dashboard MEDIUMTEXT;"
))
Mysql
(
"ALTER TABLE dashboard_snapshot MODIFY dashboard MEDIUMTEXT;"
))
// add column to store creator of a dashboard snapshot
mg
.
AddMigration
(
"Add column created_by in dashboard_snapshot"
,
NewAddColumnMigration
(
snapshotV5
,
&
Column
{
Name
:
"created_by"
,
Type
:
DB_BigInt
,
Nullable
:
true
,
}))
// add column to store updater of a dashboard snapshot
mg
.
AddMigration
(
"Add column updated_by in dashboard_snapshot"
,
NewAddColumnMigration
(
snapshotV5
,
&
Column
{
Name
:
"updated_by"
,
Type
:
DB_BigInt
,
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