Class MigrationsProperties
java.lang.Object
ac.simons.neo4j.migrations.quarkus.runtime.MigrationsProperties
@ConfigRoot(prefix="org.neo4j",
name="migrations",
phase=RUN_TIME)
public class MigrationsProperties
extends Object
Shim between
MigrationsConfig
and the Smallrye configuration.- Since:
- 1.2.2
- Author:
- Michael J. Simons
-
Field Summary
Modifier and TypeFieldDescriptionboolean
If you're programming on Windows and working with people who are not (or vice-versa), you'll probably run into line-ending issues at some point.The database that should be migrated (Neo4j EE 4.0+ only).boolean
Set to false to disable migrations at start.An optional list of external locations that don't become part of the image.An alternative user to impersonate during migration.Username recorded as property by on the MIGRATED_TO relationship.The database that should be used for storing informations about migrations (Neo4j EE 4.0+ only).The transaction mode in use (Defaults to "per migration", meaning one script is run in one transaction).boolean
Validating helps you verify that the migrations applied to the database match the ones available locally and is on by default. -
Constructor Summary
-
Method Summary
-
Field Details
-
externalLocations
An optional list of external locations that don't become part of the image. Those locations can be changed during runtime in contrast toMigrationsBuildTimeProperties.locationsToScan
but can only be used for locations inside the filesystem. -
enabled
@ConfigItem(defaultValue="true") public boolean enabledSet to false to disable migrations at start. An instance ofMigrations
will still be provided to interested parties. -
transactionMode
The transaction mode in use (Defaults to "per migration", meaning one script is run in one transaction). -
database
The database that should be migrated (Neo4j EE 4.0+ only). Leave empty for using the default database. -
schemaDatabase
The database that should be used for storing informations about migrations (Neo4j EE 4.0+ only). Leave empty for using the default database. -
impersonatedUser
An alternative user to impersonate during migration. Might have higher privileges than the user connected, which will be dropped again after migration. Requires Neo4j EE 4.4+. Leave empty for using the connected user. -
installedBy
Username recorded as property by on the MIGRATED_TO relationship. -
validateOnMigrate
@ConfigItem(defaultValue="true") public boolean validateOnMigrateValidating helps you verify that the migrations applied to the database match the ones available locally and is on by default. -
autocrlf
@ConfigItem(defaultValue="false") public boolean autocrlfIf you're programming on Windows and working with people who are not (or vice-versa), you'll probably run into line-ending issues at some point. This is because Windows uses both a carriage-return character and a linefeed character for newlines in its files, whereas macOS and Linux systems use only the linefeed character. This is a subtle but incredibly annoying fact of cross-platform work; many editors on Windows silently replace existing LF-style line endings with CRLF, or insert both line-ending characters when the user hits the enter key. Neo4j migrations can handle this by auto-converting CRLF line endings into LF before computing checksums of a Cypher-based migration or applying it.
-
-
Constructor Details
-
MigrationsProperties
public MigrationsProperties()
-