mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-11 02:00:37 +08:00
Add option to declare an array
This commit is contained in:
@@ -19,6 +19,7 @@ export const databases = {
|
||||
image: postgresImage,
|
||||
hasTypes: true,
|
||||
hasEnums: true,
|
||||
hasArrays: true,
|
||||
},
|
||||
[DB.SQLITE]: {
|
||||
name: "SQLite",
|
||||
|
||||
@@ -1087,15 +1087,6 @@ const postgresTypesBase = {
|
||||
hasQuotes: true,
|
||||
noDefault: true,
|
||||
},
|
||||
ARRAY: {
|
||||
type: "ARRAY",
|
||||
checkDefault: (field) => true,
|
||||
hasCheck: false,
|
||||
isSized: false,
|
||||
hasPrecision: false,
|
||||
hasQuotes: false,
|
||||
noDefault: true,
|
||||
},
|
||||
};
|
||||
|
||||
export const postgresTypes = new Proxy(postgresTypesBase, {
|
||||
|
||||
Reference in New Issue
Block a user