Scala-Forklift v0.3.2 Release Notes

Release Date: 2020-04-24 // almost 3 years ago

Previous changes from v0.2.3

  • ๐Ÿ†• 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.TableMigrationimport slick.migration.api.H2Dialectimport com.liyaos.forklift.slick.APIMigrationimport datamodel.v2.schema.tables._object M3 { implicit val dialect = new H2DialectMyMigrations.migrations = MyMigrations.migrations :+ APIMigration( 3 )( TableMigration(Users). renameColumn(_.first, "firstname"). renameColumn(_.last, "lastname")) }

    To learn more about slick-migration-api, please check

    ๐Ÿ”„ 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).