I want to add one extra field in type, but it’s on...
# prisma-whats-new
m
I want to add one extra field in type, but it’s on production
a
No, if you're just adding a field, your data will be safe. The CLI will also warn you for destructive changes, so you have nothing to worry about.
m
@agartha thank you. For default value is
@migrationValue("test")
?
a
@migrationValue(value: "test")
Only needed if the new field is required
m
@agartha can I create the unique string field, which will be not required, but unique if presents?
a
I'm not sure if unique fields need to be required, but you can easily test that
Update: just tested it. Unique fields don't need to be required
m
thank you
👍🏻 1