瀏覽代碼

Improve schema support on postgres dialect

xormplus 7 年之前
父節點
當前提交
5dfa8f45e7
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      dialect_postgres.go
  2. 0 1
      dialect_postgres_test.go

+ 0 - 1
dialect_postgres.go

@@ -904,7 +904,6 @@ func (db *postgres) ModifyColumnSql(tableName string, col *core.Column) string {
 	}
 	return fmt.Sprintf("alter table %s.%s ALTER COLUMN %s TYPE %s",
 		db.Schema, tableName, col.Name, db.SqlType(col))
-
 }
 
 func (db *postgres) CreateIndexSql(tableName string, index *core.Index) string {

+ 0 - 1
dialect_postgres_test.go

@@ -30,7 +30,6 @@ func TestParsePostgres(t *testing.T) {
 
 	for _, test := range tests {
 		uri, err := driver.Parse("postgres", test.in)
-
 		if err != nil && test.valid {
 			t.Errorf("%q got unexpected error: %s", test.in, err)
 		} else if err == nil && !reflect.DeepEqual(test.expected, uri.DbName) {