1
Fork 0

Fix database compatibility issues with arm (#88)

- Change max key-length of username to 128
- Fix minor syntax error
This commit is contained in:
viktorstrate 2020-09-23 13:18:46 +02:00
parent 9861788ce7
commit d09bb3b99e
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
-- Users and authentication
CREATE TABLE IF NOT EXISTS user (
user_id int NOT NULL AUTO_INCREMENT,
username varchar(256) NOT NULL UNIQUE,
username varchar(128) NOT NULL UNIQUE,
password varchar(256),
root_path varchar(512),
admin boolean NOT NULL DEFAULT 0,
@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS access_token (
) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS site_info (
initial_setup boolean NOT NULL DEFAULT TRUE,
initial_setup boolean NOT NULL DEFAULT TRUE
) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- Video related