|
|
|
@ -13,7 +13,11 @@ enum _009_OpenGroupPermission: Migration {
|
|
|
|
static func migrate(_ db: GRDB.Database) throws {
|
|
|
|
static func migrate(_ db: GRDB.Database) throws {
|
|
|
|
try db.alter(table: OpenGroup.self) { t in
|
|
|
|
try db.alter(table: OpenGroup.self) { t in
|
|
|
|
t.add(.permissions, .text)
|
|
|
|
t.add(.permissions, .text)
|
|
|
|
.defaults(to: OpenGroup.Permission.all.rawValue)
|
|
|
|
.defaults(to: ""
|
|
|
|
|
|
|
|
.appending(OpenGroup.Permission.read.rawValue)
|
|
|
|
|
|
|
|
.appending(OpenGroup.Permission.write.rawValue)
|
|
|
|
|
|
|
|
.appending(OpenGroup.Permission.upload.rawValue)
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// When modifying OpenGroup behaviours we should always look to reset the `infoUpdates`
|
|
|
|
// When modifying OpenGroup behaviours we should always look to reset the `infoUpdates`
|
|
|
|
|