From 2ce1053bbc7d2aec6ae92cbb38a134899c6e963e Mon Sep 17 00:00:00 2001 From: Jonas L Date: Fri, 1 Jul 2022 19:13:31 +0200 Subject: [PATCH] chore(api): rename library model visibility field (#1933) --- api/libretime_api/storage/models/library.py | 2 +- api/schema.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/libretime_api/storage/models/library.py b/api/libretime_api/storage/models/library.py index cf8b3825e..422b0e7e2 100644 --- a/api/libretime_api/storage/models/library.py +++ b/api/libretime_api/storage/models/library.py @@ -10,7 +10,7 @@ class Library(models.Model): ) code = models.CharField(max_length=16, unique=True) description = models.CharField(max_length=255, blank=True, null=True) - visible = models.BooleanField( + enabled = models.BooleanField( blank=True, default=True, db_column="visibility", diff --git a/api/schema.yml b/api/schema.yml index 8f40d6398..a53b74f5e 100644 --- a/api/schema.yml +++ b/api/schema.yml @@ -6139,7 +6139,7 @@ components: type: string nullable: true maxLength: 255 - visible: + enabled: type: boolean required: - code @@ -6561,7 +6561,7 @@ components: type: string nullable: true maxLength: 255 - visible: + enabled: type: boolean PatchedListenerCount: type: object