Parcourir la source

Amend database migration

Mark Rousskov il y a 5 ans
Parent
commit
f071db3cda
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      src/db.rs
  2. 1 1
      src/main.rs

+ 1 - 1
src/db.rs

@@ -132,7 +132,7 @@ CREATE TABLE users (
     "ALTER TABLE notifications ADD COLUMN metadata TEXT;",
     "
 CREATE TABLE rustc_commits (
-    sha PRIMARY KEY,
+    sha TEXT PRIMARY KEY,
     parent_sha TEXT NOT NULL,
     time TIMESTAMP WITH TIME ZONE
 );

+ 1 - 1
src/main.rs

@@ -226,6 +226,6 @@ async fn main() {
         .unwrap_or(8000);
     let addr = ([0, 0, 0, 0], port).into();
     if let Err(e) = run_server(addr).await {
-        eprintln!("Failed to run server: {}", e);
+        eprintln!("Failed to run server: {:?}", e);
     }
 }