DT
Drizzle Team•3mo ago
tzezar

applying migrations...error: unsafe use of new value "zewnetrzny"

adding model with enum like below (sorry for polish, ubiquitous language with domain masters)
export const typUzytkownikaEnum = pgEnum('typ_uzytkownika',
['zewnetrzny', 'wewnetrzny']
);
export const typUzytkownikaEnum = pgEnum('typ_uzytkownika',
['zewnetrzny', 'wewnetrzny']
);
raise error:
applying migrations...error: unsafe use of new value "zewnetrzny"
applying migrations...error: unsafe use of new value "zewnetrzny"
"zewnetrzny" is not listed as forbidden word in pg, why error then?
2 Replies
tzezar
tzezar•3mo ago
We deleted migrations folder and with fresh db error does not raise. Weird. Btw nice playground, have not know it exists
Want results from more Discord servers?
Add your server