DT
Drizzle Team•5mo 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
tzezarOP•5mo 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