From 68d64547341d266cfbbc28fc1748839afaa2ac2e Mon Sep 17 00:00:00 2001 From: Michal <86935712+Fluffy-Bean@users.noreply.github.com> Date: Thu, 17 Nov 2022 12:44:16 +0000 Subject: [PATCH] Updated Manual install (markdown) --- Manual-install.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Manual-install.md b/Manual-install.md index 2a8e2b1..e37422e 100644 --- a/Manual-install.md +++ b/Manual-install.md @@ -79,11 +79,11 @@ You will next need to setup the following tables: ## Images ``` CREATE TABLE images ( - id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, - imagename VARCHAR(50) UNIQUE, + id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, + imagename VARCHAR(255) UNIQUE, alt TEXT, tags TEXT, - author VARCHAR(50), + author VARCHAR(50) NOT NULL, last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, upload_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); @@ -92,11 +92,11 @@ CREATE TABLE images ( ## Users ``` CREATE TABLE users ( - id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, + id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, username VARCHAR(50) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, pfp_path VARCHAR(50), - admin bool, + admin BOOLEAN DEFAULT FALSE, last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); @@ -105,7 +105,7 @@ CREATE TABLE users ( ## Tokens ``` CREATE TABLE tokens ( - id INT(11) AUTO_INCREMENT PRIMARY KEY, + id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, code VARCHAR(16) NOT NULL, used BOOLEAN NOT NULL DEFAULT FALSE, timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP @@ -115,9 +115,9 @@ CREATE TABLE tokens ( ## Logs ``` CREATE TABLE logs ( - id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, + id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, ipaddress VARCHAR(16) NOT NULL, - action TEXT, + action TEXT NOT NULL, time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); ``` @@ -125,7 +125,7 @@ CREATE TABLE logs ( ## Bans ``` CREATE TABLE bans ( - id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, + id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, ipaddress VARCHAR(16) NOT NULL, reason TEXT NOT NULL, time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, @@ -137,10 +137,10 @@ CREATE TABLE bans ( ## Groups ``` CREATE TABLE groups ( - id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, + id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, group_name VARCHAR(255) NOT NULL, image_list TEXT NOT NULL, - author VARCHAR(50), + author VARCHAR(50) NOT NULL, last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );