Remove Property Custom Fields

19 views
Skip to first unread message

Mike Duffey

unread,
Aug 16, 2016, 3:25:33 PM8/16/16
to OrientDB
I have been unable to locate documentation on how to remove a custom property from a class field. Is there an SQL statement or other method to remove a property customField?

Thanks,
Mike

Luigi Dell'Aquila

unread,
Aug 17, 2016, 2:59:19 AM8/17/16
to orient-...@googlegroups.com
Hi Mike

To remove a specific custom property you can set it to null:

ALTER PROPERTY Foo.bar custom baz=null

To remove all the properties you can use "custom clear":

ALTER PROPERTY Foo.bar custom clear

There is a regression with this last statement in v 2.2.7, but it's already fixed; the fix will be released with 2.2.8

Thanks

Luigi



--

---
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 orient-database+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages