SearchLight.jl icon indicating copy to clipboard operation
SearchLight.jl copied to clipboard

SearchLight.Migration.up("CreateTableUsers") no method matching query(::String)

Open konstantinmamontov opened this issue 1 year ago • 1 comments

julia> using GenieAuthorisation julia> GenieAuthentication.install(@DIR) # underscores around DIR

all needed dirs and files created

julia> using SearchLight

julia> SearchLight.Migration.up("CreateTableUsers") ERROR: MethodError: no method matching query(::String) The function query exists, but no method is defined for this combination of argument types. Stacktrace: [1] upped_migrations() @ SearchLight.Migration C:\Users\KM.julia\packages\SearchLight\1tmyw\src\Migration.jl:364 [2] run_migration(migration::SearchLight.Migration.DatabaseMigration, direction::Symbol; force::Bool, context::Module) @ SearchLight.Migration C:\Users\KM.julia\packages\SearchLight\1tmyw\src\Migration.jl:282 [3] run_migration @ C:\Users\KM.julia\packages\SearchLight\1tmyw\src\Migration.jl:278 [inlined] [4] #up#13 @ C:\Users\KM.julia\packages\SearchLight\1tmyw\src\Migration.jl:187 [inlined] [5] last_up(migration_module_name::String) @ SearchLight.Migration C:\Users\KM.julia\packages\SearchLight\1tmyw\src\Migration.jl:185 [6] top-level scope @ REPL[7]:1

############## julia> versioninfo() Julia Version 1.11.1 Commit 8f5b7ca12a (2024-10-16 10:53 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: 16 × 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz WORD_SIZE: 64 LLVM: libLLVM-16.0.6 (ORCJIT, tigerlake) Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

pkg> st Status C:\Genie\Project.toml [c43c736e] Genie v5.31.1 [e115e502] GenieAuthentication v2.2.0 [af3f74f6] GenieAuthorisation v2.0.1 [a59fdf5c] GenieFramework v2.7.0 [a03496cd] PlotlyBase v0.8.19 ⌃ [2913bbd2] StatsBase v0.34.3

konstantinmamontov avatar Jan 01 '25 17:01 konstantinmamontov

@konstantinmamontov you need to add the SearchLight adapter (that is the "driver" that works with the specific database you're using): one of SearchLightSQLite, SearchLightPostgres, SearchLightMySQL, SearchLightOracle.

essenciary avatar Jan 03 '25 15:01 essenciary