From c5d6ff442e4a1038422e689ebfe420a75f916bd8 Mon Sep 17 00:00:00 2001 From: tanner0101 Date: Thu, 20 Feb 2020 18:26:56 -0500 Subject: [PATCH] alter table syntax --- Sources/PostgresKit/PostgresDialect.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/PostgresKit/PostgresDialect.swift b/Sources/PostgresKit/PostgresDialect.swift index 9cd15a2e..8be3c776 100644 --- a/Sources/PostgresKit/PostgresDialect.swift +++ b/Sources/PostgresKit/PostgresDialect.swift @@ -40,4 +40,11 @@ public struct PostgresDialect: SQLDialect { drop: [.supportsCascade, .supportsTableName] ) } + + public var alterTableSyntax: SQLAlterTableSyntax { + .init( + alterColumnDefinitionClause: SQLRaw("ALTER COLUMN"), + alterColumnDefinitionTypeKeyword: SQLRaw("SET DATA TYPE") + ) + } }