You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support PostgreSQL Extensions in the Migration Engine #15629
The diffing of extensions is analogous to diffing of other schema elements (tables, enums, columns, etc.), but with the following important differences:
The migration engine will not issue DROP EXTENSION statements if an extension is installed but the corresponding declaration is missing.
It will use the IF NOT EXISTS option in order for the feature to be adopted smoothly, without breakage (the extension may already have been created manually by the user or database host).
CREATE EXTENSION missing extensions.
ALTER EXTENSION ... UPDATE TO ... to reach the necessary version, if a version argument was declared for the extension in the datasource.
ALTER EXTENSION ... SCHEMA ... to relocate extensions between schemas. For non-relocatable extensions, it will issue a DROP EXTENSION ... followed by a CREATE EXTENSION .....
None of the extension modifications can happen if the postgresqlExtensions preview feature is not enabled in the PSL.
Activity