parent
5be456a09f
commit
a4d5a81b97
|
@ -1,15 +1,15 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
package migrate
|
||||
|
||||
var DialectSQLite = Migrations{
|
||||
var DialectSQLite3 = Migrations{
|
||||
{
|
||||
ID: "20211121-094727",
|
||||
Dialect: "sqlite",
|
||||
Dialect: "sqlite3",
|
||||
Statements: []string{"DROP INDEX IF EXISTS idx_places_place_label;"},
|
||||
},
|
||||
{
|
||||
ID: "20211124-120008",
|
||||
Dialect: "sqlite",
|
||||
Dialect: "sqlite3",
|
||||
Statements: []string{"DROP INDEX IF EXISTS uix_places_place_label;", "DROP INDEX IF EXISTS uix_places_label;"},
|
||||
},
|
||||
}
|
|
@ -3,10 +3,10 @@ package migrate
|
|||
// Supported database dialects.
|
||||
const (
|
||||
MySQL = "mysql"
|
||||
SQLite = "sqlite3"
|
||||
SQLite3 = "sqlite3"
|
||||
)
|
||||
|
||||
var Dialects = map[string]Migrations{
|
||||
MySQL: DialectMySQL,
|
||||
SQLite: DialectSQLite,
|
||||
SQLite3: DialectSQLite3,
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ func gen_migrations(name string) {
|
|||
|
||||
func main() {
|
||||
gen_migrations("MySQL")
|
||||
gen_migrations("SQLite")
|
||||
gen_migrations("SQLite3")
|
||||
}
|
||||
|
||||
var migrationsTemplate = template.Must(template.New("").Parse(`// Code generated by go generate; DO NOT EDIT.
|
||||
|
|
Loading…
Reference in a new issue