diff --git a/docs/conf.py b/docs/conf.py index 93800eee..888c93d0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,11 +18,11 @@ # -- Project information ----------------------------------------------------- project = 'Gokapi Documentation' -copyright = '2021, Marc Ole Bulling' +copyright = '2024, Marc Ole Bulling' author = 'Marc Ole Bulling' # The full version, including alpha/beta/rc tags -release = '1.2.1' +release = '1.8.0' # -- General configuration --------------------------------------------------- diff --git a/docs/requirements.txt b/docs/requirements.txt index 3f775f1c..9a111439 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,3 @@ -sphinx==5.3.0 -sphinx_rtd_theme==1.1.1 -readthedocs-sphinx-search==0.1.1 +sphinx==7.2.6 +sphinx_rtd_theme==2.0.0 +readthedocs-sphinx-search==0.3.2 diff --git a/internal/configuration/database/Database_test.go b/internal/configuration/database/Database_test.go index caa7e04f..d687b795 100644 --- a/internal/configuration/database/Database_test.go +++ b/internal/configuration/database/Database_test.go @@ -182,6 +182,18 @@ func TestUploadDefaults(t *testing.T) { test.IsEqualBool(t, defaults.UnlimitedTime, true) } +func TestColumnExists(t *testing.T) { + exists, err := ColumnExists("invalid", "invalid") + test.IsEqualBool(t, exists, false) + test.IsNil(t, err) + exists, err = ColumnExists("FileMetaData", "invalid") + test.IsEqualBool(t, exists, false) + test.IsNil(t, err) + exists, err = ColumnExists("FileMetaData", "ExpireAt") + test.IsEqualBool(t, exists, true) + test.IsNil(t, err) +} + func TestGarbageCollectionUploads(t *testing.T) { orgiginalFunc := currentTime currentTime = func() time.Time {