lemmy/crates
dullbananas 6b1b29419d
Add custom migration runner, forbid some diesel migration commands, fix old migrations (#4673)
* Update schema.rs

* rename

* stuff

* finish new implementation of schema_setup::run (not including revert, test, etc.)

* fmt

* refactor

* fix sql

* migriation run command

* use trigger on migrations table

* add Options with disable_migrations field for test

* rename to enable_forbid_diesel_cli_trigger

* fix

* fix merge

* diff_checker (partial)

* Revert "diff_checker (partial)"

This reverts commit 6709882e14.

* Revert "Revert "diff_checker (partial)""

This reverts commit d4bdda5d11.

* diff check

* improve schema diff

* timestamp replacement

* ignore column order

* remove fedi_name default

* stuff

* improve diff

* stuff

* attempt parallel pg_dump

* attempt 2

* Revert "attempt 2"

This reverts commit a909d2d643.

* Revert "attempt parallel pg_dump"

This reverts commit 592a127954.

* improve diff check

* finish fixing migrations

* stuff

* use advisory lock

* stuff

* Update lib.rs

* fmt

* fmt

* clippy

* Update diff_check.rs

* Update .woodpecker.yml

* Update lib.rs

* Update lib.rs

* Update lib.rs

* Update .woodpecker.yml

* Update .woodpecker.yml

* Update lib.rs

* re-run ci

* fmt

* fmt

* Update .woodpecker.yml

* Update .woodpecker.yml

* create separate database in ci

* Update .woodpecker.yml

* Update .woodpecker.yml

* Update .woodpecker.yml

* Update .woodpecker.yml

* try to fix env var

* Update diff_check.rs

* Remove condition that's not needed anymore

* clippy

* exclude views and fast tables

* revert some migration changes

* fix

* fmt

* re-attempt checking character after skipped trigger name, and make code less confusing

* fmt

* fix

* rerun ci

* rerun ci

* fix strip_prefix order

* fix weird big Cargo.lock change by running `git checkout upstream/main Cargo.lock` then letting it auto update again

* fix

* remove installation commands that were removed in main branch

* Revert "remove installation commands that were removed in main branch"

This reverts commit fd65234a76.

* move create_database_user woodpecker step to make diff less weird

* fix clippy

* Make diff check work just like before

* Move new migrations to the end

* Revert changes to old migrations

* don't assume that migrations are already sorted

* retry CI

* fix merge

* find migrations dir in debug mode using CARGO_MANIFEST_DIR variable instead of current working directory

* always use embedded migrations

* improve doc comments for migration subcommand

* clippy fix

* move cfg(test) attribute to diff_check.rs

* copy `o` variable instead of calling `o` function

* use chrono::TimeDelta Display implementation to show migration duration
2025-01-08 11:07:32 +01:00
..
api Adding combined person content and person saved tables. (#5251) 2025-01-05 12:48:57 -05:00
api_common Remove unused param Create/EditSite.enable_nsfw 2025-01-08 10:28:01 +01:00
api_crud Applying some clippy fixes. (#5292) 2025-01-01 12:47:21 -05:00
apub Adding combined person content and person saved tables. (#5251) 2025-01-05 12:48:57 -05:00
db_perf Upgrading diesel and a few other deps. (#5203) 2024-11-18 10:23:02 -07:00
db_schema Add custom migration runner, forbid some diesel migration commands, fix old migrations (#4673) 2025-01-08 11:07:32 +01:00
db_views Adding combined person content and person saved tables. (#5251) 2025-01-05 12:48:57 -05:00
db_views_actor Shorten "options" variable name (#5285) 2025-01-01 12:52:20 -05:00
db_views_moderator Running cargo-features-manager prune. (#5274) 2024-12-20 23:20:16 +01:00
federate Running cargo-features-manager prune. (#5274) 2024-12-20 23:20:16 +01:00
routes refactor: avoid using format! when String creation is unnecessary (#5268) 2024-12-19 15:42:01 -05:00
utils Add markdown-it-footnotes (#5303) 2025-01-07 13:16:30 -05:00