Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: ldap schema to prod (#7454)

Danny Xud176bb69eaf2
diff --git a/backend/migrator/migration/dev/20230808000000##idp_type_ldap.sql b/backend/migrator/migration/prod/2.6/0006##idp_type_ldap.sql
similarity index 100%
rename from backend/migrator/migration/dev/20230808000000##idp_type_ldap.sql
rename to backend/migrator/migration/prod/2.6/0006##idp_type_ldap.sql
diff --git a/backend/migrator/migration/prod/LATEST.sql b/backend/migrator/migration/prod/LATEST.sql
index 712c8111ca..47fd39721b 100644
--- a/backend/migrator/migration/prod/LATEST.sql
+++ b/backend/migrator/migration/prod/LATEST.sql
@@ -19,7 +19,7 @@ CREATE TABLE idp (
resource_id TEXT NOT NULL,
name TEXT NOT NULL,
domain TEXT NOT NULL,
- type TEXT NOT NULL CONSTRAINT idp_type_check CHECK (type IN ('OAUTH2', 'OIDC')),
+ type TEXT NOT NULL CONSTRAINT idp_type_check CHECK (type IN ('OAUTH2', 'OIDC', 'LDAP')),
-- config stores the corresponding configuration of the IdP, which may vary depending on the type of the IdP.
config JSONB NOT NULL DEFAULT '{}'
);
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index fd130d4234..611a326021 100644
--- a/backend/migrator/migrator_test.go
+++ b/backend/migrator/migrator_test.go
@@ -241,5 +241,5 @@ func TestMigrationCompatibility(t *testing.T) {
func TestGetCutoffVersion(t *testing.T) {
releaseVersion, err := getProdCutoffVersion()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("2.6.5"), releaseVersion)
+ require.Equal(t, semver.MustParse("2.6.6"), releaseVersion)
}