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
563d5e3a
Commit
563d5e3a
authored
Feb 25, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All migrations work in sqlite3, mysql and postgres
parent
16fd2562
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
9 deletions
+3
-9
.gitignore
+1
-0
docker/fig.yml
+0
-7
pkg/services/sqlstore/migrations/user_mig.go
+1
-1
pkg/services/sqlstore/migrator/migrator.go
+1
-1
No files found.
.gitignore
View file @
563d5e3a
...
...
@@ -21,3 +21,4 @@ src/css/*.min.css
/grafana
grafana.custom.ini
fig.yml
docker/fig.yml
deleted
100644 → 0
View file @
16fd2562
influxdb
:
build
:
blocks/influxdb
ports
:
-
"
2004:2004"
-
"
8083:8083"
-
"
8086:8086"
pkg/services/sqlstore/migrations/user_mig.go
View file @
563d5e3a
...
...
@@ -57,7 +57,7 @@ func addUserMigrations(mg *Migrator) {
&
Column
{
Name
:
"org_id"
,
Type
:
DB_BigInt
,
Nullable
:
false
},
&
Column
{
Name
:
"is_admin"
,
Type
:
DB_Bool
,
Nullable
:
false
},
&
Column
{
Name
:
"email_verified"
,
Type
:
DB_Bool
,
Nullable
:
true
},
&
Column
{
Name
:
"theme"
,
Type
:
DB_NVarchar
,
Nullable
:
true
},
&
Column
{
Name
:
"theme"
,
Type
:
DB_NVarchar
,
Length
:
255
,
Nullable
:
true
},
&
Column
{
Name
:
"created"
,
Type
:
DB_DateTime
,
Nullable
:
false
},
&
Column
{
Name
:
"updated"
,
Type
:
DB_DateTime
,
Nullable
:
false
},
},
...
...
pkg/services/sqlstore/migrator/migrator.go
View file @
563d5e3a
...
...
@@ -125,7 +125,7 @@ func (mg *Migrator) exec(m Migration) error {
results
,
err
:=
sess
.
Query
(
sql
,
args
...
)
if
err
!=
nil
||
len
(
results
)
==
0
{
log
.
Info
(
"Migrator: skipping migration id: %v, condition not fulfilled"
,
m
.
Id
())
return
nil
return
sess
.
Rollback
()
}
}
...
...
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