We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 468210f commit c8386a0Copy full SHA for c8386a0
src/data/datatypes.js
@@ -909,6 +909,20 @@ const postgresTypesBase = {
909
hasPrecision: false,
910
hasQuotes: true,
911
},
912
+ TIMETZ: {
913
+ type: "TIMETZ",
914
+ checkDefault: (field) => {
915
+ const specialValues = ["now", "allballs"];
916
+ return (
917
+ /^(?:[01]?\d|2[0-3]):[0-5]?\d:[0-5]?\d([+-]\d{2}:\d{2})?$/.test(field.default) ||
918
+ specialValues.includes(field.default.toLowerCase())
919
+ );
920
+ },
921
+ hasCheck: false,
922
+ isSized: false,
923
+ hasPrecision: false,
924
+ hasQuotes: true,
925
926
TIMESTAMP: {
927
type: "TIMESTAMP",
928
checkDefault: (field) => {
0 commit comments