From 578eff30fb84deab63657e6039a5352987e4bf95 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Wed, 8 Apr 2020 21:58:37 +0200 Subject: [PATCH] Id of request has been incorrectly saved as string, this has dictated the returntype to the frontend. Now set from string to int. --- seasoned_api/src/database/schemas/setup.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seasoned_api/src/database/schemas/setup.sql b/seasoned_api/src/database/schemas/setup.sql index 015d356..0dfc9c6 100644 --- a/seasoned_api/src/database/schemas/setup.sql +++ b/seasoned_api/src/database/schemas/setup.sql @@ -31,7 +31,7 @@ CREATE TABLE IF NOT EXISTS search_history ( ); CREATE TABLE IF NOT EXISTS requests( - id TEXT, + id NUMBER, title TEXT, year NUMBER, poster_path TEXT DEFAULT NULL,