KI-AGENT: Statusanzeige für Tenant-Import ergänzen
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 45s
Build and Push Docker Images / build-frontend (push) Successful in 1m21s
Build and Push Docker Images / build-central-services-api (push) Successful in 22s
Build and Push Docker Images / build-website (push) Successful in 23s
Build and Push Docker Images / build-central-services-admin (push) Successful in 22s
Build and Push Docker Images / build-docs (push) Successful in 21s
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 45s
Build and Push Docker Images / build-frontend (push) Successful in 1m21s
Build and Push Docker Images / build-central-services-api (push) Successful in 22s
Build and Push Docker Images / build-website (push) Successful in 23s
Build and Push Docker Images / build-central-services-admin (push) Successful in 22s
Build and Push Docker Images / build-docs (push) Successful in 21s
This commit is contained in:
4
backend/db/migrations/0064_tenant_import_job_status.sql
Normal file
4
backend/db/migrations/0064_tenant_import_job_status.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE "tenant_export_jobs"
|
||||
ALTER COLUMN "tenant_id" DROP NOT NULL,
|
||||
ADD COLUMN IF NOT EXISTS "status_message" text,
|
||||
ADD COLUMN IF NOT EXISTS "import_result" jsonb;
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
timestamp,
|
||||
text,
|
||||
integer,
|
||||
jsonb,
|
||||
} from "drizzle-orm/pg-core"
|
||||
|
||||
import { tenants } from "./tenants"
|
||||
@@ -22,7 +23,6 @@ export const tenantExportJobs = pgTable("tenant_export_jobs", {
|
||||
completedAt: timestamp("completed_at", { withTimezone: true }),
|
||||
|
||||
tenantId: bigint("tenant_id", { mode: "number" })
|
||||
.notNull()
|
||||
.references(() => tenants.id, { onDelete: "cascade" }),
|
||||
|
||||
createdBy: uuid("created_by").references(() => authUsers.id),
|
||||
@@ -35,6 +35,8 @@ export const tenantExportJobs = pgTable("tenant_export_jobs", {
|
||||
contentType: text("content_type").notNull().default("application/zip"),
|
||||
fileSize: bigint("file_size", { mode: "number" }),
|
||||
error: text("error"),
|
||||
statusMessage: text("status_message"),
|
||||
importResult: jsonb("import_result"),
|
||||
|
||||
filesTotal: integer("files_total").notNull().default(0),
|
||||
filesDone: integer("files_done").notNull().default(0),
|
||||
|
||||
Reference in New Issue
Block a user