From 2b552fdd6eca883ee24d2772e1de24f4bab70202 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 20 Sep 2022 00:24:10 -0700 Subject: theme field --- db/models/users.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'db') diff --git a/db/models/users.js b/db/models/users.js index cfd31cb7..7cbaf8e6 100644 --- a/db/models/users.js +++ b/db/models/users.js @@ -20,6 +20,15 @@ const attributes = { comment: null, field: "address" }, + theme: { + type: DataTypes.STRING, + allowNull: true, + defaultValue: false, + primaryKey: false, + autoIncrement: false, + comment: null, + field: "theme" + }, profile: { type: DataTypes.BOOLEAN, allowNull: true, -- cgit v1.2.3 From 918813a6e49f9d05828f6fb205614f9d288269e1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 21 Sep 2022 19:56:48 -0700 Subject: rm knexfile --- db/index.js | 1 - sampleconfig/knexfile.js | 17 ----------------- 2 files changed, 18 deletions(-) delete mode 100644 sampleconfig/knexfile.js (limited to 'db') diff --git a/db/index.js b/db/index.js index 3d5aab36..8c94a4d3 100644 --- a/db/index.js +++ b/db/index.js @@ -1,7 +1,6 @@ import Sequelize from "@sequelize/core"; import db from "$db/db"; -import dbOptions from "$config/knexfile"; db.authenticate().catch(err => { console.debug("Error connecting to database: " + err.message); diff --git a/sampleconfig/knexfile.js b/sampleconfig/knexfile.js deleted file mode 100644 index dafb0d1c..00000000 --- a/sampleconfig/knexfile.js +++ /dev/null @@ -1,17 +0,0 @@ -// Update with your config settings. - -export default { - development: { - client: "mysql2", - connection: { - host: "maria", - database: "coinos", - user: "root", - password: "password" - }, - migrations: { - tableName: "migrations", - directory: "migrations" - } - } -}; -- cgit v1.2.3