Change memory with innoDB for all tables engine
This commit is contained in:
parent
3a977045bb
commit
7d54ee50e1
|
|
@ -338,7 +338,8 @@ async fn initialize_database() {
|
||||||
String::from("0.0"),
|
String::from("0.0"),
|
||||||
String::from("0.0"),
|
String::from("0.0"),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
@ -410,7 +411,8 @@ async fn initialize_database() {
|
||||||
String::from("0"),
|
String::from("0"),
|
||||||
String::from("5days angle"),
|
String::from("5days angle"),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
@ -457,7 +459,8 @@ async fn initialize_database() {
|
||||||
("MXN", "double", None),
|
("MXN", "double", None),
|
||||||
("NOK", "double", None),
|
("NOK", "double", None),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
@ -491,7 +494,8 @@ async fn initialize_database() {
|
||||||
("date", "date", None),
|
("date", "date", None),
|
||||||
("value", "char(10)", None),
|
("value", "char(10)", None),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
@ -523,7 +527,8 @@ async fn initialize_database() {
|
||||||
("id", "integer", Some("PK, AI")),
|
("id", "integer", Some("PK, AI")),
|
||||||
("decision", "char(11)", None),
|
("decision", "char(11)", None),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
let initial_columns = vec!["decision"];
|
let initial_columns = vec!["decision"];
|
||||||
let initial_values = vec![String::from("-")];
|
let initial_values = vec![String::from("-")];
|
||||||
|
|
@ -657,7 +662,8 @@ async fn initialize_database() {
|
||||||
("opinion", "char(5)", None),
|
("opinion", "char(5)", None),
|
||||||
("weight", "double", None),
|
("weight", "double", None),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
@ -792,7 +798,8 @@ async fn initialize_database() {
|
||||||
("free", "decimal(16,8)", None),
|
("free", "decimal(16,8)", None),
|
||||||
("locked", "decimal(16,8)", None),
|
("locked", "decimal(16,8)", None),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
@ -868,7 +875,8 @@ async fn initialize_database() {
|
||||||
("free", "decimal(16,8)", None),
|
("free", "decimal(16,8)", None),
|
||||||
("locked", "decimal(16,8)", None),
|
("locked", "decimal(16,8)", None),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
@ -1022,7 +1030,8 @@ async fn initialize_database() {
|
||||||
String::from("0.0"),
|
String::from("0.0"),
|
||||||
String::from("0"),
|
String::from("0"),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
@ -1066,7 +1075,8 @@ async fn initialize_database() {
|
||||||
("maximum_profit_percent", "double", None),
|
("maximum_profit_percent", "double", None),
|
||||||
("registerer", "smallint", Some("UN")),
|
("registerer", "smallint", Some("UN")),
|
||||||
];
|
];
|
||||||
let table_condition = Some("ENGINE = MEMORY");
|
// let table_condition = Some("ENGINE = MEMORY");
|
||||||
|
let table_condition = None;
|
||||||
|
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user