@@ -124,30 +124,10 @@ extension Table {
124124 /// - line: The source `#line` associated with the trigger.
125125 /// - column: The source `#column` associated with the trigger.
126126 /// - Returns: A temporary trigger.
127- public static func createTemporaryTrigger(
127+ public static func createTemporaryTrigger< D : _OptionalPromotable < Date ? > > (
128128 _ name: String ? = nil ,
129129 ifNotExists: Bool = false ,
130- afterUpdateTouch date: KeyPath < TableColumns , TableColumn < Self , Date > > ,
131- fileID: StaticString = #fileID,
132- line: UInt = #line,
133- column: UInt = #column
134- ) -> TemporaryTrigger < Self > {
135- Self . createTemporaryTrigger (
136- name,
137- ifNotExists: ifNotExists,
138- afterUpdateTouch: {
139- $0 [ dynamicMember: date] = SQLQueryExpression ( " datetime('subsec') " )
140- } ,
141- fileID: fileID,
142- line: line,
143- column: column
144- )
145- }
146-
147- public static func createTemporaryTrigger(
148- _ name: String ? = nil ,
149- ifNotExists: Bool = false ,
150- afterUpdateTouch date: KeyPath < TableColumns , TableColumn < Self , Date ? > > ,
130+ afterUpdateTouch date: KeyPath < TableColumns , TableColumn < Self , D > > ,
151131 fileID: StaticString = #fileID,
152132 line: UInt = #line,
153133 column: UInt = #column
@@ -186,10 +166,10 @@ extension Table {
186166 )
187167 }
188168
189- public static func createTemporaryTrigger(
169+ public static func createTemporaryTrigger< D : _OptionalPromotable < Date ? > > (
190170 _ name: String ? = nil ,
191171 ifNotExists: Bool = false ,
192- afterInsertTouch date: KeyPath < TableColumns , TableColumn < Self , Date ? > > ,
172+ afterInsertTouch date: KeyPath < TableColumns , TableColumn < Self , D > > ,
193173 fileID: StaticString = #fileID,
194174 line: UInt = #line,
195175 column: UInt = #column
0 commit comments