diff --git a/prisma/migrations/20240706053728_internalname/migration.sql b/prisma/migrations/20240706053728_internalname/migration.sql new file mode 100644 index 0000000..a1fb7af --- /dev/null +++ b/prisma/migrations/20240706053728_internalname/migration.sql @@ -0,0 +1,8 @@ +/* + Warnings: + + - Added the required column `internalName` to the `Upload` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE `Upload` ADD COLUMN `internalName` LONGTEXT NOT NULL; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 090c4f3..33e2c61 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -51,9 +51,10 @@ model Upload { uploader User @relation(fields: [uploaderId], references: [id]) uploaderId Int - fileName String @db.LongText - public Boolean @default(true) - uploaded DateTime @default(now()) + fileName String @db.LongText + internalName String @db.LongText + public Boolean @default(true) + uploaded DateTime @default(now()) } enum Role { diff --git a/src/lib/components/File.svelte b/src/lib/components/File.svelte index 452a384..8fc06dc 100644 --- a/src/lib/components/File.svelte +++ b/src/lib/components/File.svelte @@ -27,16 +27,15 @@
{file.name}
{/if} diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 8c921b2..6e5bb15 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -13,14 +13,17 @@