diff options
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -12,9 +12,8 @@ pub fn init(conn: &mut Connection) -> Result<()> { info!("Initializing db..."); conn.execute(" BEGIN; - CREATE TABLE users (username TEXT, - salt TEXT, - passwd TEXT); + CREATE TABLE IF NOT EXISTS users + (username TEXT, salt TEXT, passwd TEXT); COMMIT; ").unwrap(); } |