nebula icon indicating copy to clipboard operation
nebula copied to clipboard

Cannot add a deleted attribute to tag or edge

Open jerryHo123 opened this issue 2 years ago • 2 comments

Enviroment: nebula-core:3.3.0 nebula-studio:3.6.2

Process Accidentally delete a tag or edge attribute, and when you want to add it again, you will be prompted [-1005:Schema existed before!]

jerryHo123 avatar May 05 '23 07:05 jerryHo123

By Deleting attribute/property do you mean tag/edge type ALTER (i.e. deleting prop from a tag)?

If so add it again should be TAG/EDGE TYPE ALTER rather than TAG/EDGE CREATE.

ref:

  • https://docs.nebula-graph.com.cn/3.4.1/3.ngql-guide/10.tag-statements/3.alter-tag/
  • https://docs.nebula-graph.io/3.4.1/3.ngql-guide/10.tag-statements/3.alter-tag/

wey-gu avatar May 06 '23 06:05 wey-gu

By Deleting attribute/property do you mean tag/edge type ALTER (i.e. deleting prop from a tag)?

If so add it again should be TAG/EDGE TYPE ALTER rather than TAG/EDGE CREATE.

ref:

  • https://docs.nebula-graph.com.cn/3.4.1/3.ngql-guide/10.tag-statements/3.alter-tag/
  • https://docs.nebula-graph.io/3.4.1/3.ngql-guide/10.tag-statements/3.alter-tag/

I see “The property name must be unique in a tag. If you add a property with the same name as an existing property or a dropped property, the operation fails.” in the https://docs.nebula-graph.io/3.4.1/3.ngql-guide/10.tag-statements/3.alter-tag/ .This is my need.Can you solve this problem in the next version iteration? I think it is very necessary.

jerryHo123 avatar May 06 '23 07:05 jerryHo123