Files
GRDB.swift/Tests/GRDBTests
Gwendal Roué 7bd1992e61 Fix ergonomics issue with the definition of compound primary key
If the user would forget the PrimaryKeyDefinition, the primary was not defined:

try db.create(table: "membership") { t in
    // WRONG: pk is unused
    t.primaryKey { pk in
        t.column("playerId", .integer)
        t.column("teamId", .text)
    }
}

The fix is to remove the PrimaryKeyDefinition:

try db.create(table: "membership") { t in
    t.primaryKey {
        t.column("playerId", .integer)
        t.column("teamId", .text)
    }
}
2022-11-27 14:09:25 +01:00
..
2022-09-06 08:25:21 +02:00
2020-09-06 13:57:16 +02:00
2020-09-06 13:57:16 +02:00
2022-09-09 09:50:25 +02:00
2020-09-06 13:57:16 +02:00
2020-09-06 13:57:16 +02:00
2022-01-19 00:10:42 +08:00
2020-09-06 13:57:16 +02:00
2022-11-06 16:02:36 +01:00
2022-01-23 12:24:34 +01:00
2022-08-21 21:22:34 +02:00
2022-08-21 21:22:34 +02:00
2019-05-19 13:55:38 +02:00
2022-11-06 16:02:36 +01:00
2022-11-06 16:02:36 +01:00
2021-03-21 13:33:49 +01:00
2022-01-19 00:10:42 +08:00