Migration code does not respect SEARCH_INDEX #661
Labels
No labels
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Plume/Plume#661
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Run
plm migration run
in a read-only directory, with theSEARCH_INDEX
environment variable pointing at a writable directory.plm migration run
will error out with:As far as I can tell this is because
up.sql
doesn't check theSEARCH_INDEX
variable, although it's not entirely obvious what the contents ofpath
passed in there is.For those playing at home, this can be mostly worked around by passing
--path
toplm
, pointing to the parent directory ofsearch_index
. This does require that your search index directory is calledsearch_index
, but if your search index is/path/to/search_index
thenplm migration run --path /path/to/
will correctly perform the migrations.