va3y_
va3y_
DTDrizzle Team
Created by va3y_ on 6/16/2023 in #help
db push when adding notNull column with default() value
I've added this column to my table: fullfilled: boolean("fullfilled").default(false).notNull(), But when running drizzle-kit push:mysql I get this:

You're about to add not-null fullfilled column without default value, which contains 9 items
THIS ACTION WILL CAUSE DATA LOSS AND CANNOT BE REVERTED

You're about to add not-null fullfilled column without default value, which contains 9 items
THIS ACTION WILL CAUSE DATA LOSS AND CANNOT BE REVERTED
Is there a way to push this column without dropping table, it it has default? Is is a bug, or am I doing something wrong?
1 replies