Skip to content

Bug: Multiple SchemaUpdates (Rename) not possible #57

@Scorpion1091

Description

@Scorpion1091

In JsonDBTemplate.updateCollectionSchema the JasonWrite function renameKeyInJsonFile is called:
https://github.com/Jsondb/jsondb-core/blob/master/src/main/java/io/jsondb/JsonDBTemplate.java#L402

At this call the collection.values() are passed but not updated.

So if you have multiple renameOperations only the last one takes effect.

The renameKeyInJsonFile-Method should take the PathToCollectionFile instead of the collection.values() and only operate on the JsonFile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions