Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database restructure #458

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4684f16
unify migrations
aumetra Dec 16, 2023
f99fc76
fix statements
aumetra Dec 19, 2023
452b73d
format and continue refactor
aumetra Jan 19, 2024
22dd2c4
add formatter
aumetra Jan 20, 2024
b3a1c5d
finish formatting
aumetra Jan 21, 2024
d6ae181
maintain names as constants
aumetra Jan 21, 2024
f5e26ea
structure
aumetra Jan 21, 2024
284d390
add activitypub table for accounts, link accounts and users via a pkf…
aumetra Jan 21, 2024
194e264
move cryptographic keys out
aumetra Jan 21, 2024
70943b9
rename to account_type
aumetra Jan 21, 2024
224ae91
remove keys from accounts table
aumetra Jan 21, 2024
0b5f5f3
add shutdown log
aumetra Jan 21, 2024
5dbf813
update benchmark
aumetra Jan 21, 2024
45081d9
rename constraints, move queries around
aumetra Jan 21, 2024
a7388b0
update schema
aumetra Mar 9, 2024
8baef20
add diesel-cli-ext to the flake
aumetra Jun 1, 2024
3144db6
remove blurhash
aumetra Jun 1, 2024
df95bf9
refactor unique constraint positions
aumetra Jun 2, 2024
550db4a
store keys in der format
aumetra Jun 2, 2024
8cfb169
add comment
aumetra Jun 2, 2024
ecb04f7
add domain table
aumetra Jun 4, 2024
5955566
add fk constraint
aumetra Jun 4, 2024
a1190d4
add protocol marker
aumetra Jun 4, 2024
014ac58
make roles an own table
aumetra Jun 4, 2024
9f641df
add unique constraint
aumetra Jun 4, 2024
1e58c71
use standard conformant syntax
aumetra Jun 4, 2024
aeb1028
up
aumetra Jun 12, 2024
d694cae
Merge branch 'main' into aumetra/db-restructure
aumetra Jul 12, 2024
91b89eb
up
aumetra Jul 12, 2024
4a93801
Merge branch 'main' into aumetra/db-restructure
aumetra Nov 5, 2024
ea4c685
fix compile issue and warnings
aumetra Nov 5, 2024
d704ef3
move sensitive boolean to individual media attachments
aumetra Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
324 changes: 162 additions & 162 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ diesel = { version = "2.2.4", default-features = false, features = [
"32-column-tables",
"with-deprecated",
] }
diesel-async = { version = "0.5.0", features = [
diesel-async = { version = "0.5.1", features = [
"async-connection-wrapper",
"bb8",
"postgres",
Expand Down
4 changes: 2 additions & 2 deletions crates/kitsune-activitypub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ kitsune-util = { workspace = true }
kitsune-wasm-mrf = { workspace = true }
mime = "0.3.17"
mime_guess = { version = "2.0.5", default-features = false }
serde = "1.0.213"
serde = "1.0.214"
sha2 = "0.10.8"
sonic-rs = { workspace = true }
speedy-uuid = { workspace = true }
tracing = "0.1.40"
triomphe = { workspace = true }
typed-builder = "0.20.0"
url = "2.5.2"
url = "2.5.3"

[target.'cfg(not(target_env = "msvc"))'.dependencies]
sha2 = { version = "0.10.8", features = ["asm"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/kitsune-cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum_dispatch = "0.3.13"
fred = { workspace = true }
kitsune-error = { workspace = true }
moka = { workspace = true }
serde = "1.0.213"
serde = "1.0.214"
sonic-rs = { workspace = true }
tracing = "0.1.40"
triomphe = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/kitsune-captcha/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum_dispatch = "0.3.13"
http = "1.1.0"
kitsune-error = { workspace = true }
kitsune-http-client = { workspace = true }
serde = { version = "1.0.213", features = ["derive"] }
serde = { version = "1.0.214", features = ["derive"] }
serde_urlencoded = "0.7.1"
sonic-rs = { workspace = true }
strum = { version = "0.26.3", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/kitsune-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license.workspace = true
eyre = "0.6.12"
human-size = { version = "0.4.3", features = ["serde"] }
isolang = { version = "2.4.0", features = ["serde"] }
serde = { version = "1.0.213", features = ["derive"] }
serde = { version = "1.0.214", features = ["derive"] }
smol_str = { version = "0.3.2", features = ["serde"] }
tokio = { workspace = true, features = ["fs"] }
toml = { version = "0.8.19", default-features = false, features = ["parse"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/kitsune-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git-version = "0.3.9"
kitsune-db = { workspace = true }
kitsune-error = { workspace = true }
paste = "1.0.15"
serde = { version = "1.0.213", features = ["derive"] }
serde = { version = "1.0.214", features = ["derive"] }
triomphe = { workspace = true }
typed-builder = "0.20.0"
unsize = "1.1.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/kitsune-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ kitsune-language = { workspace = true }
kitsune-type = { workspace = true }
num-derive = "0.4.2"
num-traits = "0.2.19"
rustls = { version = "0.23.15", default-features = false, features = [
rustls = { version = "0.23.16", default-features = false, features = [
"logging",
"ring",
"std",
"tls12",
] }
rustls-native-certs = "0.8.0"
serde = { version = "1.0.213", features = ["derive"] }
serde = { version = "1.0.214", features = ["derive"] }
sonic-rs = { workspace = true }
speedy-uuid = { workspace = true, features = ["diesel"] }
tokio = { workspace = true, features = ["rt"] }
Expand Down

This file was deleted.

198 changes: 0 additions & 198 deletions crates/kitsune-db/migrations/2023-05-19-192931_initial_tables/up.sql

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading