Remove redundant modifiers

This commit is contained in:
Justin Mazzocchi 2020-09-28 02:14:34 -07:00
parent 40d266ad26
commit 32c1c6ab75
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
2 changed files with 7 additions and 7 deletions

View file

@ -283,7 +283,7 @@ private extension ContentDatabase {
migrator.registerMigration("0.1.0") { db in
try db.create(table: "accountRecord") { t in
t.column("id", .text).indexed().notNull().primaryKey(onConflict: .replace)
t.column("id", .text).primaryKey(onConflict: .replace)
t.column("username", .text).notNull()
t.column("acct", .text).notNull()
t.column("displayName", .text).notNull()
@ -306,7 +306,7 @@ private extension ContentDatabase {
}
try db.create(table: "statusRecord") { t in
t.column("id", .text).indexed().notNull().primaryKey(onConflict: .replace)
t.column("id", .text).primaryKey(onConflict: .replace)
t.column("uri", .text).notNull()
t.column("createdAt", .datetime).notNull()
t.column("accountId", .text).notNull().references("accountRecord", column: "id")
@ -338,7 +338,7 @@ private extension ContentDatabase {
}
try db.create(table: "timeline") { t in
t.column("id", .text).indexed().notNull().primaryKey(onConflict: .replace)
t.column("id", .text).primaryKey(onConflict: .replace)
t.column("listTitle", .text).indexed().collate(.localizedCaseInsensitiveCompare)
}
@ -352,7 +352,7 @@ private extension ContentDatabase {
}
try db.create(table: "filter") { t in
t.column("id", .text).indexed().notNull().primaryKey(onConflict: .replace)
t.column("id", .text).primaryKey(onConflict: .replace)
t.column("phrase", .text).notNull()
t.column("context", .blob).notNull()
t.column("expiresAt", .date).indexed()

View file

@ -231,14 +231,14 @@ private extension IdentityDatabase {
migrator.registerMigration("0.1.0") { db in
try db.create(table: "instance", ifNotExists: true) { t in
t.column("uri", .text).notNull().primaryKey(onConflict: .replace)
t.column("uri", .text).primaryKey(onConflict: .replace)
t.column("streamingAPI", .text)
t.column("title", .text)
t.column("thumbnail", .text)
}
try db.create(table: "identityRecord", ifNotExists: true) { t in
t.column("id", .text).indexed().notNull().primaryKey(onConflict: .replace)
t.column("id", .text).primaryKey(onConflict: .replace)
t.column("url", .text).notNull()
t.column("authenticated", .boolean).notNull()
t.column("pending", .boolean).notNull()
@ -251,7 +251,7 @@ private extension IdentityDatabase {
}
try db.create(table: "account", ifNotExists: true) { t in
t.column("id", .text).notNull().primaryKey(onConflict: .replace)
t.column("id", .text).primaryKey(onConflict: .replace)
t.column("identityID", .text).notNull()
.references("identityRecord", column: "id", onDelete: .cascade)
t.column("username", .text).notNull()