Server API v1 #1
@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE tasks;
|
7
server/migrations/2024-05-03-015925_create_tasks/up.sql
Normal file
7
server/migrations/2024-05-03-015925_create_tasks/up.sql
Normal file
@ -0,0 +1,7 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE IF NOT EXISTS tasks (
|
||||
id UUID PRIMARY KEY,
|
||||
title TEXT NOT NULL,
|
||||
description TEXT NOT NULL,
|
||||
complete BOOLEAN NOT NULL DEFAULT FALSE
|
||||
);
|
@ -25,7 +25,7 @@ async fn main() -> std::io::Result<()> {
|
||||
if let Ok(env_port) = env_port.parse::<u16>() {
|
||||
port = env_port;
|
||||
} else {
|
||||
util::warn_println("Failed to parse PORT env variable using default value.");
|
||||
util::warn_println("Failed to parse PORT env variable; using default value.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user