module CreateTablePkgrequests
import SearchLight.Migrations: create_table, column, primary_key, add_index, drop_table
function up()
create_table(:pkgrequests) do
[
primary_key()
column(:uuid, :string)
column(:org, :string)
]
end
add_index(:pkgrequests, :uuid)
add_index(:pkgrequests, :org)
end
function down()
drop_table(:pkgrequests)
end
end
"""
edit something like this
"""
SearchLight.Migration.status()
SearchLight.Migration.last_up()
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Please include the output of
julia> versioninfo()
Julia Version 1.6.2
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, haswell)
Environment:
JULIA_EDITOR = vim
JULIA_REVISE = auto
Describe the bug
SearchLight.Migration.last_up()
failsError stacktrace
To reproduce Create new MVC app without
dbadapter
Genie.newapp("demoapp")
add config
create new resource
add this to migrations file _create_table_pkg....
Expected behavior A clear and concise description of what you expected to happen.
Additional context Please include the output of
julia> versioninfo()
pkg> st