Skip to content

Commit

Permalink
更新到1.1.2版本
Browse files Browse the repository at this point in the history
  • Loading branch information
18940818955 committed Dec 27, 2019
1 parent 26dabd5 commit e6bec16
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
5 changes: 4 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
= MySQL迁移工具
:toc: left
:version: 1.1.1
:version: 1.1.2
:sourcedir: mysql-migrate/src
:javadir: {sourcedir}/main/java
:testdir: {sourcedir}/test/java
Expand Down Expand Up @@ -35,6 +35,9 @@ include::{testdir}/cn/codeforfun/migrate/core/MigrateTest.java[]

== 更新日志

* 1.1.2
** fix-对比结构时忽略库名 大胃王 2019/12/23, 10:47 上午

* 1.1.1
** 优化jar包依赖 大胃王 2019/12/16, 3:45 下午

Expand Down
26 changes: 18 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ <h2 id="_使用方法">使用方法</h2>
<pre class="highlight"><code class="language-xml" data-lang="xml">&lt;dependency&gt;
&lt;groupId&gt;cn.codeforfun&lt;/groupId&gt;
&lt;artifactId&gt;mysql-migrate&lt;/artifactId&gt;
&lt;version&gt;1.1.1&lt;/version&gt;
&lt;version&gt;1.1.2&lt;/version&gt;
&lt;/dependency&gt;</code></pre>
</div>
</div>
Expand All @@ -513,19 +513,19 @@ <h2 id="_使用方法">使用方法</h2>
private static final String FROM_HOST = "localhost";
private static final String FROM_USERNAME = "root";
private static final String FROM_PASSWORD = "root";
private static final String FROM_TABLE = "test_db";
private static final String FROM_DB = "test_db";

private static final Integer TO_PORT = 3307;
private static final String TO_HOST = "localhost";
private static final String TO_USERNAME = "root";
private static final String TO_PASSWORD = "root";
private static final String TO_TABLE = "test_db";
private static final String TO_DB = "test_db_1";

@Test
@Ignore
public void diff() throws SQLException {
DatabaseInfo from = new DatabaseInfo(FROM_HOST, FROM_PORT, FROM_TABLE, FROM_USERNAME, FROM_PASSWORD);
DatabaseInfo to = new DatabaseInfo(TO_HOST, TO_PORT, TO_TABLE, TO_USERNAME, TO_PASSWORD);
DatabaseInfo from = new DatabaseInfo(FROM_HOST, FROM_PORT, FROM_USERNAME, FROM_PASSWORD, FROM_DB);
DatabaseInfo to = new DatabaseInfo(TO_HOST, TO_PORT, TO_USERNAME, TO_PASSWORD, TO_DB);
Migrate migrate = new Migrate().from(from).to(to);
DiffResult diffResult = migrate.diff();
List&lt;String&gt; sqlList = diffResult.getSqlList();
Expand All @@ -537,8 +537,8 @@ <h2 id="_使用方法">使用方法</h2>
@Test
@Ignore
public void update() throws SQLException {
DatabaseInfo from = new DatabaseInfo(FROM_HOST, FROM_PORT, FROM_TABLE, FROM_USERNAME, FROM_PASSWORD);
DatabaseInfo to = new DatabaseInfo(TO_HOST, TO_PORT, TO_TABLE, TO_USERNAME, TO_PASSWORD);
DatabaseInfo from = new DatabaseInfo(FROM_HOST, FROM_PORT, FROM_USERNAME, FROM_PASSWORD, FROM_DB);
DatabaseInfo to = new DatabaseInfo(TO_HOST, TO_PORT, TO_USERNAME, TO_PASSWORD, TO_DB);
Migrate migrate = new Migrate().from(from).to(to);
migrate.update();
}
Expand All @@ -554,6 +554,16 @@ <h2 id="_更新日志">更新日志</h2>
<div class="ulist">
<ul>
<li>
<p>1.1.2</p>
<div class="ulist">
<ul>
<li>
<p>fix-对比结构时忽略库名 大胃王 2019/12/23, 10:47 上午</p>
</li>
</ul>
</div>
</li>
<li>
<p>1.1.1</p>
<div class="ulist">
<ul>
Expand Down Expand Up @@ -680,7 +690,7 @@ <h2 id="_反馈和贡献">反馈和贡献</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2019-12-16 15:55:32 +0800
Last updated 2019-12-27 10:21:13 +0800
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion mysql-migrate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>cn.codeforfun</groupId>
<artifactId>mysql-migrate</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>lightweight-mysql-migrate-tools</description>
<url>https://github.com/qq253498229/mysql-migrate-tool</url>
Expand Down

0 comments on commit e6bec16

Please sign in to comment.