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
fd274592
Commit
fd274592
authored
Apr 24, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into editable_false
parents
236c4e65
7064d871
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
8 deletions
+32
-8
CHANGELOG.md
+2
-0
conf/defaults.ini
+3
-2
conf/sample.ini
+2
-2
docs/sources/installation/configuration.md
+1
-1
pkg/services/sqlstore/migrations/dashboard_mig.go
+6
-0
pkg/services/sqlstore/migrations/dashboard_snapshot_mig.go
+6
-0
pkg/services/sqlstore/migrator/migrations.go
+10
-2
public/css/less/search.less
+2
-1
No files found.
CHANGELOG.md
View file @
fd274592
# 2.0.3 (unreleased)
**Fixes**
-
[
Issue #1872
](
https://github.com/grafana/grafana/issues/1872
)
. Firefox/IE issue, invisible text in dashboard search fixed
-
[
Issue #1857
](
https://github.com/grafana/grafana/issues/1857
)
. /api/login/ping Fix for issue when behind reverse proxy and subpath
-
[
Issue #1863
](
https://github.com/grafana/grafana/issues/1863
)
. MySQL: Dashboard.data column type changed to mediumtext (sql migration added)
# 2.0.2 (2015-04-22)
...
...
conf/defaults.ini
View file @
fd274592
...
...
@@ -7,7 +7,7 @@ app_mode = production
#################################### Paths ####################################
[paths]
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is use
D
)
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is use
d
)
#
data
=
data
#
...
...
@@ -62,7 +62,7 @@ path = grafana.db
#################################### Session ####################################
[session]
# Either "memory", "file", "redis", "mysql",
default is "memory
"
# Either "memory", "file", "redis", "mysql",
"postgresql", default is "file
"
provider
=
file
# Provider config options
...
...
@@ -70,6 +70,7 @@ provider = file
# file: session dir path, is relative to grafana data_path
# redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
# mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1)/database_name`
provider_config
=
sessions
# Session cookie name
...
...
conf/sample.ini
View file @
fd274592
...
...
@@ -7,7 +7,7 @@
#################################### Paths ####################################
[paths]
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is use
D
)
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is use
d
)
#
;data = /var/lib/grafana
#
...
...
@@ -62,7 +62,7 @@
#################################### Session ####################################
[session]
# Either "memory", "file", "redis", "mysql",
default is "memory
"
# Either "memory", "file", "redis", "mysql",
"postgresql", default is "file
"
;provider = file
# Provider config options
...
...
docs/sources/installation/configuration.md
View file @
fd274592
...
...
@@ -219,7 +219,7 @@ set to true, any user successfully authenticating via google auth will be automa
## [session]
### provider
Valid values are "memory", "file", "mysql", 'postgres'. Default is "
memory
".
Valid values are "memory", "file", "mysql", 'postgres'. Default is "
file
".
### provider_config
This option should be configured differently depending on what type of session provider you have configured.
...
...
pkg/services/sqlstore/migrations/dashboard_mig.go
View file @
fd274592
...
...
@@ -86,4 +86,10 @@ func addDashboardMigration(mg *Migrator) {
}))
mg
.
AddMigration
(
"drop table dashboard_v1"
,
NewDropTableMigration
(
"dashboard_v1"
))
// change column type of dashboard.data
mg
.
AddMigration
(
"alter dashboard.data to mediumtext v1"
,
new
(
RawSqlMigration
)
.
Sqlite
(
"SELECT 0 WHERE 0;"
)
.
Postgres
(
"SELECT 0;"
)
.
Mysql
(
"ALTER TABLE dashboard MODIFY data MEDIUMTEXT;"
))
}
pkg/services/sqlstore/migrations/dashboard_snapshot_mig.go
View file @
fd274592
...
...
@@ -48,4 +48,10 @@ func addDashboardSnapshotMigrations(mg *Migrator) {
mg
.
AddMigration
(
"create dashboard_snapshot table v5 #2"
,
NewAddTableMigration
(
snapshotV5
))
addTableIndicesMigrations
(
mg
,
"v5"
,
snapshotV5
)
// ncrease data type
mg
.
AddMigration
(
"alter dashboard_snapshot.data to mediumtext v1"
,
new
(
RawSqlMigration
)
.
Sqlite
(
"SELECT 0 WHERE 0;"
)
.
Postgres
(
"SELECT 0;"
)
.
Mysql
(
"ALTER TABLE dashboard_snapshot.data MODIFY data MEDIUMTEXT;"
))
}
pkg/services/sqlstore/migrator/migrations.go
View file @
fd274592
...
...
@@ -25,8 +25,9 @@ func (m *MigrationBase) GetCondition() MigrationCondition {
type
RawSqlMigration
struct
{
MigrationBase
sqlite
string
mysql
string
sqlite
string
mysql
string
postgres
string
}
func
(
m
*
RawSqlMigration
)
Sql
(
dialect
Dialect
)
string
{
...
...
@@ -35,6 +36,8 @@ func (m *RawSqlMigration) Sql(dialect Dialect) string {
return
m
.
mysql
case
SQLITE
:
return
m
.
sqlite
case
POSTGRES
:
return
m
.
postgres
}
panic
(
"db type not supported"
)
...
...
@@ -50,6 +53,11 @@ func (m *RawSqlMigration) Mysql(sql string) *RawSqlMigration {
return
m
}
func
(
m
*
RawSqlMigration
)
Postgres
(
sql
string
)
*
RawSqlMigration
{
m
.
postgres
=
sql
return
m
}
type
AddColumnMigration
struct
{
MigrationBase
tableName
string
...
...
public/css/less/search.less
View file @
fd274592
...
...
@@ -22,7 +22,8 @@
padding-bottom: 10px;
input {
width: 100%;
padding: 18px 8px;
padding: 8px 8px;
height: 100%;
box-sizing: border-box;
}
button {
...
...
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