Skip to content

Commit

Permalink
Closes #89
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingminski committed Oct 19, 2019
1 parent a5fd0e7 commit e5968eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions SQLWATCHDB/SQLWATCH.refactorlog
Original file line number Diff line number Diff line change
Expand Up @@ -637,4 +637,11 @@
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="[sqlwatch_whoisactive_record_id]" />
</Operation>
<Operation Name="Rename Refactor" Key="7ad82200-ab3c-4bb5-8c59-476348634b60" ChangeDateTime="10/19/2019 17:34:17">
<Property Name="ElementName" Value="[dbo].[sqlwatch_logger_xes_waits_stats].[activity_id]" />
<Property Name="ElementType" Value="SqlSimpleColumn" />
<Property Name="ParentElementName" Value="[dbo].[sqlwatch_logger_xes_waits_stats]" />
<Property Name="ParentElementType" Value="SqlTable" />
<Property Name="NewName" Value="[sqlwatch_activity_id]" />
</Operation>
</Operations>
7 changes: 4 additions & 3 deletions SQLWATCHDB/dbo/Tables/sqlwatch_logger_xes_waits_stats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
[sql_text] varchar(max),
[snapshot_time] datetime not null,
[snapshot_type_id] tinyint not null default 8 ,
[activity_id] uniqueidentifier not null default newid(),
[activity_sequence] int not null default 0,
[activity_id] uniqueidentifier null default newid(),
[activity_sequence] int null default 0,
[username] varchar(255) null,
[database_name] varchar(255) null,
[client_hostname] varchar(255) null,
Expand All @@ -19,9 +19,10 @@
[activity_seqeuence_xfer] int null,
[event_name] [varchar](255) null,
[sql_instance] nvarchar(25) not null default @@SERVERNAME,
[sqlwatch_activity_id] uniqueidentifier default newsequentialid(),
constraint fk_logger_xes_waits_snapshot_header foreign key ([snapshot_time],[snapshot_type_id],[sql_instance]) references [dbo].[sqlwatch_logger_snapshot_header]([snapshot_time],[snapshot_type_id],[sql_instance]) on delete cascade on update cascade,
constraint [pk_logger_xes_waits] primary key (
[snapshot_time],[snapshot_type_id],[sql_instance], [activity_id], [activity_sequence]
[snapshot_time],[snapshot_type_id],[sql_instance], [sqlwatch_activity_id]
),
constraint fk_sqlwatch_logger_xes_waits_stats_server foreign key ([sql_instance])
references [dbo].[sqlwatch_meta_server] ([servername]) on delete cascade
Expand Down

0 comments on commit e5968eb

Please sign in to comment.