File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public class SchemaChanger: CustomStringConvertible {
100
100
public class AlterTableDefinition {
101
101
fileprivate var operations : [ Operation ] = [ ]
102
102
103
- let name : String
103
+ public let name : String
104
104
105
105
init ( name: String ) {
106
106
self . name = name
@@ -223,6 +223,11 @@ public class SchemaChanger: CustomStringConvertible {
223
223
try connection. run ( " ALTER TABLE \( table. quote ( ) ) RENAME TO \( to. quote ( ) ) " )
224
224
}
225
225
226
+ // Runs arbitrary SQL. Should only be used if no predefined operations exist.
227
+ public func run( sql: String ) throws {
228
+ try connection. run ( sql)
229
+ }
230
+
226
231
private func run( table: String , operation: Operation ) throws {
227
232
try operation. validate ( )
228
233
You can’t perform that action at this time.
0 commit comments