]> Untitled Git - lemmy.git/commit
Adding diesel enums for SortType and ListingType (#2808)
authorDessalines <dessalines@users.noreply.github.com>
Mon, 17 Apr 2023 19:19:51 +0000 (15:19 -0400)
committerGitHub <noreply@github.com>
Mon, 17 Apr 2023 19:19:51 +0000 (15:19 -0400)
commitd8722b6e91a79878001d968150687d25c5d6905e
tree5485571893e80ac0999f1b10c3dca481831536c3
parentf5511cfd2582e1044ad5ace5be1161ea9f467488
Adding diesel enums for SortType and ListingType (#2808)

* Adding diesel enums for SortType and ListingType

- Uses diesel-derive-enum.
- Adds diesel.toml , so we can again use the auto-generated schema.rs
- Fixes a lot of DB null issues and column ordering issues.
- Fixes #1136
- Also replaces RegistrationMode boilerplate.

* Fixing unit tests 1.

* Remove comment line.

* Before patch.

* Before again.

* Using patch file to fix diesel_ltree issue with diesel.toml

* Adding some yalc ignores

* Fixing RegistrationMode enums

* Adding woodpecker diesel schema check.

* Try adding openssl 1.

* Try using diesel-cli image 1

* Try using diesel-cli image 2

* Try using diesel-cli image 3

* Try using diesel-cli image 4

* Try using diesel-cli image 5

* Try using diesel-cli image 6

* Try using diesel-cli image 7

* Try using diesel-cli image 8

* Try using diesel-cli image 9

* Try using diesel-cli image 10

* Try using diesel-cli image 11

* Try using diesel-cli image 12

* Try using diesel-cli image 13
39 files changed:
.gitignore
.woodpecker.yml
Cargo.lock
Cargo.toml
api_tests/package.json
api_tests/src/shared.ts
api_tests/src/user.spec.ts
api_tests/yarn.lock
crates/api/src/community/transfer.rs
crates/api/src/local_user/change_password_after_reset.rs
crates/api_common/src/person.rs
crates/api_common/src/site.rs
crates/api_common/src/utils.rs
crates/api_crud/src/site/create.rs
crates/api_crud/src/site/mod.rs
crates/api_crud/src/site/update.rs
crates/api_crud/src/user/create.rs
crates/apub/src/api/mod.rs
crates/apub/src/http/mod.rs
crates/db_schema/Cargo.toml
crates/db_schema/src/diesel_ltree.patch [new file with mode: 0644]
crates/db_schema/src/impls/activity.rs
crates/db_schema/src/impls/local_site.rs
crates/db_schema/src/impls/moderator.rs
crates/db_schema/src/impls/person.rs
crates/db_schema/src/lib.rs
crates/db_schema/src/schema.rs
crates/db_schema/src/source/activity.rs
crates/db_schema/src/source/community.rs
crates/db_schema/src/source/instance.rs
crates/db_schema/src/source/local_site.rs
crates/db_schema/src/source/local_user.rs
crates/db_schema/src/source/moderator.rs
crates/db_schema/src/source/post.rs
crates/db_views_actor/src/person_block_view.rs
crates/routes/src/nodeinfo.rs
diesel.toml [new file with mode: 0644]
migrations/2023-04-14-175955_add_listingtype_sorttype_enums/down.sql [new file with mode: 0644]
migrations/2023-04-14-175955_add_listingtype_sorttype_enums/up.sql [new file with mode: 0644]