DropTable drop table definition
(s *schema.Schema)
| 582 | |
| 583 | //DropTable drop table definition |
| 584 | func (db *DB) DropTable(s *schema.Schema) error { |
| 585 | if s.IsAbstract() { |
| 586 | return nil |
| 587 | } |
| 588 | sql := fmt.Sprintf("drop table if exists %s\n", quote(s.GetDbTableName())) |
| 589 | _, err := db.DB.Exec(sql) |
| 590 | return err |
| 591 | } |
| 592 | |
| 593 | func escapeID(ID string) string { |
| 594 | return strings.Replace(ID, "-", "_escape_", -1) |
nothing calls this directly
no test coverage detected