OrmLite Migrations

OrmLite doesn’t contain any data migration solutions itself but you can read about different approaches taken in:

In addition to dropping and recreating table schemas, OrmLite also includes Modify Schema API’s, e.g. for adding/removing individual columns. There are additional APIs in the OrmLiteSchemaModifyApi class:

  • AlterTable
  • AddColumn
  • AlterColumn
  • ChangeColumnName
  • DropColumn
  • AddForeignKey
  • DropForeignKey
  • CreateIndex
  • DropIndex
1 Like