Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/12/11 13:43:05 (13 years ago)
Author:
cneumuel
Message:

#1233

  • changed relationship between Job and HiveExperiment. There is no more HiveExperiment.RootJobId, instead there is Job.HiveExperimentId.
  • One HiveExperiment can now have multiple Experiments.
  • TreeView supports multiple root nodes
  • HiveEngine creates a HiveExperiment for each set of jobs, so jobs cannot be without an parent experiment anymore (no more loose jobs)
  • updated ExperimentManager binaries
Location:
branches/HeuristicLab.Hive-3.4/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources

    • Property svn:ignore
      •  

        old new  
        44PrecompiledWeb
        55CreateEventLogSources
         6WindowsFormsTestProject
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/Tools/prepareHiveDatabase.sql

    r5955 r6006  
    5555GO
    5656
     57--ALTER TABLE [dbo].[Job]  DROP  CONSTRAINT [HiveExperiment_Job]
     58--ALTER TABLE [dbo].[Job]  WITH CHECK ADD CONSTRAINT [HiveExperiment_Job] FOREIGN KEY([HiveExperimentId])
     59--REFERENCES [dbo].[HiveExperiment] ([HiveExperimentId])
     60--ON UPDATE CASCADE
     61--ON DELETE CASCADE
     62--GO
     63
    5764ALTER TABLE dbo.Plugin ALTER COLUMN PluginId ADD ROWGUIDCOL;
    5865ALTER TABLE dbo.Plugin WITH NOCHECK ADD CONSTRAINT [DF_Plugin_PluginId] DEFAULT (newid()) FOR PluginId;
     
    107114-- =============================================
    108115-- Author:    cneumuel
    109 -- Create date: 11.11.2010
    110 -- Description: Deletes the root-job of the experiment when experiment is deleted
     116-- Create date: 11.04.2011
     117-- Description: Deletes all associated jobs. This cannot be done with cascading delete,
     118--              because the job table defines a INSTEAD OF DELETE trigger itself, which
     119--              is not compatible with cascading deletes.
    111120-- =============================================
    112 CREATE TRIGGER [dbo].[tr_HiveExperimentDeleteCascade] ON [dbo].[HiveExperiment] FOR DELETE AS
    113 SET NOCOUNT ON
    114 DELETE Job FROM deleted, Job WHERE Job.JobId = deleted.RootJobId
    115 GO
     121ALTER TRIGGER [dbo].[tr_HiveExperimentDeleteCascade] ON [dbo].[HiveExperiment] INSTEAD OF DELETE AS
     122BEGIN
     123  DELETE Job FROM Job WHERE Job.HiveExperimentId = HiveExperimentId
     124END
    116125
    117126SET ANSI_NULLS ON
Note: See TracChangeset for help on using the changeset viewer.