Skip to content

Figure out what to do about migrations, if anything. #89

@JakeWharton

Description

@JakeWharton

Working:

  • You can currently define inserts, updates, and deletes in a file and use them for migrations.

Annoying:

  • Table creation generates a bunch of nonsense you might not need if the table is deleted/altered by later migrations
  • Table creation is restricted to one per file

Missing:

  • Detection of breaking changes in the schema and warning about it
  • Generation of migrations automatically when you use refactoring tools on the create table statements?

As we discussed, we could go as far as generating the onUpgrade switch automatically. We'd probably want to create something like .sqm files (for migration) which relax the one-table-per-file restriction and don't actually generate anything for them.

Lots to think about since this probably won't happen for a while.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions