Skip to content

Commit

Permalink
refactor: removed unneeded upgrade
Browse files Browse the repository at this point in the history
FossilOrigin-Name: a85bd4e32dcc0e9080768e32d2dad8953a6147e5e25c9df5e8bc2c752a1f5ef3
  • Loading branch information
thindil committed Oct 24, 2023
1 parent 335bef3 commit 33dac9e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/aliases.nim
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,6 @@ proc updateAliasesDb*(db; dbVersion: Natural): ResultCode {.gcsafe, sideEffect,
try:
if dbVersion < 3:
db.exec(query = sql(query = """ALTER TABLE aliases ADD output TEXT NOT NULL"""))
if dbVersion < 4:
db.exec(query = sql(query = """ALTER TABLE aliases ADD id INTEGER"""))
except DbError:
return showError(message = "Can't update table for the shell's aliases. Reason: ",
e = getCurrentException())
Expand Down

0 comments on commit 33dac9e

Please sign in to comment.