cache_data_mig.go 531 B

1234567891011121314151617
  1. package migrations
  2. import . "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
  3. func addCacheMigration(mg *Migrator) {
  4. var cacheDataV1 = Table{
  5. Name: "cache_data",
  6. Columns: []*Column{
  7. {Name: "key", Type: DB_Char, IsPrimaryKey: true, Length: 16},
  8. {Name: "data", Type: DB_Blob},
  9. {Name: "expires", Type: DB_Integer, Length: 255, Nullable: false},
  10. {Name: "created_at", Type: DB_Integer, Length: 255, Nullable: false},
  11. },
  12. }
  13. mg.AddMigration("create cache_data table", NewAddTableMigration(cacheDataV1))
  14. }