fix only create/drop database indices if not exists/exists

This commit is contained in:
Marcus Efraimsson
2018-12-18 21:47:45 +01:00
parent 3c6bcde8b2
commit 09b3014683
7 changed files with 63 additions and 35 deletions
+2 -1
View File
@@ -29,10 +29,11 @@ type Dialect interface {
DropTable(tableName string) string
DropIndexSql(tableName string, index *Index) string
TableCheckSql(tableName string) (string, []interface{})
RenameTable(oldName string, newName string) string
UpdateTableSql(tableName string, columns []*Column) string
IndexCheckSql(tableName, indexName string) (string, []interface{})
ColString(*Column) string
ColStringNoPk(*Column) string