From 2ca4bb3662f3c9d1117736b371afe20626073e2f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 15 Nov 2024 02:14:04 +0100 Subject: [PATCH] `core`: Rename `link` to `meta_link_id` --- acrate-core/migrations/2024-11-14-031744_meta/up.sql | 2 +- acrate-core/src/schema.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,