Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ jobs:
push: true
tags: ${{ steps.meta-ui.outputs.tags }}
labels: ${{ steps.meta-ui.outputs.labels }}
# Shown in the UI. Same value as the image's org.opencontainers.image.version
# label: `1.2.3` on a v* tag, `main` or `pr-<n>` otherwise.
build-args: |
APP_VERSION=${{ steps.meta-ui.outputs.version }}
cache-from: type=gha,scope=ui
cache-to: type=gha,mode=max,scope=ui

Expand Down
20 changes: 20 additions & 0 deletions apps/backend/drizzle/0014_uploads.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CREATE TABLE `uploads` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`peer_name` text NOT NULL,
`item_id` text NOT NULL,
`filename` text NOT NULL,
`total_bytes` integer NOT NULL,
`range_start` integer DEFAULT 0 NOT NULL,
`requested_bytes` integer NOT NULL,
`sent_bytes` integer DEFAULT 0 NOT NULL,
`duration_ms` integer,
`status` text NOT NULL,
`error` text,
`started_at` text NOT NULL,
`updated_at` text NOT NULL,
`finished_at` text,
CONSTRAINT "uploads_status_check" CHECK("uploads"."status" in ('uploading', 'completed', 'aborted', 'unconfirmed'))
);
--> statement-breakpoint
CREATE INDEX `uploads_status_idx` ON `uploads` (`status`);--> statement-breakpoint
CREATE INDEX `uploads_started_at_idx` ON `uploads` (`started_at`);
10 changes: 10 additions & 0 deletions apps/backend/drizzle/0015_dashboard_history.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CREATE TABLE `catalog_size_history` (
`day` text NOT NULL,
`source_id` text NOT NULL,
`source_name` text NOT NULL,
`titles` integer NOT NULL,
`bytes` integer NOT NULL,
PRIMARY KEY(`day`, `source_id`)
);
--> statement-breakpoint
ALTER TABLE `downloads` ADD `imported_at` text;
Loading