Create task table migration
This commit is contained in:
parent
ba1bddc72c
commit
9a637b888f
@ -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>() {
|
if let Ok(env_port) = env_port.parse::<u16>() {
|
||||||
port = env_port;
|
port = env_port;
|
||||||
} else {
|
} 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…
x
Reference in New Issue
Block a user