mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-31 01:30:00 +00:00
1a4e35eb50
Address review comments Store Activitypub urls in database (fixes #808) Co-authored-by: Felix Ableitner <me@nutomic.com> Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/162 Co-Authored-By: nutomic <nutomic@noreply.yerbamate.ml> Co-Committed-By: nutomic <nutomic@noreply.yerbamate.ml>
13 lines
502 B
Bash
Executable file
13 lines
502 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
psql -U lemmy -d postgres -c "DROP DATABASE lemmy;"
|
|
psql -U lemmy -d postgres -c "CREATE DATABASE lemmy;"
|
|
|
|
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
|
# Commenting since this will overwrite schema.rs, which will break things now
|
|
# diesel migration run
|
|
# Integration tests only work on stable due to a bug in config-rs
|
|
# https://github.com/mehcode/config-rs/issues/158
|
|
RUST_BACKTRACE=1 RUST_TEST_THREADS=1 \
|
|
cargo +1.47.0 test --workspace --no-fail-fast
|