Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]:add oceanbase oracle mode support #60

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

xxsc0529
Copy link

@xxsc0529 xxsc0529 commented Sep 24, 2024

[description]
The Oracle mode of OceanBase is supported close #59
[Test]
Manually package the oceanbase-related code under flyway-communtity-db-support and put it under the dependencies of the project
Project structure
image
`package com.oceanbase;

import org.flywaydb.core.Flyway;

public class FlywayTest {
public static void main(String[] args) {
Flyway flyway = Flyway.configure().dataSource("jdbc:oceanbase://127.0.0.1:2881/test", "root@oracle", "root").load();
// create flyway_schema_history table
flyway.baseline();
// Delete failed records in the flyway_schema_history table
flyway.repair();
// Perform a data migration
flyway.migrate();
}
}
`
V1_1__create_person_table.sql
create table person(id int not null, name varchar(20) not null);
V2_1__add_person_table.sql
insert into person (id,name) values (1,'xiaozhang');
insert into person (id,name) values (2,'xiaowang');
Test results
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]:add oceanbase oracle mode support
1 participant