GenieFramework / GenieFramework/SearchLight.jl
Fails to CreateTableUsers when used with GenieAuthentication: `ERROR: MethodError: no method matching query(::String)`
- Dominant language
- Julia
- Stars
- 149
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Following the setup instructions for GenieAuthentication, the moment I run the SearchLight migration, I get an error.
**Error stacktrace**
```
julia> SearchLight.Migration.up("CreateTableUsers")
ERROR: MethodError: no method matching query(::String)
Stacktrace:
[1] upped_migrations()
@ SearchLight.Migration ~/.julia/packages/SearchLight/B9d2o/src/Migration.jl:337
[2] run_migration(migration::SearchLight.Migration.DatabaseMigration, direction::Symbol; force::Bool)
@ SearchLight.Migration ~/.julia/packages/SearchLight/B9d2o/src/Migration.jl:279
[3] #up#15
@ ~/.julia/packages/SearchLight/B9d2o/src/Migration.jl:187 [inlined]
[4] up(migration_module_name::String)
@ SearchLight.Migration ~/.julia/packages/SearchLight/B9d2o/src/Migration.jl:186
[5] top-level scope
@ REPL[7]:1
```
**To reproduce**
```
Genie.newapp_mvc("something") # choose sqlite
GenieAuthentication.install(@__DIR__)
SearchLight.Migration.up("CreateTableUsers")
```
This happens independently of whether I restart julia between invocations of each command. I am using sqlite
**Expected behavior**
It should run without error.
**Additional context**
```
julia> versioninfo()
Julia Version 1.7.0-rc2
Commit f23fc0d27a (2021-10-20 12:45 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: DO-Premium-AMD
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, znver2)
Environment:
JULIA_REVISE = auto
(Moonshot) pkg> st
Project ...
Status `~/.../Project.toml`
[c43c736e] Genie v4.5.0
[e115e502] GenieAuthentication v1.1.0
[6d011eab] Inflector v1.0.1
[e6f89c97] LoggingExtras v0.4.7
[739be429] MbedTLS v1.0.3
[340e8cb6] SearchLight v2.0.1
[21a827c4] SearchLightSQLite v2.0.0
[ade2ca70] Dates
[56ddb016] Logging
```
All of this on a brand new julia environment.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.