Skip to content

Commit

Permalink
fix: changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed May 24, 2024
1 parent d4967df commit 2c7a6c5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [7.1.0]
## [7.1.0] - 2024-05-24

- Adds implementation for a new method `getConfigFieldsInfo` to fetch the plugin config fields.
- Adds `null` state for `firstFactors` and `providers` by adding `is_first_factors_null` and `is_third_party_providers_null` fields in `tenant_configs` table

### Migration

```sql
ALTER TABLE tenant_configs ADD COLUMN IF NOT EXISTS is_first_factors_null BOOLEAN DEFAULT TRUE;
ALTER TABLE tenant_configs ADD COLUMN IF NOT EXISTS is_third_party_providers_null BOOLEAN DEFAULT TRUE;
ALTER TABLE tenant_configs ADD COLUMN is_first_factors_null BOOLEAN DEFAULT TRUE;
ALTER TABLE tenant_configs ADD COLUMN is_third_party_providers_null BOOLEAN DEFAULT TRUE;

ALTER TABLE tenant_configs ALTER COLUMN is_first_factors_null DROP DEFAULT;
ALTER TABLE tenant_configs ALTER COLUMN is_third_party_providers_null DROP DEFAULT;
Expand Down Expand Up @@ -223,6 +223,7 @@ CREATE INDEX app_id_to_user_id_user_id_index ON app_id_to_user_id (user_id);

```sql
-- helper stored procedures
DELIMITER //

CREATE PROCEDURE st_drop_all_fkeys()
BEGIN
Expand Down Expand Up @@ -279,7 +280,7 @@ CREATE INDEX app_id_to_user_id_user_id_index ON app_id_to_user_id (user_id);
END LOOP;

CLOSE dropCur;
END
END //

--

Expand Down Expand Up @@ -338,7 +339,7 @@ CREATE INDEX app_id_to_user_id_user_id_index ON app_id_to_user_id (user_id);
END LOOP;

CLOSE dropCur;
END
END //

--

Expand Down Expand Up @@ -397,7 +398,7 @@ CREATE INDEX app_id_to_user_id_user_id_index ON app_id_to_user_id (user_id);
END LOOP;

CLOSE dropCur;
END
END //

--

Expand Down Expand Up @@ -456,7 +457,7 @@ CREATE INDEX app_id_to_user_id_user_id_index ON app_id_to_user_id (user_id);
END LOOP;

CLOSE dropCur;
END
END //

--

Expand Down Expand Up @@ -488,8 +489,9 @@ CREATE INDEX app_id_to_user_id_user_id_index ON app_id_to_user_id (user_id);
execute add_column_sql;
SELECT 'Column Successfully Created!' INTO p_status_message;
END IF;
END
END //

DELIMITER ;
-- Drop constraints and indexes

CALL st_drop_all_fkeys();
Expand Down

0 comments on commit 2c7a6c5

Please sign in to comment.