mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 02:23:31 -06:00
18 lines
531 B
Go
18 lines
531 B
Go
|
package migrations
|
||
|
|
||
|
import . "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
|
||
|
|
||
|
func addCacheMigration(mg *Migrator) {
|
||
|
var cacheDataV1 = Table{
|
||
|
Name: "cache_data",
|
||
|
Columns: []*Column{
|
||
|
{Name: "key", Type: DB_Char, IsPrimaryKey: true, Length: 16},
|
||
|
{Name: "data", Type: DB_Blob},
|
||
|
{Name: "expires", Type: DB_Integer, Length: 255, Nullable: false},
|
||
|
{Name: "created_at", Type: DB_Integer, Length: 255, Nullable: false},
|
||
|
},
|
||
|
}
|
||
|
|
||
|
mg.AddMigration("create cache_data table", NewAddTableMigration(cacheDataV1))
|
||
|
}
|