Update truncateAll.sql
This commit is contained in:
parent
bf302c3ebc
commit
cdc55dbdc9
@ -1,13 +1,23 @@
|
|||||||
|
/* Node data */
|
||||||
TRUNCATE _backup;
|
TRUNCATE _backup;
|
||||||
TRUNCATE buyorder;
|
TRUNCATE auditTransaction;
|
||||||
TRUNCATE cash;
|
TRUNCATE BuyOrder;
|
||||||
TRUNCATE inputflo;
|
TRUNCATE Cash;
|
||||||
TRUNCATE inputrupee;
|
TRUNCATE inputFLO;
|
||||||
TRUNCATE outputflo;
|
TRUNCATE inputRupee;
|
||||||
TRUNCATE outputrupee;
|
TRUNCATE outputFLO;
|
||||||
TRUNCATE request_log;
|
TRUNCATE outputRupee;
|
||||||
TRUNCATE sellorder;
|
TRUNCATE priceHistory;
|
||||||
TRUNCATE sessions;
|
TRUNCATE Request_Log;
|
||||||
TRUNCATE transactions;
|
TRUNCATE SellOrder;
|
||||||
TRUNCATE users;
|
TRUNCATE Sessions;
|
||||||
TRUNCATE vault;
|
TRUNCATE Tags;
|
||||||
|
TRUNCATE Transactions;
|
||||||
|
TRUNCATE Vault;
|
||||||
|
TRUNCATE Users;
|
||||||
|
|
||||||
|
/* Blockchain data */
|
||||||
|
TRUNCATE lastTx;
|
||||||
|
TRUNCATE nodeList;
|
||||||
|
TRUNCATE trustedList;
|
||||||
|
TRUNCATE TagList;
|
||||||
@ -13,7 +13,7 @@ function createSchema() {
|
|||||||
let txQueries = data.split(';');
|
let txQueries = data.split(';');
|
||||||
txQueries.pop();
|
txQueries.pop();
|
||||||
txQueries = txQueries.map(q => q.trim().replace(/\n/g, ' '));
|
txQueries = txQueries.map(q => q.trim().replace(/\n/g, ' '));
|
||||||
console.log(txQueries);
|
//console.log(txQueries);
|
||||||
DB.transaction(txQueries).then(_ => {
|
DB.transaction(txQueries).then(_ => {
|
||||||
console.log('SQL Schema created successfully!');
|
console.log('SQL Schema created successfully!');
|
||||||
resolve(true);
|
resolve(true);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user