Remove likes from userposts
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
-- https://www.phpmyadmin.net/
|
-- https://www.phpmyadmin.net/
|
||||||
--
|
--
|
||||||
-- Host: localhost
|
-- 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
|
-- Server version: 12.1.2-MariaDB
|
||||||
-- PHP Version: 8.5.1
|
-- PHP Version: 8.5.1
|
||||||
|
|
||||||
@@ -91,7 +91,6 @@ CREATE TABLE `userposts` (
|
|||||||
`userId` int(11) NOT NULL,
|
`userId` int(11) NOT NULL,
|
||||||
`content` text NOT NULL,
|
`content` text NOT NULL,
|
||||||
`timestamp` int(11) NOT NULL,
|
`timestamp` int(11) NOT NULL,
|
||||||
`likes` bigint(20) NOT NULL DEFAULT 0,
|
|
||||||
`deleted_at` int(11) NOT NULL DEFAULT 0,
|
`deleted_at` int(11) NOT NULL DEFAULT 0,
|
||||||
`votes` text NOT NULL DEFAULT '{}'
|
`votes` text NOT NULL DEFAULT '{}'
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci;
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ export const berryDashUserPosts = mysqlTable('userposts', {
|
|||||||
userId: int('userId').notNull(),
|
userId: int('userId').notNull(),
|
||||||
content: text('content').notNull(),
|
content: text('content').notNull(),
|
||||||
timestamp: int('timestamp').notNull(),
|
timestamp: int('timestamp').notNull(),
|
||||||
likes: bigint('likes', { mode: 'number' }).default(0).notNull(),
|
|
||||||
deletedAt: int('deleted_at').default(0).notNull(),
|
deletedAt: int('deleted_at').default(0).notNull(),
|
||||||
votes: text('votes').default('{}').notNull()
|
votes: text('votes').default('{}').notNull()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user