From 7d8720ce100e3bafdb54c6e76d2b0c1e6b134bdb Mon Sep 17 00:00:00 2001 From: dullbananas Date: Thu, 28 Dec 2023 19:31:21 -0700 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8308d0b03..9d2587738 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -163,6 +163,11 @@ steps: DATABASE_URL: postgres://lemmy:password@database:5432/lemmy commands: - diesel migration run + # Make sure that the migration works both with and without the `r` schema + - diesel migration redo + # Run replaceable_schema.sql twice, which fails on the 2nd time if `DROP SCHEMA IF EXISTS r CASCADE` drops the wrong things + - apt update && apt install -y postgresql-client + - psql -f replaceable_schema.sql - psql -f replaceable_schema.sql - diesel migration redo when: *slow_check_paths