lemmy/scripts
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
..
query_testing Adding hot_rank columns in place of function sorting. (#2952) 2023-06-08 16:15:15 -04:00
clear_db.sh make shebangs posix compliant (#2974) 2023-06-08 15:38:26 -04:00
compilation_benchmark.sh make shebangs posix compliant (#2974) 2023-06-08 15:38:26 -04:00
db-init.sh Align default DB password with documentation (#3068) 2023-06-13 22:23:07 +02:00
db_perf.sh Make scripts work in path that contains spaces (#4986) 2024-08-22 17:33:00 +02:00
dump_schema.sh Add custom migration runner, forbid some diesel migration commands, fix old migrations (#4673) 2025-01-08 11:07:32 +01:00
install.sh Moving from yarn to pnpm. (#4414) 2024-01-29 11:38:39 +01:00
lint.sh Make scripts work in path that contains spaces (#4986) 2024-08-22 17:33:00 +02:00
postgres_12_to_15_upgrade.sh Switch PostgreSQL container to use pgautoupgrade (#4892) 2024-07-17 09:59:21 +02:00
postgres_15_to_16_upgrade.sh Switch PostgreSQL container to use pgautoupgrade (#4892) 2024-07-17 09:59:21 +02:00
release.sh Make scripts work in path that contains spaces (#4986) 2024-08-22 17:33:00 +02:00
restore_db.sh make shebangs posix compliant (#2974) 2023-06-08 15:38:26 -04:00
sql_format_check.sh Make scripts work in path that contains spaces (#4986) 2024-08-22 17:33:00 +02:00
start_dev_db.sh Fix postgres connection options causing slow query speed. (#5150) 2024-11-06 10:58:40 -05:00
test-with-coverage.sh Make scripts work in path that contains spaces (#4986) 2024-08-22 17:33:00 +02:00
test.sh Implement private communities (#5076) 2024-11-07 05:49:05 -05:00
ts_bindings_check.sh Upgrading ts_rs to 10.0.0 (#5163) 2024-11-06 15:50:13 +01:00
update_config_defaults.sh Remove error-type feature from lemmy-utils (#4474) 2024-02-27 11:13:52 -05:00
update_translations.sh make shebangs posix compliant (#2974) 2023-06-08 15:38:26 -04:00
upgrade_deps.sh Upgrading lemmy-js-client version to 0.19.4 (#4787) 2024-06-06 20:44:36 -04:00