mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
adding created column
This commit is contained in:
@@ -90,4 +90,14 @@ func addAnnotationMig(mg *Migrator) {
|
||||
Sqlite(updateTextFieldSql).
|
||||
Postgres(updateTextFieldSql).
|
||||
Mysql(updateTextFieldSql))
|
||||
|
||||
//
|
||||
// Add a 'created' column
|
||||
//
|
||||
mg.AddMigration("Add created time to annotation table", NewAddColumnMigration(table, &Column{
|
||||
Name: "created", Type: DB_BigInt, Nullable: true, Default: "0",
|
||||
}))
|
||||
mg.AddMigration("Add index for created in annotation table", NewAddIndexMigration(table, &Index{
|
||||
Cols: []string{"org_id", "created"}, Type: IndexType,
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user