Merge branch 'fix-versions-table' into 'main'

fix(versions): add version info in database

See merge request wotsubo/PSBoardDataBase!1409
This commit is contained in:
Wataru Otsubo 2024-11-03 21:12:20 +01:00
commit 80c58b6af8
3 changed files with 6 additions and 0 deletions

View file

@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Exported notebooks are now deployed under notebooks url
### Fixed
- Converter version is filled during `create_database_from_exported_csvs`
## [0.2.0] - 2024-10-23
- Julia v1.11 was released and v1.10 is new LTS

View file

@ -62,6 +62,7 @@ function create_database_from_exported_csvs(
extra_100test_result_df = CSV.read(hundred_csv, DataFrame)
jathubs_table = CSV.read(jathubs_csv, DataFrame)
insert_version_info(db)
insert_qaqc_campaign_id(db)
insert_qaqc_positions(db, jathubs_table)

View file

@ -10,6 +10,7 @@ function insert_version_info(db::SQLite.DB)
INSERT INTO versions VALUES (:converter)
""",
)
@info "converter version info" pkgversion(@__MODULE__) |> string
DBInterface.execute(stmt, (; converter = pkgversion(@__MODULE__) |> string))
nothing