Swiftpack.co - Package - vapor/fluent-mysql

Github

link
Stars: 31
Help us keep the lights on

Releases

3.0.0-rc.2.5 - May 16, 2018

New:

  • Added a MySQLEnum helper type for using nested enums on models. (#99, #103, #112)
// `FixedWidthInteger` backed enums are easiest to conform
enum PetType: Int, MySQLEnumType {
    case cat, dog
}

// Other enums require `reflectDecoded`
enum FavoriteTreat: String, MySQLEnumType {
    case bone = "b"
    case tuna = "t"
    static func reflectDecoded() -> (FavoriteTreat, FavoriteTreat) {
        return (.bone, .tuna)
    }
}

3.0.0-rc.2.2.1 - May 16, 2018

3.0.0-rc.2.2 - May 16, 2018

3.0.0-rc.2.4 - May 16, 2018

3.0.0-rc.2.3 - Mar 28, 2018

Fixed:

  • Foreign key and index names will now be hashed to avoid going over the 64 character limit.
  • Fixed an error with the index syntax.
  • Added support for BOOLEAN column definition. Bool will now use this type automatically.
  • Fixed an issue (in vapor/mysql) that would cause some queries to never complete.

Milestone: 3.0.0-rc.2.3