Exemple #1
0
func DropMigrationsTable(dbMap *gorp.DbMap) error {
	qt := fmt.Sprintf("DROP TABLE IF EXISTS %s;", dbMap.Dialect.QuotedTableForQuery("", migrationTable))
	_, err := dbMap.Exec(qt)
	return err
}
Exemple #2
0
func DropMigrationsTable(dbMap *gorp.DbMap) error {
	qt := pq.QuoteIdentifier(migrationTable)
	_, err := dbMap.Exec(fmt.Sprintf("drop table if exists %s ;", qt))
	return err
}