Remove likes from userposts

This commit is contained in:
2026-01-15 22:00:46 -07:00
parent 3010195ee3
commit e9ebac3c12
2 changed files with 1 additions and 3 deletions

View File

@@ -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;

View File

@@ -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()
})