Hi Mihai,

you can try with two statements:

create property V_Notification.isRead boolean

alter property V_Notification.isRead default false

See also http://orientdb.com/docs/2.1/SQL-Alter-Property.html

Thanks

Luigi


2015-09-16 11:52 GMT+02:00 Mihai Ocneanu <[email protected]>:

> In the documentation, here
> <http://orientdb.com/docs/2.1/SQL-Create-Property.html> it says we can
> specify default values for properties. There aren't a lot of examples,
> though.
>
> When I try to run
>
>  create property V_Notification.isRead boolean default false
>
>
> it gives me :
>
> java.lang.IllegalArgumentException: No enum constant
> com.orientechnologies.orient.core.metadata.schema.OType.DEFAULT
>
> What's the proper way to do this?
>
> Thanks!
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to