Technical support This forum is closed.
Version 1.x > Technical support > Event Log table missing? View modes: 
User avatar
Member
Member
cpaul - 10/21/2005 11:38:19 PM
   
Event Log table missing?
I'm testing out upgrading my current installation to 1.7a, and I noticed I don't have the CMS_EventLog table. I didn't notice it in the two upgrade scripts I used to upgrade from 1.6b->1.7a, would it possible to email me the sql script to create that? Most everything else seems to be working.


User avatar
Guest
admin - 10/22/2005 11:54:47 AM
   
Re: Event Log table missing?
Hi Chip,

the CMS_EventLog table was part of the 1.6 -> 1.6b upgrade. Below, you can find the script. It is the complete SQL upgrade script for 1.6 -> 1.6b, there were no other database changes.

CREATE TABLE [CMS_EventLog] (
[EventID] [int] IDENTITY (1, 1) NOT NULL ,
[EventType] [nvarchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[EventTime] [datetime] NOT NULL ,
[Source] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[EventCode] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
[UserID] [int] NULL ,
[UserName] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[IPAddress] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[NodeID] [int] NULL ,
[NodeNamePath] [nvarchar] (450) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[EventDescription] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

CREATE INDEX [IX_CMS_EventLog] ON [dbo].[CMS_EventLog]([EventType])

CREATE INDEX [IX_CMS_EventLog_1] ON [dbo].[CMS_EventLog]([EventTime])

CREATE INDEX [IX_CMS_EventLog_2] ON [dbo].[CMS_EventLog]([Source])

CREATE INDEX [IX_CMS_EventLog_3] ON [dbo].[CMS_EventLog]([EventCode])

CREATE INDEX [IX_CMS_EventLog_4] ON [dbo].[CMS_EventLog]([UserID])

CREATE INDEX [IX_CMS_EventLog_5] ON [dbo].[CMS_EventLog]([UserName])

CREATE INDEX [IX_CMS_EventLog_6] ON [dbo].[CMS_EventLog]([NodeID])

CREATE INDEX [IX_CMS_EventLog_7] ON [dbo].[CMS_EventLog]([NodeNamePath])





ALTER TABLE [CMS_EventLog] WITH NOCHECK ADD
CONSTRAINT [PK_CMS_EventLog] PRIMARY KEY CLUSTERED
(
[EventID]
) ON [PRIMARY]


User avatar
Member
Member
cpaul - 10/24/2005 6:14:39 PM
   
Re: Event Log table missing?
Thanks, this fixed it for me.

I guess in the shuffle of moving to the source version and all the ugrades I never actually upgraded properly to 1.6b. 1.7a seems to be working fully now, and I'm anxious to test out the site staging.