From e9ebac3c129a3f94239e7bbce79bbc9bac2d883c Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Thu, 15 Jan 2026 22:00:46 -0700 Subject: [PATCH] Remove `likes` from userposts --- database/berrydashdatabase.sql | 3 +-- src/lib/tables.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/database/berrydashdatabase.sql b/database/berrydashdatabase.sql index e11e676..eaff24b 100644 --- a/database/berrydashdatabase.sql +++ b/database/berrydashdatabase.sql @@ -3,7 +3,7 @@ -- https://www.phpmyadmin.net/ -- -- Host: localhost --- Generation Time: Dec 18, 2025 at 01:18 AM +-- Generation Time: Jan 16, 2026 at 05:00 AM -- Server version: 12.1.2-MariaDB -- PHP Version: 8.5.1 @@ -91,7 +91,6 @@ CREATE TABLE `userposts` ( `userId` int(11) NOT NULL, `content` text NOT NULL, `timestamp` int(11) NOT NULL, - `likes` bigint(20) NOT NULL DEFAULT 0, `deleted_at` int(11) NOT NULL DEFAULT 0, `votes` text NOT NULL DEFAULT '{}' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci; diff --git a/src/lib/tables.ts b/src/lib/tables.ts index cb21715..f476861 100644 --- a/src/lib/tables.ts +++ b/src/lib/tables.ts @@ -81,7 +81,6 @@ export const berryDashUserPosts = mysqlTable('userposts', { userId: int('userId').notNull(), content: text('content').notNull(), timestamp: int('timestamp').notNull(), - likes: bigint('likes', { mode: 'number' }).default(0).notNull(), deletedAt: int('deleted_at').default(0).notNull(), votes: text('votes').default('{}').notNull() })