ok turns out this is something that should be configured on the db columns, ideally not in the queries, makes sense to me https://stackoverflow.com/a/36768933 https://dev.mysql.com/doc/refman/5.7/en/case-sensitivity.html
This commit is contained in:
@@ -16,8 +16,8 @@ console.log('Tables dropped');
|
||||
console.log('Attempting to create table users');
|
||||
await dbClient.execute(`
|
||||
CREATE TABLE users (
|
||||
id varchar(20) NOT NULL,
|
||||
name varchar(20) NOT NULL,
|
||||
id varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
||||
name varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
||||
hash varchar(60) NOT NULL,
|
||||
email varchar(255) NULL,
|
||||
deleteCode varchar(20) NULL,
|
||||
@@ -31,8 +31,8 @@ console.log('Table created');
|
||||
console.log('Attempting to create table plans');
|
||||
await dbClient.execute(`
|
||||
CREATE TABLE plans (
|
||||
id varchar(20) NOT NULL,
|
||||
ownerId varchar(20) NOT NULL,
|
||||
id varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
||||
ownerId varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
||||
name varchar(200) NOT NULL,
|
||||
folder varchar(200) NOT NULL,
|
||||
lastUpdated timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
Reference in New Issue
Block a user