@rebasepro/server-postgres 0.12.1-canary.gdd7172e → 0.12.1-canary.ge191fb7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -5946,6 +5946,7 @@ var getDrizzleColumn = (propName, prop, collection, collections) => {
|
|
|
5946
5946
|
const isId = isIdProperty(propName, prop, collection);
|
|
5947
5947
|
let baseType = numProp.validation?.integer || isId ? `integer("${colName}")` : `numeric("${colName}")`;
|
|
5948
5948
|
if (numProp.columnType) if (numProp.columnType === "double precision") baseType = `doublePrecision("${colName}")`;
|
|
5949
|
+
else if (numProp.columnType === "bigint" || numProp.columnType === "bigserial") baseType = `${numProp.columnType}("${colName}", { mode: "number" })`;
|
|
5949
5950
|
else baseType = `${numProp.columnType}("${colName}")`;
|
|
5950
5951
|
if ("isId" in numProp && numProp.isId === "increment") columnDefinition = `${baseType}.generatedByDefaultAsIdentity()`;
|
|
5951
5952
|
else if ("isId" in numProp && typeof numProp.isId === "string" && numProp.isId !== "manual") {
|