Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
konstantinmamontov opened this issue Jan 1, 2025 · 1 comment

Comments

@konstantinmamontov
Copy link

konstantinmamontov commented Jan 1, 2025

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

@essenciary
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants