mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Playlist: Add create+update timestamps to the database (#76295)
This commit is contained in:
@@ -33,6 +33,14 @@ func addPlaylistMigrations(mg *Migrator) {
|
||||
{Name: "value", Type: DB_Text, Nullable: false},
|
||||
{Name: "title", Type: DB_Text, Nullable: false},
|
||||
}))
|
||||
|
||||
// Add columns used for kubernetes dual write synchronization
|
||||
mg.AddMigration("Add playlist column created_at", NewAddColumnMigration(playlistV2(), &Column{
|
||||
Name: "created_at", Type: DB_BigInt, Nullable: false, Default: "0",
|
||||
}))
|
||||
mg.AddMigration("Add playlist column updated_at", NewAddColumnMigration(playlistV2(), &Column{
|
||||
Name: "updated_at", Type: DB_BigInt, Nullable: false, Default: "0",
|
||||
}))
|
||||
}
|
||||
|
||||
func addPlaylistUIDMigration(mg *Migrator) {
|
||||
|
||||
Reference in New Issue
Block a user