mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
14 lines
286 B
Go
14 lines
286 B
Go
package migrator
|
|
|
|
type MigrationCondition interface {
|
|
Sql(dialect Dialect) (string, []interface{})
|
|
}
|
|
|
|
type IfTableExistsCondition struct {
|
|
TableName string
|
|
}
|
|
|
|
func (c *IfTableExistsCondition) Sql(dialect Dialect) (string, []interface{}) {
|
|
return dialect.TableCheckSql(c.TableName)
|
|
}
|