refactor: Modify createDownloadsTable function in db.ts to remove unnecessary platform check constraint
This commit is contained in:
@@ -6,7 +6,7 @@ import { releases } from './releases';
|
|||||||
async function createDownloadsTable() {
|
async function createDownloadsTable() {
|
||||||
await sql`
|
await sql`
|
||||||
CREATE TABLE IF NOT EXISTS downloads (
|
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
|
count INT NOT NULL DEFAULT 0
|
||||||
);
|
);
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user