示例#1
0
文件: migrate.go 项目: Tecsisa/dex
func GetPlannedMigrations(dbMap *gorp.DbMap) ([]*migrate.PlannedMigration, error) {
	source, dialect, err := migrationSource(dbMap)
	if err != nil {
		return nil, err
	}
	migrations, _, err := migrate.PlanMigration(dbMap.Db, dialect, source, migrate.Up, 0)
	return migrations, err
}
示例#2
0
文件: migrate.go 项目: adrianlop/dex
func GetPlannedMigrations(dbMap *gorp.DbMap) ([]*migrate.PlannedMigration, error) {
	migrations, _, err := migrate.PlanMigration(dbMap.Db, migrationDialect, getSource(), migrate.Up, 0)
	return migrations, err
}