mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Remove redundant modifiers
This commit is contained in:
parent
40d266ad26
commit
32c1c6ab75
2 changed files with 7 additions and 7 deletions
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue