瀏覽代碼

Amend database migration

Mark Rousskov 5 年之前
父節點
當前提交
f071db3cda
共有 2 個文件被更改,包括 2 次插入2 次删除
  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);
     }
 }