diff --git a/acrate-core/migrations/2024-11-14-031744_meta/up.sql b/acrate-core/migrations/2024-11-14-031744_meta/up.sql index 5eded6d..757b530 100644 --- a/acrate-core/migrations/2024-11-14-031744_meta/up.sql +++ b/acrate-core/migrations/2024-11-14-031744_meta/up.sql @@ -19,7 +19,7 @@ CREATE TABLE meta_links ( CREATE TABLE meta_link_properties ( 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, value BPCHAR, diff --git a/acrate-core/src/schema.rs b/acrate-core/src/schema.rs index f64b5f6..a11635a 100644 --- a/acrate-core/src/schema.rs +++ b/acrate-core/src/schema.rs @@ -11,7 +11,7 @@ diesel::table! { diesel::table! { meta_link_properties (id) { id -> Uuid, - link -> Uuid, + meta_link_id -> Uuid, rel -> Bpchar, value -> Nullable, } @@ -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!( meta_aliases,