Remove drop accounts function.
This commit is contained in:
parent
3828a814b5
commit
bd65b01eb3
|
@ -209,17 +209,6 @@ pub fn init_accounts_table<P: consensus::Parameters>(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn drop_accounts_table<P: consensus::Parameters>(
|
||||
wdb: &WalletDb<P>,
|
||||
) -> Result<(), SqliteClientError> {
|
||||
wdb.conn.execute_batch(
|
||||
"PRAGMA foreign_keys = OFF; DROP TABLE accounts; PRAGMA foreign_keys = ON;"
|
||||
)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
/// Initialises the data database with the given block.
|
||||
///
|
||||
/// This enables a newly-created database to be immediately-usable, without needing to
|
||||
|
|
Loading…
Reference in New Issue