Skip to content

Commit 3dbd918

Browse files
authored
alter table syntax (vapor#173)
1 parent 902eb00 commit 3dbd918

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/PostgresKit/PostgresDialect.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@ public struct PostgresDialect: SQLDialect {
4040
drop: [.supportsCascade, .supportsTableName]
4141
)
4242
}
43+
44+
public var alterTableSyntax: SQLAlterTableSyntax {
45+
.init(
46+
alterColumnDefinitionClause: SQLRaw("ALTER COLUMN"),
47+
alterColumnDefinitionTypeKeyword: SQLRaw("SET DATA TYPE")
48+
)
49+
}
4350
}

0 commit comments

Comments
 (0)