Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89128b6

Browse files
committed
Fix a bug in database default value
1 parent 5e00a56 commit 89128b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Pjango/DB/PCDataBaseField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ final public class PCDataBaseField {
8484
let typeStr = "\(type.rawValue)(\(length))"
8585
let nullStr: String
8686
if notNull, let defaultValue = self.defaultValue {
87-
nullStr = "NOT NULL DEFAULT \(defaultValue)"
87+
nullStr = "NOT NULL DEFAULT '\(defaultValue)'"
8888
} else {
8989
nullStr = "NULL"
9090
}

0 commit comments

Comments
 (0)