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
16fa5c4d
Commit
16fa5c4d
authored
Aug 14, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(mysql): fix for migration in newly added temp_user table, fixes #2509
parent
2f849be9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
pkg/services/sqlstore/migrations/temp_user.go
+1
-1
pkg/services/sqlstore/migrator/migrator.go
+1
-0
No files found.
pkg/services/sqlstore/migrations/temp_user.go
View file @
16fa5c4d
...
...
@@ -17,7 +17,7 @@ func addTempUserMigrations(mg *Migrator) {
{
Name
:
"invited_by_user_id"
,
Type
:
DB_BigInt
,
Nullable
:
true
},
{
Name
:
"email_sent"
,
Type
:
DB_Bool
},
{
Name
:
"email_sent_on"
,
Type
:
DB_DateTime
,
Nullable
:
true
},
{
Name
:
"remote_addr"
,
Type
:
DB_Varchar
,
Nullable
:
true
},
{
Name
:
"remote_addr"
,
Type
:
DB_Varchar
,
Length
:
255
,
Nullable
:
true
},
{
Name
:
"created"
,
Type
:
DB_DateTime
},
{
Name
:
"updated"
,
Type
:
DB_DateTime
},
},
...
...
pkg/services/sqlstore/migrator/migrator.go
View file @
16fa5c4d
...
...
@@ -100,6 +100,7 @@ func (mg *Migrator) Start() error {
}
if
err
:=
mg
.
exec
(
m
);
err
!=
nil
{
log
.
Error
(
3
,
"Migrator: error:
\n
%s:
\n
%s"
,
err
,
sql
)
record
.
Error
=
err
.
Error
()
mg
.
x
.
Insert
(
&
record
)
return
err
...
...
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