====== pears.IQXJobRunnerLog ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Description =====
Log of sucessful and failed runs by the Scheduler
===== Columns =====
^ Column ^ Type ^ Null ^ Default ^ Comment ^
| **LogID** | char(20) | NOT NULL | | |
| ScheduleID | char(20) | NOT NULL | | |
| StartTime | timestamp | NOT NULL | | |
| CompletionTime | timestamp | NULL | | |
| MachineName | char(100) | NULL | | |
| Status | integer | NULL | | |
| ErrorMessage | long varchar | NULL | | |
===== Primary Key =====
* LogID
===== Foreign Keys =====
^ Constraint ^ Columns ^ References ^ Delete/update action ^
| IQXJobRunnerSchedule | ScheduleID | [[database:tables:pears_iqxjobrunnerschedule|pears.IQXJobRunnerSchedule (ScheduleID)]] | NOT NULL; ON DELETE CASCADE |
===== Referenced By =====
* No incoming foreign keys found.
===== Indexes =====
^ Name ^ Type ^ Columns ^ Detail ^
| IQXJRJobStart | Index | ScheduleID, StartTime | |
| IQXJRStart | Index | StartTime | |
===== Triggers =====
* No triggers found.
===== Original SQL =====
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."IQXJobRunnerLog"
-- Table comment: Log of sucessful and failed runs by the Scheduler
-- Statement count: 5
CREATE TABLE "pears"."IQXJobRunnerLog" (
"LogID" char(20) NOT NULL
,"ScheduleID" char(20) NOT NULL
,"StartTime" timestamp NOT NULL
,"CompletionTime" timestamp NULL
,"MachineName" char(100) NULL
,"Status" integer NULL
,"ErrorMessage" long varchar NULL
,PRIMARY KEY ("LogID" ASC)
)
go
COMMENT ON TABLE "pears"."IQXJobRunnerLog" IS
'Log of sucessful and failed runs by the Scheduler'
go
ALTER TABLE "pears"."IQXJobRunnerLog"
ADD NOT NULL FOREIGN KEY "IQXJobRunnerSchedule" ("ScheduleID" ASC)
REFERENCES "pears"."IQXJobRunnerSchedule" ("ScheduleID")
ON DELETE CASCADE
go
CREATE INDEX "IQXJRJobStart" ON "pears"."IQXJobRunnerLog"
( "ScheduleID","StartTime" )
go
CREATE INDEX "IQXJRStart" ON "pears"."IQXJobRunnerLog"
( "StartTime" )
go