From 13004094533ad0d9f2f4f510abcae06eba6f2a77 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Fri, 19 Apr 2024 12:22:38 +0530 Subject: [PATCH] fix: core db crash (#152) * fix: core db crash * fix: version * fix: version * fix: pr comments --- CHANGELOG.md | 4 ++++ build.gradle | 2 +- src/main/java/io/supertokens/pluginInterface/Storage.java | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73efa2e9..c95b4107 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [6.1.0] - 2024-04-17 + +- Adds `addTenantIdentifier` to the storage interface. + ## [6.0.0] - 2024-03-13 - Replace `TotpNotEnabledException` with `UnknownUserTotpIdException` diff --git a/build.gradle b/build.gradle index 72803d4c..2158e809 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java-library' } -version = "6.0.0" +version = "6.1.0" repositories { mavenCentral() diff --git a/src/main/java/io/supertokens/pluginInterface/Storage.java b/src/main/java/io/supertokens/pluginInterface/Storage.java index 51e28f57..68369617 100644 --- a/src/main/java/io/supertokens/pluginInterface/Storage.java +++ b/src/main/java/io/supertokens/pluginInterface/Storage.java @@ -25,6 +25,7 @@ import io.supertokens.pluginInterface.multitenancy.TenantIdentifier; import io.supertokens.pluginInterface.multitenancy.exceptions.TenantOrAppNotFoundException; +import java.util.List; import java.util.Set; public interface Storage { @@ -52,7 +53,7 @@ public interface Storage { void stopLogging(); // load tables and create connection pools - void initStorage(boolean shouldWait) throws DbInitException; + void initStorage(boolean shouldWait, List tenantIdentifiers) throws DbInitException; // used by the core to do transactions the right way. STORAGE_TYPE getType();