Class EnablePgTrgmExtensionMigration
java.lang.Object
db.migration.EnablePgTrgmExtensionMigration
- All Implemented Interfaces:
org.flywaydb.core.api.migration.JavaMigration
public class EnablePgTrgmExtensionMigration
extends Object
implements org.flywaydb.core.api.migration.JavaMigration
Enables the PostgreSQL
pg_trgm extension when the active database supports it.- Version:
- 1.0.8
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates this migration should execute outside a transaction.Returns the checksum for this migration.Returns the Flyway description for this migration.org.flywaydb.core.api.MigrationVersionReturns the Flyway version for this migration.voidmigrate(org.flywaydb.core.api.migration.Context context) Enables thepg_trgmextension for PostgreSQL databases.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flywaydb.core.api.migration.JavaMigration
getResolvedMigration, getType
-
Constructor Details
-
EnablePgTrgmExtensionMigration
public EnablePgTrgmExtensionMigration()
-
-
Method Details
-
getVersion
public org.flywaydb.core.api.MigrationVersion getVersion()Returns the Flyway version for this migration.- Specified by:
getVersionin interfaceorg.flywaydb.core.api.migration.JavaMigration
-
getDescription
Returns the Flyway description for this migration.- Specified by:
getDescriptionin interfaceorg.flywaydb.core.api.migration.JavaMigration
-
getChecksum
Returns the checksum for this migration.- Specified by:
getChecksumin interfaceorg.flywaydb.core.api.migration.JavaMigration
-
canExecuteInTransaction
public boolean canExecuteInTransaction()Indicates this migration should execute outside a transaction.- Specified by:
canExecuteInTransactionin interfaceorg.flywaydb.core.api.migration.JavaMigration
-
migrate
-