Java Code Examples for liquibase.database.core.MySQLDatabase#setLiquibaseSchemaName()
The following examples show how to use
liquibase.database.core.MySQLDatabase#setLiquibaseSchemaName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractPerconaChangeTest.java From liquibase-percona with Apache License 2.0 | 6 votes |
@BeforeEach public void setup() { System.setProperty(Configuration.LIQUIBASE_PASSWORD, "root"); database = new MySQLDatabase(); database.setLiquibaseSchemaName("testdb"); DatabaseConnection conn = new MockDatabaseConnection("jdbc:mysql://user@localhost:3306/testdb", "user@localhost"); database.setConnection(conn); JdbcExecutor executor = new JdbcExecutor(); executor.setDatabase(database); ExecutorService.getInstance().setExecutor(database, executor); PTOnlineSchemaChangeStatement.available = true; PTOnlineSchemaChangeStatement.perconaToolkitVersion = null; System.setProperty(Configuration.FAIL_IF_NO_PT, "false"); System.setProperty(Configuration.NO_ALTER_SQL_DRY_MODE, "false"); System.setProperty(Configuration.SKIP_CHANGES, ""); PerconaForeignKeyService.getInstance().disable(); setupChange(change); }
Example 2
Source File: PTOnlineSchemaChangeStatementTest.java From liquibase-percona with Apache License 2.0 | 5 votes |
@BeforeEach public void setup() { System.setProperty(Configuration.LIQUIBASE_PASSWORD, "root"); database = new MySQLDatabase(); database.setLiquibaseSchemaName("testdb"); DatabaseConnection conn = new MockDatabaseConnection("jdbc:mysql://user@localhost:3306/testdb", "user@localhost"); database.setConnection(conn); }