ragokan
ragokan
Explore posts from servers
DTDrizzle Team
Created by ragokan on 10/4/2024 in #help
How can I get warning when creating "Migration" with non nullable field
When I generate migration using the command drizzle-kit generate --config ./drizzle.config.ts I don't get any warnings for new fields that is non nullable. Shouldn't it warn me or ask for a default value? The generated SQL:
ALTER TABLE "profiles" ADD COLUMN "x" varchar NOT NULL;
ALTER TABLE "profiles" ADD COLUMN "x" varchar NOT NULL;
Config has these options
verbose: true,
strict: true,
schema: './packages/schema/**/*.ts',
dialect: 'postgresql',
dbCredentials: object
verbose: true,
strict: true,
schema: './packages/schema/**/*.ts',
dialect: 'postgresql',
dbCredentials: object
10 replies