Updated Manual install (markdown)

Michal 2022-11-17 12:44:16 +00:00
parent 0ac9381785
commit 68d6454734

@ -79,11 +79,11 @@ You will next need to setup the following tables:
## Images ## Images
``` ```
CREATE TABLE images ( CREATE TABLE images (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
imagename VARCHAR(50) UNIQUE, imagename VARCHAR(255) UNIQUE,
alt TEXT, alt TEXT,
tags TEXT, tags TEXT,
author VARCHAR(50), author VARCHAR(50) NOT NULL,
last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
upload_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP upload_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
); );
@ -92,11 +92,11 @@ CREATE TABLE images (
## Users ## Users
``` ```
CREATE TABLE 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, username VARCHAR(50) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL,
pfp_path VARCHAR(50), pfp_path VARCHAR(50),
admin bool, admin BOOLEAN DEFAULT FALSE,
last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
); );
@ -105,7 +105,7 @@ CREATE TABLE users (
## Tokens ## Tokens
``` ```
CREATE TABLE 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, code VARCHAR(16) NOT NULL,
used BOOLEAN NOT NULL DEFAULT FALSE, used BOOLEAN NOT NULL DEFAULT FALSE,
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
@ -115,9 +115,9 @@ CREATE TABLE tokens (
## Logs ## Logs
``` ```
CREATE TABLE 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, ipaddress VARCHAR(16) NOT NULL,
action TEXT, action TEXT NOT NULL,
time TIMESTAMP DEFAULT CURRENT_TIMESTAMP time TIMESTAMP DEFAULT CURRENT_TIMESTAMP
); );
``` ```
@ -125,7 +125,7 @@ CREATE TABLE logs (
## Bans ## Bans
``` ```
CREATE TABLE 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, ipaddress VARCHAR(16) NOT NULL,
reason TEXT NOT NULL, reason TEXT NOT NULL,
time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
@ -137,10 +137,10 @@ CREATE TABLE bans (
## Groups ## Groups
``` ```
CREATE TABLE 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, group_name VARCHAR(255) NOT NULL,
image_list TEXT 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, last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
); );