From 6a6941789fb3a380cf3ea7862d190a3757ae8814 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 27 Dec 2024 04:56:15 +0100 Subject: [PATCH] fix --- docker-compose.yml | 2 +- migrations/0000_users.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 55d789d..a84d603 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: environment: - "RUST_LOG=info" - "ROCKET_ADDRESS=0.0.0.0" - - "DATABASE_URL=postgres://user:pass@postgres/watchdogs" + - "DATABASE_URL=postgres://user:pass@postgres/pacco" postgres: image: timescale/timescaledb:latest-pg16 diff --git a/migrations/0000_users.sql b/migrations/0000_users.sql index 704a007..22cc046 100644 --- a/migrations/0000_users.sql +++ b/migrations/0000_users.sql @@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS user_session ( "user" varchar(255) NOT NULL, "created" timestamptz NOT NULL DEFAULT NOW(), "csrf" UUID NOT NULL DEFAULT gen_random_uuid(), - "name" varchar(255) + "name" varchar(255), kind session_kind NOT NULL DEFAULT 'user', FOREIGN KEY("user") REFERENCES users(username) );