mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Fix Swiftlint warnings
This commit is contained in:
1 parent
72271b0299
commit
af2d65ef49
2 files changed
+8
-3
No files matched your search
@@ -800,9 +800,14 @@ public struct ForeignKeyViolation: FetchableRecord, CustomStringConvertible {
|
||||
|
||||
public var description: String {
|
||||
if let originRowID = originRowID {
|
||||
return "FOREIGN KEY constraint violation - from \(originTable) to \(destinationTable), in rowid \(originRowID)"
|
||||
return """
|
||||
FOREIGN KEY constraint violation - from \(originTable) to \(destinationTable), \
|
||||
in rowid \(originRowID)
|
||||
"""
|
||||
} else {
|
||||
return "FOREIGN KEY constraint violation - from \(originTable) to \(destinationTable)"
|
||||
return """
|
||||
FOREIGN KEY constraint violation - from \(originTable) to \(destinationTable)
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/// An internal struct that defines a migration.
|
||||
struct Migration {
|
||||
public enum ForeignKeyChecks {
|
||||
enum ForeignKeyChecks {
|
||||
case deferred
|
||||
case immediate
|
||||
case disabled
|
||||
|
||||
Reference in new issue
Block a user