mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
fix: type and sql for insert version
This commit is contained in:
parent
64056a89d8
commit
066e0d5e46
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
"""
|
||||
insert_version_info(db::SQLite.DB)
|
||||
|
||||
Insert version information of this software as string.
|
||||
"""
|
||||
function insert_version_info(db::SQLite.DB)
|
||||
stmt = DBInterface.prepare(
|
||||
db,
|
||||
|
@ -5,7 +10,7 @@ function insert_version_info(db::SQLite.DB)
|
|||
INSERT INTO versions VALUES (:converter)
|
||||
""",
|
||||
)
|
||||
DBInterface.execute(stmt, (; converter = pkgversion(@__MODULE__)))
|
||||
DBInterface.execute(stmt, (; converter = pkgversion(@__MODULE__) |> string))
|
||||
|
||||
nothing
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
CREATE TABLE versions (
|
||||
converter TEXT,
|
||||
converter TEXT
|
||||
);
|
||||
|
||||
CREATE TABLE ps_boards (
|
||||
|
|
Loading…
Add table
Reference in a new issue