1
Fork 0

core: Rename link to meta_link_id

This commit is contained in:
Steffo 2024-11-15 02:14:04 +01:00
parent 84f7002338
commit 2ca4bb3662
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ CREATE TABLE meta_links (
CREATE TABLE meta_link_properties ( CREATE TABLE meta_link_properties (
id UUID DEFAULT gen_random_uuid(), id UUID DEFAULT gen_random_uuid(),
link UUID REFERENCES meta_links (id) NOT NULL, meta_link_id UUID REFERENCES meta_links (id) NOT NULL,
rel BPCHAR NOT NULL, rel BPCHAR NOT NULL,
value BPCHAR, value BPCHAR,

View file

@ -11,7 +11,7 @@ diesel::table! {
diesel::table! { diesel::table! {
meta_link_properties (id) { meta_link_properties (id) {
id -> Uuid, id -> Uuid,
link -> Uuid, meta_link_id -> Uuid,
rel -> Bpchar, rel -> Bpchar,
value -> Nullable<Bpchar>, value -> Nullable<Bpchar>,
} }
@ -36,7 +36,7 @@ diesel::table! {
} }
} }
diesel::joinable!(meta_link_properties -> meta_links (link)); diesel::joinable!(meta_link_properties -> meta_links (meta_link_id));
diesel::allow_tables_to_appear_in_same_query!( diesel::allow_tables_to_appear_in_same_query!(
meta_aliases, meta_aliases,