Skip to content

Commit

Permalink
added support to list uploaded apps
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed May 4, 2024
1 parent e488851 commit ef00635
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dashboard-frontend
16 changes: 16 additions & 0 deletions prisma/migrations/20240503172755_file_size/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- RedefineTables
PRAGMA foreign_keys=OFF;
CREATE TABLE "new_AppInformation" (
"id" TEXT NOT NULL PRIMARY KEY,
"fileName" TEXT NOT NULL,
"uploadedFileName" TEXT NOT NULL,
"path" TEXT NOT NULL,
"platform" TEXT NOT NULL,
"fileSize" TEXT NOT NULL DEFAULT '0',
"created_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);
INSERT INTO "new_AppInformation" ("fileName", "id", "path", "platform", "uploadedFileName") SELECT "fileName", "id", "path", "platform", "uploadedFileName" FROM "AppInformation";
DROP TABLE "AppInformation";
ALTER TABLE "new_AppInformation" RENAME TO "AppInformation";
PRAGMA foreign_key_check;
PRAGMA foreign_keys=ON;
2 changes: 2 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ model AppInformation {
uploadedFileName String
path String
platform String
fileSize String @default("0")
createdAt DateTime @default(now()) @map("created_at")
}
2 changes: 1 addition & 1 deletion src/modules

0 comments on commit ef00635

Please sign in to comment.