From 84f7002338486760d9a7e1ea97201009fe03da74 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 15 Nov 2024 02:12:26 +0100 Subject: [PATCH] `core`: Make `link` not null --- acrate-core/migrations/2024-11-14-031744_meta/up.sql | 2 +- acrate-core/src/schema.rs | 2 +- 2 files changed, 2 insertions(+), 2 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 12a9fdf..5eded6d 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), + link 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 9f8c994..f64b5f6 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 -> Nullable, + link -> Uuid, rel -> Bpchar, value -> Nullable, }