refactor: Modify createDownloadsTable function in db.ts to remove unnecessary platform check constraint

This commit is contained in:
Mauro Balades
2024-07-12 18:43:10 +02:00
parent 9cd653d4da
commit 2ac4c319a3

View File

@@ -6,7 +6,7 @@ import { releases } from './releases';
async function createDownloadsTable() {
await sql`
CREATE TABLE IF NOT EXISTS downloads (
platform TEXT NOT NULL PRIMARY KEY CONSTRAINT platform_check CHECK (platform IN ('WindowsZip', 'Linux')),
platform TEXT NOT NULL PRIMARY KEY,
count INT NOT NULL DEFAULT 0
);
`;