Skip to content

Upgrade function ordering #62

@lisaslyis

Description

@lisaslyis

upgradeDB function stores the upgrade callback functions with its version number as a key in javascript associative arrays.

But the ordering of key is not guaranteed to be preserved in javascript. (I'm not sure if the ordering is preserved in all browsers although it is not in javascript specification) so there is a possibility to apply modification to db in wrong order.

eg. create object-storeA in version1 and delete object-storeA in version2. (these should not be applied in reverse order)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions