From d276e71d3b6361368d67ae0847d2cb61cf117c10 Mon Sep 17 00:00:00 2001 From: Omar Zahid Date: Fri, 31 Oct 2025 07:28:26 +0800 Subject: [PATCH] Fixed column constraint --- app-todo-axum/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-todo-axum/src/main.rs b/app-todo-axum/src/main.rs index 28a36dd..fc93523 100644 --- a/app-todo-axum/src/main.rs +++ b/app-todo-axum/src/main.rs @@ -28,7 +28,7 @@ async fn main() { let _ = conn .execute( - "CREATE TABLE IF NOT EXISTS todos(task varchar non null)", + "CREATE TABLE IF NOT EXISTS todos(task varchar not null)", (), ) .await;