Skip to content

v0.2.3

Latest
Compare
Choose a tag to compare
@lastland lastland released this 10 Aug 07:04
· 59 commits to develop since this release

New Features

  • Scala-Forklift now supports a new type of migration: APIMigration, where you can use the syntax from slick-migration-api. You can find an example in example/migrations/src_migrations/main/scala/3.scala:
import slick.migration.api.TableMigration
import slick.migration.api.H2Dialect
import com.liyaos.forklift.slick.APIMigration
import datamodel.v2.schema.tables._

object M3 {
  implicit val dialect = new H2Dialect

  MyMigrations.migrations = MyMigrations.migrations :+ APIMigration( 3 )(
    TableMigration(Users).
      renameColumn(_.first, "firstname").
      renameColumn(_.last, "lastname"))
}

To learn more about slick-migration-api, please check https://github.com/nafg/slick-migration-api

Changes

  • Scala-Forklift is now released under the Apache 2.0 license. (#26)

Improvements

  • Remove the hardcoded imports in a DBIO migration template generated by mg new command (#22 by @kshepard).
  • Add a test for mg new command (ce327c3).
  • Add a test for applying migrations after successfully applying all the migrations and then delete the database (4374392, d59f2b6).