Skip to content
This repository was archived by the owner on Nov 20, 2021. It is now read-only.
This repository was archived by the owner on Nov 20, 2021. It is now read-only.

schema versioning #11

@ChrisRx

Description

@ChrisRx

There should be a way to version defined schema. This will be important to allow for writing automated migration scripts. This could be something added to the primary key of the struct:

type MyStruct struct {
    ID int `e2db:"id,v=1"`
}

where implicitly it is schema version 0, or it could be implicit to the types themselves based upon a deterministic hash of the fields. In either case the key structure will have to change to allow for the schema version to be inserted into the key (probably just after the table name).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions