Skip to content

Commit

Permalink
Revert "feat: support type alias (go-gorm#90)"
Browse files Browse the repository at this point in the history
This reverts commit ff88afd.
  • Loading branch information
ishaan812 committed Oct 14, 2022
1 parent ecb6c6a commit 58264fb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions migrator.go
Expand Up @@ -26,11 +26,6 @@ ORDER BY
INDEX_NAME,
SEQ_IN_INDEX`

var typeAliasMap = map[string][]string{
"bool": {"tinyint"},
"tinyint": {"bool"},
}

type Migrator struct {
migrator.Migrator
Dialector
Expand Down Expand Up @@ -325,7 +320,3 @@ func (m Migrator) CurrentSchema(stmt *gorm.Statement, table string) (string, str

return m.CurrentDatabase(), table
}

func (m Migrator) GetTypeAliases(databaseTypeName string) []string {
return typeAliasMap[databaseTypeName]
}

0 comments on commit 58264fb

Please sign in to comment.