We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drizzle-orm
0.30.8
drizzle-kit
0.20.17
error: column "roles" is of type integer[] but default expression is of type integer
schema:
export const users = pgTable('users', { id: serial('id').primaryKey(), fullname: text('fullname').notNull(), roles: integer('roles').array().default([1]).notNull(), });
set [1] as default value for roles column
[1]
No response
The text was updated successfully, but these errors were encountered:
if you use variables: .default(sql.raw(ARRAY[${variables}]::integer[])) else: .default(sqlARRAY[1]::integer[])
ARRAY[${variables}]::integer[]
ARRAY[1]::integer[]
Sorry, something went wrong.
Should be fixed in drizzle-kit0.24.0 Please check release notes before updating
drizzle-kit0.24.0
No branches or pull requests
What version of
drizzle-orm
are you using?0.30.8
What version of
drizzle-kit
are you using?0.20.17
Describe the Bug
error: column "roles" is of type integer[] but default expression is of type integer
schema:
Expected behavior
set
[1]
as default value for roles columnEnvironment & setup
No response
The text was updated successfully, but these errors were encountered: