Skip to content

Commit 9f5963b

Browse files
author
ed
committed
ALTER TABLE ADD COLUMN IF NOT grammar not supported by druid. add #smartAddColumn
1 parent de86c12 commit 9f5963b

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/test/java/io/github/gaoxingliang/dbupgrader/DbUpgradeExample.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package io.github.gaoxingliang.dbupgrader;
22

33
import com.mysql.cj.jdbc.*;
4-
import io.github.gaoxingliang.dbupgrader.utils.*;
54
import org.junit.jupiter.api.*;
65

76
public class DbUpgradeExample {
@@ -14,7 +13,6 @@ public void test() throws Exception {
1413
dataSource.setUser("root");
1514
dataSource.setPassword("root123");
1615
dataSource.setConnectTimeout(3000);
17-
SqlHelperUtils.smartAddColumn(dataSource.getConnection(), "alter table db_upgrade_history add column if not exists gmt_create timestamp default current_timestamp");
1816

1917
// Configure the upgrade process
2018
UpgradeConfiguration configuration = UpgradeConfiguration.builder()

src/test/java/io/github/gaoxingliang/dbupgrader/Main.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)