* refactor(schemas): add new sso_connector_id column to the users_sso_identities table
add new sso_connector_id column to the users_sso_identities table
* refactor(schemas): add new sso_connector_id row to the users_sso_identities table
add new sso_connector_id row to the users_sso_identities table
* fix(schemas): fix alteration script
fix alteration script
* fix(schemas): fix alteration script
fix alteration script
* feat(core): add single sign on authentication api (#4814)
* feat(core): add single sign on authentication api
add single sign on authentication api
* feat(core): finish up the single sign on authentication api
finish up the single sign on authentication api
* chore(core): fix typo
fix typo
* test(core): add ut for getSsoAuthorizationUrl method
add ut for getSsoAuthorizationUrl method
* fix(core): fix the userSsoIdentities sql
fix the userSsoIdentities sql
* test(core): add unit tests
add unit tests
* fix(core): saml sso rebase fix
saml sso rebase fix
* fix(core): fix rebase issue
fix rebase issue
* feat(core): add sso email guard to interaction endpoint (#4838)
* feat(core): add sso email guard to interaction endpoint
add sso email guard to interaction endpoint
* fix(core): fix unit tests
fix unit tests
* chore(core): split files
split files
The alteration files are named in the format of <version>-<timestamp>-name.js where <timestamp> is the unix timestamp of when the alteration was created and name is the name of the alteration, version is this npm package's version number.
As for development, the version is "next" until the package is released.
Note that, you SHOULD NOT change the content of the alteration files after they are created. If you need to change the alteration, you should create a new alteration file with the new content.
Deploy unreleased alterations
To deploy scripts with the next version, run pnpm alteration deploy next. This is helpful if you want to test your alteration scripts.
When the alteration script is executed, the up function is called to alter the database schema.
The down function is designed for the future downgrade feature.
Example
exportconstup=async(connection)=>{awaitconnection.query(`
alter table "user"
add column "email" varchar(255) not null;
`);};exportconstdown=async(connection)=>{awaitconnection.query(`
alter table "user"
drop column "email";
`);};