forked from rongchao/epmet-cloud-rizhao
8 changed files with 79 additions and 8 deletions
@ -0,0 +1,15 @@ |
|||
//package com.epmet.config;
|
|||
//
|
|||
//import lombok.Data;
|
|||
//import org.springframework.boot.context.properties.ConfigurationProperties;
|
|||
//
|
|||
//@ConfigurationProperties(prefix = "spring.datasource.druid")
|
|||
//@Data
|
|||
//public class DatabaseProperties {
|
|||
//
|
|||
// private String driverClassName;
|
|||
// private String url;
|
|||
// private String username;
|
|||
// private String password;
|
|||
//
|
|||
//}
|
@ -0,0 +1,29 @@ |
|||
//package com.epmet.config;
|
|||
//
|
|||
//import org.flywaydb.core.Flyway;
|
|||
//import org.springframework.beans.factory.annotation.Autowired;
|
|||
//
|
|||
//import javax.annotation.PostConstruct;
|
|||
//
|
|||
///**
|
|||
// * 数据库迁移配置
|
|||
// */
|
|||
//@Configuration
|
|||
//public class DbMigrationConfig {
|
|||
//
|
|||
// @Autowired
|
|||
// private DatabaseProperties databaseProperties;
|
|||
//
|
|||
// @PostConstruct
|
|||
// public void migrate() {
|
|||
// Flyway flyway = Flyway.configure().dataSource(
|
|||
// databaseProperties.getUrl(),
|
|||
// databaseProperties.getUsername(),
|
|||
// databaseProperties.getPassword())
|
|||
// .baselineOnMigrate(true)
|
|||
// .load();
|
|||
//
|
|||
// flyway.migrate();
|
|||
// }
|
|||
//
|
|||
//}
|
@ -0,0 +1,4 @@ |
|||
-- CREATE TABLE epmet_gov_access.device_t ( |
|||
-- device_id bigint(11) primary KEY auto_increment, |
|||
-- device_name varchar(20) NOT NULL |
|||
-- ) |
Loading…
Reference in new issue