From 4d83aff7fcd73caeb5788300b9b098a8117b6f90 Mon Sep 17 00:00:00 2001 From: "m.semalaiappan" Date: Thu, 21 Nov 2024 16:29:58 -0600 Subject: [PATCH 1/2] MetaEdOutput-DS-4.0-ME-3.x-7.3.0 Artifacts Updated --- .../MsSql/Structure/Ods/0020-Tables.sql | 948 +++++++++--------- .../MsSql/Structure/Ods/0030-ForeignKeys.sql | 156 --- ...x-EdOrgIdsRelationship-AuthPerformance.sql | 148 +-- .../Structure/Ods/1460-AggregateIdColumns.sql | 445 ++++++++ ...x-EdOrgIdsRelationship-AuthPerformance.sql | 477 +++++++++ ...30-CreateIndirectUpdateCascadeTriggers.sql | 232 +++++ .../PgSql/Structure/Ods/0020-Tables.sql | 948 +++++++++--------- .../PgSql/Structure/Ods/0030-ForeignKeys.sql | 117 --- .../Structure/Ods/1460-AggregateIdColumns.sql | 555 ++++++++++ ...x-EdOrgIdsRelationship-AuthPerformance.sql | 327 ++++++ ...30-CreateIndirectUpdateCascadeTriggers.sql | 232 +++++ .../Schemas/Interchange-Descriptors.xsd | 10 +- 12 files changed, 3295 insertions(+), 1300 deletions(-) create mode 100644 Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1460-AggregateIdColumns.sql create mode 100644 Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1465-UpdateIndex-EdOrgIdsRelationship-AuthPerformance.sql create mode 100644 Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/Changes/0230-CreateIndirectUpdateCascadeTriggers.sql create mode 100644 Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1460-AggregateIdColumns.sql create mode 100644 Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1465-UpdateIndex-EdOrgIdsRelationship-AuthPerformance.sql create mode 100644 Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/Changes/0230-CreateIndirectUpdateCascadeTriggers.sql diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/0020-Tables.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/0020-Tables.sql index 21df8bc5c8..a897ddce0e 100644 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/0020-Tables.sql +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/0020-Tables.sql @@ -47,11 +47,11 @@ CREATE TABLE [edfi].[AcademicWeek] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AcademicWeek] ADD CONSTRAINT [AcademicWeek_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AcademicWeek] ADD CONSTRAINT [AcademicWeek_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[AcademicWeek] ADD CONSTRAINT [AcademicWeek_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[AcademicWeek] ADD CONSTRAINT [AcademicWeek_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[AcademicWeek] ADD CONSTRAINT [AcademicWeek_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[AccommodationDescriptor] -- @@ -83,11 +83,11 @@ CREATE TABLE [edfi].[AccountabilityRating] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AccountabilityRating] ADD CONSTRAINT [AccountabilityRating_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AccountabilityRating] ADD CONSTRAINT [AccountabilityRating_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[AccountabilityRating] ADD CONSTRAINT [AccountabilityRating_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[AccountabilityRating] ADD CONSTRAINT [AccountabilityRating_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[AccountabilityRating] ADD CONSTRAINT [AccountabilityRating_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[AccountTypeDescriptor] -- @@ -177,11 +177,11 @@ CREATE TABLE [edfi].[Assessment] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Assessment] ADD CONSTRAINT [Assessment_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Assessment] ADD CONSTRAINT [Assessment_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Assessment] ADD CONSTRAINT [Assessment_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Assessment] ADD CONSTRAINT [Assessment_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Assessment] ADD CONSTRAINT [Assessment_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[AssessmentAcademicSubject] -- @@ -197,7 +197,7 @@ CREATE TABLE [edfi].[AssessmentAcademicSubject] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentAcademicSubject] ADD CONSTRAINT [AssessmentAcademicSubject_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentAcademicSubject] ADD CONSTRAINT [AssessmentAcademicSubject_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentAssessedGradeLevel] -- @@ -213,7 +213,7 @@ CREATE TABLE [edfi].[AssessmentAssessedGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentAssessedGradeLevel] ADD CONSTRAINT [AssessmentAssessedGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentAssessedGradeLevel] ADD CONSTRAINT [AssessmentAssessedGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentCategoryDescriptor] -- @@ -245,7 +245,7 @@ CREATE TABLE [edfi].[AssessmentContentStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentContentStandard] ADD CONSTRAINT [AssessmentContentStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentContentStandard] ADD CONSTRAINT [AssessmentContentStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentContentStandardAuthor] -- @@ -261,7 +261,7 @@ CREATE TABLE [edfi].[AssessmentContentStandardAuthor] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentContentStandardAuthor] ADD CONSTRAINT [AssessmentContentStandardAuthor_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentContentStandardAuthor] ADD CONSTRAINT [AssessmentContentStandardAuthor_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentIdentificationCode] -- @@ -279,7 +279,7 @@ CREATE TABLE [edfi].[AssessmentIdentificationCode] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentIdentificationCode] ADD CONSTRAINT [AssessmentIdentificationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentIdentificationCode] ADD CONSTRAINT [AssessmentIdentificationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentIdentificationSystemDescriptor] -- @@ -313,11 +313,11 @@ CREATE TABLE [edfi].[AssessmentItem] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentItem] ADD CONSTRAINT [AssessmentItem_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentItem] ADD CONSTRAINT [AssessmentItem_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[AssessmentItem] ADD CONSTRAINT [AssessmentItem_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[AssessmentItem] ADD CONSTRAINT [AssessmentItem_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[AssessmentItem] ADD CONSTRAINT [AssessmentItem_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[AssessmentItemCategoryDescriptor] -- @@ -344,7 +344,7 @@ CREATE TABLE [edfi].[AssessmentItemLearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentItemLearningStandard] ADD CONSTRAINT [AssessmentItemLearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentItemLearningStandard] ADD CONSTRAINT [AssessmentItemLearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentItemPossibleResponse] -- @@ -364,7 +364,7 @@ CREATE TABLE [edfi].[AssessmentItemPossibleResponse] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentItemPossibleResponse] ADD CONSTRAINT [AssessmentItemPossibleResponse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentItemPossibleResponse] ADD CONSTRAINT [AssessmentItemPossibleResponse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentItemResultDescriptor] -- @@ -389,7 +389,7 @@ CREATE TABLE [edfi].[AssessmentLanguage] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentLanguage] ADD CONSTRAINT [AssessmentLanguage_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentLanguage] ADD CONSTRAINT [AssessmentLanguage_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentPerformanceLevel] -- @@ -411,7 +411,7 @@ CREATE TABLE [edfi].[AssessmentPerformanceLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentPerformanceLevel] ADD CONSTRAINT [AssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentPerformanceLevel] ADD CONSTRAINT [AssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentPeriod] -- @@ -429,7 +429,7 @@ CREATE TABLE [edfi].[AssessmentPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentPeriod] ADD CONSTRAINT [AssessmentPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentPeriod] ADD CONSTRAINT [AssessmentPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentPeriodDescriptor] -- @@ -454,7 +454,7 @@ CREATE TABLE [edfi].[AssessmentPlatformType] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentPlatformType] ADD CONSTRAINT [AssessmentPlatformType_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentPlatformType] ADD CONSTRAINT [AssessmentPlatformType_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentProgram] -- @@ -474,7 +474,7 @@ CREATE TABLE [edfi].[AssessmentProgram] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentProgram] ADD CONSTRAINT [AssessmentProgram_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentProgram] ADD CONSTRAINT [AssessmentProgram_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentReportingMethodDescriptor] -- @@ -502,7 +502,7 @@ CREATE TABLE [edfi].[AssessmentScore] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentScore] ADD CONSTRAINT [AssessmentScore_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentScore] ADD CONSTRAINT [AssessmentScore_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentScoreRangeLearningStandard] -- @@ -525,11 +525,11 @@ CREATE TABLE [edfi].[AssessmentScoreRangeLearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentScoreRangeLearningStandard] ADD CONSTRAINT [AssessmentScoreRangeLearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentScoreRangeLearningStandard] ADD CONSTRAINT [AssessmentScoreRangeLearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[AssessmentScoreRangeLearningStandard] ADD CONSTRAINT [AssessmentScoreRangeLearningStandard_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[AssessmentScoreRangeLearningStandard] ADD CONSTRAINT [AssessmentScoreRangeLearningStandard_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[AssessmentScoreRangeLearningStandard] ADD CONSTRAINT [AssessmentScoreRangeLearningStandard_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[AssessmentScoreRangeLearningStandardLearningStandard] -- @@ -547,7 +547,7 @@ CREATE TABLE [edfi].[AssessmentScoreRangeLearningStandardLearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentScoreRangeLearningStandardLearningStandard] ADD CONSTRAINT [AssessmentScoreRangeLearningStandardLearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentScoreRangeLearningStandardLearningStandard] ADD CONSTRAINT [AssessmentScoreRangeLearningStandardLearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssessmentSection] -- @@ -571,7 +571,7 @@ CREATE TABLE [edfi].[AssessmentSection] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[AssessmentSection] ADD CONSTRAINT [AssessmentSection_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[AssessmentSection] ADD CONSTRAINT [AssessmentSection_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[AssignmentLateStatusDescriptor] -- @@ -616,11 +616,11 @@ CREATE TABLE [edfi].[BalanceSheetDimension] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[BalanceSheetDimension] ADD CONSTRAINT [BalanceSheetDimension_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[BalanceSheetDimension] ADD CONSTRAINT [BalanceSheetDimension_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[BalanceSheetDimension] ADD CONSTRAINT [BalanceSheetDimension_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[BalanceSheetDimension] ADD CONSTRAINT [BalanceSheetDimension_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[BalanceSheetDimension] ADD CONSTRAINT [BalanceSheetDimension_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[BalanceSheetDimensionReportingTag] -- @@ -636,7 +636,7 @@ CREATE TABLE [edfi].[BalanceSheetDimensionReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[BalanceSheetDimensionReportingTag] ADD CONSTRAINT [BalanceSheetDimensionReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[BalanceSheetDimensionReportingTag] ADD CONSTRAINT [BalanceSheetDimensionReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[BarrierToInternetAccessInResidenceDescriptor] -- @@ -675,11 +675,11 @@ CREATE TABLE [edfi].[BellSchedule] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[BellSchedule] ADD CONSTRAINT [BellSchedule_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[BellSchedule] ADD CONSTRAINT [BellSchedule_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[BellSchedule] ADD CONSTRAINT [BellSchedule_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[BellSchedule] ADD CONSTRAINT [BellSchedule_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[BellSchedule] ADD CONSTRAINT [BellSchedule_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[BellScheduleClassPeriod] -- @@ -695,7 +695,7 @@ CREATE TABLE [edfi].[BellScheduleClassPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[BellScheduleClassPeriod] ADD CONSTRAINT [BellScheduleClassPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[BellScheduleClassPeriod] ADD CONSTRAINT [BellScheduleClassPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[BellScheduleDate] -- @@ -711,7 +711,7 @@ CREATE TABLE [edfi].[BellScheduleDate] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[BellScheduleDate] ADD CONSTRAINT [BellScheduleDate_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[BellScheduleDate] ADD CONSTRAINT [BellScheduleDate_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[BellScheduleGradeLevel] -- @@ -727,7 +727,7 @@ CREATE TABLE [edfi].[BellScheduleGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[BellScheduleGradeLevel] ADD CONSTRAINT [BellScheduleGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[BellScheduleGradeLevel] ADD CONSTRAINT [BellScheduleGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[Calendar] -- @@ -747,11 +747,11 @@ CREATE TABLE [edfi].[Calendar] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Calendar] ADD CONSTRAINT [Calendar_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Calendar] ADD CONSTRAINT [Calendar_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Calendar] ADD CONSTRAINT [Calendar_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Calendar] ADD CONSTRAINT [Calendar_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Calendar] ADD CONSTRAINT [Calendar_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[CalendarDate] -- @@ -772,11 +772,11 @@ CREATE TABLE [edfi].[CalendarDate] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CalendarDate] ADD CONSTRAINT [CalendarDate_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CalendarDate] ADD CONSTRAINT [CalendarDate_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[CalendarDate] ADD CONSTRAINT [CalendarDate_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[CalendarDate] ADD CONSTRAINT [CalendarDate_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[CalendarDate] ADD CONSTRAINT [CalendarDate_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[CalendarDateCalendarEvent] -- @@ -796,7 +796,7 @@ CREATE TABLE [edfi].[CalendarDateCalendarEvent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CalendarDateCalendarEvent] ADD CONSTRAINT [CalendarDateCalendarEvent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CalendarDateCalendarEvent] ADD CONSTRAINT [CalendarDateCalendarEvent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CalendarEventDescriptor] -- @@ -823,7 +823,7 @@ CREATE TABLE [edfi].[CalendarGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CalendarGradeLevel] ADD CONSTRAINT [CalendarGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CalendarGradeLevel] ADD CONSTRAINT [CalendarGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CalendarTypeDescriptor] -- @@ -888,11 +888,11 @@ CREATE TABLE [edfi].[ChartOfAccount] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ChartOfAccount] ADD CONSTRAINT [ChartOfAccount_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ChartOfAccount] ADD CONSTRAINT [ChartOfAccount_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[ChartOfAccount] ADD CONSTRAINT [ChartOfAccount_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[ChartOfAccount] ADD CONSTRAINT [ChartOfAccount_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[ChartOfAccount] ADD CONSTRAINT [ChartOfAccount_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ChartOfAccountReportingTag] -- @@ -911,7 +911,7 @@ CREATE TABLE [edfi].[ChartOfAccountReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ChartOfAccountReportingTag] ADD CONSTRAINT [ChartOfAccountReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ChartOfAccountReportingTag] ADD CONSTRAINT [ChartOfAccountReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CitizenshipStatusDescriptor] -- @@ -938,11 +938,11 @@ CREATE TABLE [edfi].[ClassPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ClassPeriod] ADD CONSTRAINT [ClassPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ClassPeriod] ADD CONSTRAINT [ClassPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[ClassPeriod] ADD CONSTRAINT [ClassPeriod_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[ClassPeriod] ADD CONSTRAINT [ClassPeriod_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[ClassPeriod] ADD CONSTRAINT [ClassPeriod_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ClassPeriodMeetingTime] -- @@ -960,7 +960,7 @@ CREATE TABLE [edfi].[ClassPeriodMeetingTime] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ClassPeriodMeetingTime] ADD CONSTRAINT [ClassPeriodMeetingTime_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ClassPeriodMeetingTime] ADD CONSTRAINT [ClassPeriodMeetingTime_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ClassroomPositionDescriptor] -- @@ -990,11 +990,11 @@ CREATE TABLE [edfi].[Cohort] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Cohort] ADD CONSTRAINT [Cohort_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Cohort] ADD CONSTRAINT [Cohort_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Cohort] ADD CONSTRAINT [Cohort_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Cohort] ADD CONSTRAINT [Cohort_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Cohort] ADD CONSTRAINT [Cohort_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[CohortProgram] -- @@ -1014,7 +1014,7 @@ CREATE TABLE [edfi].[CohortProgram] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CohortProgram] ADD CONSTRAINT [CohortProgram_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CohortProgram] ADD CONSTRAINT [CohortProgram_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CohortScopeDescriptor] -- @@ -1092,11 +1092,11 @@ CREATE TABLE [edfi].[CommunityProviderLicense] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CommunityProviderLicense] ADD CONSTRAINT [CommunityProviderLicense_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CommunityProviderLicense] ADD CONSTRAINT [CommunityProviderLicense_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[CommunityProviderLicense] ADD CONSTRAINT [CommunityProviderLicense_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[CommunityProviderLicense] ADD CONSTRAINT [CommunityProviderLicense_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[CommunityProviderLicense] ADD CONSTRAINT [CommunityProviderLicense_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[CompetencyLevelDescriptor] -- @@ -1127,11 +1127,11 @@ CREATE TABLE [edfi].[CompetencyObjective] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CompetencyObjective] ADD CONSTRAINT [CompetencyObjective_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CompetencyObjective] ADD CONSTRAINT [CompetencyObjective_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[CompetencyObjective] ADD CONSTRAINT [CompetencyObjective_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[CompetencyObjective] ADD CONSTRAINT [CompetencyObjective_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[CompetencyObjective] ADD CONSTRAINT [CompetencyObjective_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ContactTypeDescriptor] -- @@ -1210,11 +1210,11 @@ CREATE TABLE [edfi].[Course] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Course] ADD CONSTRAINT [Course_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Course] ADD CONSTRAINT [Course_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Course] ADD CONSTRAINT [Course_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Course] ADD CONSTRAINT [Course_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Course] ADD CONSTRAINT [Course_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[CourseAttemptResultDescriptor] -- @@ -1239,7 +1239,7 @@ CREATE TABLE [edfi].[CourseCompetencyLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseCompetencyLevel] ADD CONSTRAINT [CourseCompetencyLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseCompetencyLevel] ADD CONSTRAINT [CourseCompetencyLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseDefinedByDescriptor] -- @@ -1276,7 +1276,7 @@ CREATE TABLE [edfi].[CourseIdentificationCode] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseIdentificationCode] ADD CONSTRAINT [CourseIdentificationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseIdentificationCode] ADD CONSTRAINT [CourseIdentificationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseIdentificationSystemDescriptor] -- @@ -1303,7 +1303,7 @@ CREATE TABLE [edfi].[CourseLearningObjective] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseLearningObjective] ADD CONSTRAINT [CourseLearningObjective_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseLearningObjective] ADD CONSTRAINT [CourseLearningObjective_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseLearningStandard] -- @@ -1319,7 +1319,7 @@ CREATE TABLE [edfi].[CourseLearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseLearningStandard] ADD CONSTRAINT [CourseLearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseLearningStandard] ADD CONSTRAINT [CourseLearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseLevelCharacteristic] -- @@ -1335,7 +1335,7 @@ CREATE TABLE [edfi].[CourseLevelCharacteristic] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseLevelCharacteristic] ADD CONSTRAINT [CourseLevelCharacteristic_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseLevelCharacteristic] ADD CONSTRAINT [CourseLevelCharacteristic_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseLevelCharacteristicDescriptor] -- @@ -1360,7 +1360,7 @@ CREATE TABLE [edfi].[CourseOfferedGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseOfferedGradeLevel] ADD CONSTRAINT [CourseOfferedGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseOfferedGradeLevel] ADD CONSTRAINT [CourseOfferedGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseOffering] -- @@ -1385,11 +1385,11 @@ CREATE TABLE [edfi].[CourseOffering] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseOffering] ADD CONSTRAINT [CourseOffering_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseOffering] ADD CONSTRAINT [CourseOffering_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[CourseOffering] ADD CONSTRAINT [CourseOffering_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[CourseOffering] ADD CONSTRAINT [CourseOffering_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[CourseOffering] ADD CONSTRAINT [CourseOffering_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[CourseOfferingCourseLevelCharacteristic] -- @@ -1409,7 +1409,7 @@ CREATE TABLE [edfi].[CourseOfferingCourseLevelCharacteristic] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseOfferingCourseLevelCharacteristic] ADD CONSTRAINT [CourseOfferingCourseLevelCharacteristic_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseOfferingCourseLevelCharacteristic] ADD CONSTRAINT [CourseOfferingCourseLevelCharacteristic_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseOfferingCurriculumUsed] -- @@ -1429,7 +1429,7 @@ CREATE TABLE [edfi].[CourseOfferingCurriculumUsed] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseOfferingCurriculumUsed] ADD CONSTRAINT [CourseOfferingCurriculumUsed_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseOfferingCurriculumUsed] ADD CONSTRAINT [CourseOfferingCurriculumUsed_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseOfferingOfferedGradeLevel] -- @@ -1449,7 +1449,7 @@ CREATE TABLE [edfi].[CourseOfferingOfferedGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseOfferingOfferedGradeLevel] ADD CONSTRAINT [CourseOfferingOfferedGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseOfferingOfferedGradeLevel] ADD CONSTRAINT [CourseOfferingOfferedGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseRepeatCodeDescriptor] -- @@ -1503,11 +1503,11 @@ CREATE TABLE [edfi].[CourseTranscript] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseTranscript] ADD CONSTRAINT [CourseTranscript_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseTranscript] ADD CONSTRAINT [CourseTranscript_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[CourseTranscript] ADD CONSTRAINT [CourseTranscript_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[CourseTranscript] ADD CONSTRAINT [CourseTranscript_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[CourseTranscript] ADD CONSTRAINT [CourseTranscript_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[CourseTranscriptAcademicSubject] -- @@ -1533,7 +1533,7 @@ CREATE TABLE [edfi].[CourseTranscriptAcademicSubject] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseTranscriptAcademicSubject] ADD CONSTRAINT [CourseTranscriptAcademicSubject_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseTranscriptAcademicSubject] ADD CONSTRAINT [CourseTranscriptAcademicSubject_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseTranscriptAlternativeCourseIdentificationCode] -- @@ -1562,7 +1562,7 @@ CREATE TABLE [edfi].[CourseTranscriptAlternativeCourseIdentificationCode] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseTranscriptAlternativeCourseIdentificationCode] ADD CONSTRAINT [CourseTranscriptAlternativeCourseIdentificationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseTranscriptAlternativeCourseIdentificationCode] ADD CONSTRAINT [CourseTranscriptAlternativeCourseIdentificationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseTranscriptCreditCategory] -- @@ -1588,7 +1588,7 @@ CREATE TABLE [edfi].[CourseTranscriptCreditCategory] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseTranscriptCreditCategory] ADD CONSTRAINT [CourseTranscriptCreditCategory_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseTranscriptCreditCategory] ADD CONSTRAINT [CourseTranscriptCreditCategory_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseTranscriptEarnedAdditionalCredits] -- @@ -1615,7 +1615,7 @@ CREATE TABLE [edfi].[CourseTranscriptEarnedAdditionalCredits] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseTranscriptEarnedAdditionalCredits] ADD CONSTRAINT [CourseTranscriptEarnedAdditionalCredits_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseTranscriptEarnedAdditionalCredits] ADD CONSTRAINT [CourseTranscriptEarnedAdditionalCredits_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CourseTranscriptPartialCourseTranscriptAwards] -- @@ -1645,7 +1645,7 @@ CREATE TABLE [edfi].[CourseTranscriptPartialCourseTranscriptAwards] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CourseTranscriptPartialCourseTranscriptAwards] ADD CONSTRAINT [CourseTranscriptPartialCourseTranscriptAwards_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CourseTranscriptPartialCourseTranscriptAwards] ADD CONSTRAINT [CourseTranscriptPartialCourseTranscriptAwards_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[Credential] -- @@ -1670,11 +1670,11 @@ CREATE TABLE [edfi].[Credential] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Credential] ADD CONSTRAINT [Credential_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Credential] ADD CONSTRAINT [Credential_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Credential] ADD CONSTRAINT [Credential_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Credential] ADD CONSTRAINT [Credential_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Credential] ADD CONSTRAINT [Credential_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[CredentialAcademicSubject] -- @@ -1690,7 +1690,7 @@ CREATE TABLE [edfi].[CredentialAcademicSubject] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CredentialAcademicSubject] ADD CONSTRAINT [CredentialAcademicSubject_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CredentialAcademicSubject] ADD CONSTRAINT [CredentialAcademicSubject_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CredentialEndorsement] -- @@ -1706,7 +1706,7 @@ CREATE TABLE [edfi].[CredentialEndorsement] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CredentialEndorsement] ADD CONSTRAINT [CredentialEndorsement_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CredentialEndorsement] ADD CONSTRAINT [CredentialEndorsement_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CredentialFieldDescriptor] -- @@ -1731,7 +1731,7 @@ CREATE TABLE [edfi].[CredentialGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[CredentialGradeLevel] ADD CONSTRAINT [CredentialGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[CredentialGradeLevel] ADD CONSTRAINT [CredentialGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[CredentialTypeDescriptor] -- @@ -1812,11 +1812,11 @@ CREATE TABLE [edfi].[Descriptor] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Descriptor] ADD CONSTRAINT [Descriptor_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Descriptor] ADD CONSTRAINT [Descriptor_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Descriptor] ADD CONSTRAINT [Descriptor_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Descriptor] ADD CONSTRAINT [Descriptor_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Descriptor] ADD CONSTRAINT [Descriptor_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO CREATE UNIQUE INDEX UX_Descriptor_Uri ON [edfi].[Descriptor] (Uri) INCLUDE (DescriptorId, Discriminator) GO @@ -1839,11 +1839,11 @@ CREATE TABLE [edfi].[DescriptorMapping] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DescriptorMapping] ADD CONSTRAINT [DescriptorMapping_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DescriptorMapping] ADD CONSTRAINT [DescriptorMapping_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[DescriptorMapping] ADD CONSTRAINT [DescriptorMapping_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[DescriptorMapping] ADD CONSTRAINT [DescriptorMapping_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[DescriptorMapping] ADD CONSTRAINT [DescriptorMapping_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[DescriptorMappingModelEntity] -- @@ -1863,7 +1863,7 @@ CREATE TABLE [edfi].[DescriptorMappingModelEntity] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DescriptorMappingModelEntity] ADD CONSTRAINT [DescriptorMappingModelEntity_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DescriptorMappingModelEntity] ADD CONSTRAINT [DescriptorMappingModelEntity_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[DiagnosisDescriptor] -- @@ -1944,11 +1944,11 @@ CREATE TABLE [edfi].[DisciplineAction] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DisciplineAction] ADD CONSTRAINT [DisciplineAction_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DisciplineAction] ADD CONSTRAINT [DisciplineAction_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[DisciplineAction] ADD CONSTRAINT [DisciplineAction_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[DisciplineAction] ADD CONSTRAINT [DisciplineAction_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[DisciplineAction] ADD CONSTRAINT [DisciplineAction_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[DisciplineActionDiscipline] -- @@ -1966,7 +1966,7 @@ CREATE TABLE [edfi].[DisciplineActionDiscipline] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DisciplineActionDiscipline] ADD CONSTRAINT [DisciplineActionDiscipline_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DisciplineActionDiscipline] ADD CONSTRAINT [DisciplineActionDiscipline_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[DisciplineActionLengthDifferenceReasonDescriptor] -- @@ -1993,7 +1993,7 @@ CREATE TABLE [edfi].[DisciplineActionStaff] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DisciplineActionStaff] ADD CONSTRAINT [DisciplineActionStaff_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DisciplineActionStaff] ADD CONSTRAINT [DisciplineActionStaff_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[DisciplineActionStudentDisciplineIncidentAssociation] -- @@ -2013,7 +2013,7 @@ CREATE TABLE [edfi].[DisciplineActionStudentDisciplineIncidentAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DisciplineActionStudentDisciplineIncidentAssociation] ADD CONSTRAINT [DisciplineActionStudentDisciplineIncidentAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DisciplineActionStudentDisciplineIncidentAssociation] ADD CONSTRAINT [DisciplineActionStudentDisciplineIncidentAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[DisciplineActionStudentDisciplineIncidentBehaviorAssociation] -- @@ -2035,7 +2035,7 @@ CREATE TABLE [edfi].[DisciplineActionStudentDisciplineIncidentBehaviorAssociatio ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DisciplineActionStudentDisciplineIncidentBehaviorAssociation] ADD CONSTRAINT [DisciplineActionStudentDisciplineIncidentBehaviorAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DisciplineActionStudentDisciplineIncidentBehaviorAssociation] ADD CONSTRAINT [DisciplineActionStudentDisciplineIncidentBehaviorAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[DisciplineDescriptor] -- @@ -2071,11 +2071,11 @@ CREATE TABLE [edfi].[DisciplineIncident] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DisciplineIncident] ADD CONSTRAINT [DisciplineIncident_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DisciplineIncident] ADD CONSTRAINT [DisciplineIncident_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[DisciplineIncident] ADD CONSTRAINT [DisciplineIncident_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[DisciplineIncident] ADD CONSTRAINT [DisciplineIncident_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[DisciplineIncident] ADD CONSTRAINT [DisciplineIncident_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[DisciplineIncidentBehavior] -- @@ -2092,7 +2092,7 @@ CREATE TABLE [edfi].[DisciplineIncidentBehavior] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DisciplineIncidentBehavior] ADD CONSTRAINT [DisciplineIncidentBehavior_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DisciplineIncidentBehavior] ADD CONSTRAINT [DisciplineIncidentBehavior_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[DisciplineIncidentExternalParticipant] -- @@ -2112,7 +2112,7 @@ CREATE TABLE [edfi].[DisciplineIncidentExternalParticipant] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DisciplineIncidentExternalParticipant] ADD CONSTRAINT [DisciplineIncidentExternalParticipant_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DisciplineIncidentExternalParticipant] ADD CONSTRAINT [DisciplineIncidentExternalParticipant_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[DisciplineIncidentParticipationCodeDescriptor] -- @@ -2137,7 +2137,7 @@ CREATE TABLE [edfi].[DisciplineIncidentWeapon] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[DisciplineIncidentWeapon] ADD CONSTRAINT [DisciplineIncidentWeapon_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[DisciplineIncidentWeapon] ADD CONSTRAINT [DisciplineIncidentWeapon_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationalEnvironmentDescriptor] -- @@ -2177,11 +2177,11 @@ CREATE TABLE [edfi].[EducationContent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationContent] ADD CONSTRAINT [EducationContent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationContent] ADD CONSTRAINT [EducationContent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[EducationContent] ADD CONSTRAINT [EducationContent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[EducationContent] ADD CONSTRAINT [EducationContent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[EducationContent] ADD CONSTRAINT [EducationContent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[EducationContentAppropriateGradeLevel] -- @@ -2195,7 +2195,7 @@ CREATE TABLE [edfi].[EducationContentAppropriateGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationContentAppropriateGradeLevel] ADD CONSTRAINT [EducationContentAppropriateGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationContentAppropriateGradeLevel] ADD CONSTRAINT [EducationContentAppropriateGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationContentAppropriateSex] -- @@ -2209,7 +2209,7 @@ CREATE TABLE [edfi].[EducationContentAppropriateSex] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationContentAppropriateSex] ADD CONSTRAINT [EducationContentAppropriateSex_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationContentAppropriateSex] ADD CONSTRAINT [EducationContentAppropriateSex_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationContentAuthor] -- @@ -2223,7 +2223,7 @@ CREATE TABLE [edfi].[EducationContentAuthor] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationContentAuthor] ADD CONSTRAINT [EducationContentAuthor_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationContentAuthor] ADD CONSTRAINT [EducationContentAuthor_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationContentDerivativeSourceEducationContent] -- @@ -2237,7 +2237,7 @@ CREATE TABLE [edfi].[EducationContentDerivativeSourceEducationContent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationContentDerivativeSourceEducationContent] ADD CONSTRAINT [EducationContentDerivativeSourceEducationContent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationContentDerivativeSourceEducationContent] ADD CONSTRAINT [EducationContentDerivativeSourceEducationContent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationContentDerivativeSourceLearningResourceMetadataURI] -- @@ -2251,7 +2251,7 @@ CREATE TABLE [edfi].[EducationContentDerivativeSourceLearningResourceMetadataURI ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationContentDerivativeSourceLearningResourceMetadataURI] ADD CONSTRAINT [EducationContentDerivativeSourceLearningResourceMetadataURI_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationContentDerivativeSourceLearningResourceMetadataURI] ADD CONSTRAINT [EducationContentDerivativeSourceLearningResourceMetadataURI_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationContentDerivativeSourceURI] -- @@ -2265,7 +2265,7 @@ CREATE TABLE [edfi].[EducationContentDerivativeSourceURI] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationContentDerivativeSourceURI] ADD CONSTRAINT [EducationContentDerivativeSourceURI_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationContentDerivativeSourceURI] ADD CONSTRAINT [EducationContentDerivativeSourceURI_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationContentLanguage] -- @@ -2279,7 +2279,7 @@ CREATE TABLE [edfi].[EducationContentLanguage] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationContentLanguage] ADD CONSTRAINT [EducationContentLanguage_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationContentLanguage] ADD CONSTRAINT [EducationContentLanguage_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationOrganization] -- @@ -2298,11 +2298,11 @@ CREATE TABLE [edfi].[EducationOrganization] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganization] ADD CONSTRAINT [EducationOrganization_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganization] ADD CONSTRAINT [EducationOrganization_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[EducationOrganization] ADD CONSTRAINT [EducationOrganization_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[EducationOrganization] ADD CONSTRAINT [EducationOrganization_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[EducationOrganization] ADD CONSTRAINT [EducationOrganization_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[EducationOrganizationAddress] -- @@ -2333,7 +2333,7 @@ CREATE TABLE [edfi].[EducationOrganizationAddress] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationAddress] ADD CONSTRAINT [EducationOrganizationAddress_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationAddress] ADD CONSTRAINT [EducationOrganizationAddress_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationOrganizationAddressPeriod] -- @@ -2358,7 +2358,7 @@ CREATE TABLE [edfi].[EducationOrganizationAddressPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationAddressPeriod] ADD CONSTRAINT [EducationOrganizationAddressPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationAddressPeriod] ADD CONSTRAINT [EducationOrganizationAddressPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationOrganizationAssociationTypeDescriptor] -- @@ -2381,7 +2381,7 @@ CREATE TABLE [edfi].[EducationOrganizationCategory] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationCategory] ADD CONSTRAINT [EducationOrganizationCategory_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationCategory] ADD CONSTRAINT [EducationOrganizationCategory_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationOrganizationCategoryDescriptor] -- @@ -2405,7 +2405,7 @@ CREATE TABLE [edfi].[EducationOrganizationIdentificationCode] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationIdentificationCode] ADD CONSTRAINT [EducationOrganizationIdentificationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationIdentificationCode] ADD CONSTRAINT [EducationOrganizationIdentificationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationOrganizationIdentificationSystemDescriptor] -- @@ -2432,7 +2432,7 @@ CREATE TABLE [edfi].[EducationOrganizationIndicator] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationIndicator] ADD CONSTRAINT [EducationOrganizationIndicator_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationIndicator] ADD CONSTRAINT [EducationOrganizationIndicator_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationOrganizationIndicatorPeriod] -- @@ -2449,7 +2449,7 @@ CREATE TABLE [edfi].[EducationOrganizationIndicatorPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationIndicatorPeriod] ADD CONSTRAINT [EducationOrganizationIndicatorPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationIndicatorPeriod] ADD CONSTRAINT [EducationOrganizationIndicatorPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationOrganizationInstitutionTelephone] -- @@ -2464,7 +2464,7 @@ CREATE TABLE [edfi].[EducationOrganizationInstitutionTelephone] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationInstitutionTelephone] ADD CONSTRAINT [EducationOrganizationInstitutionTelephone_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationInstitutionTelephone] ADD CONSTRAINT [EducationOrganizationInstitutionTelephone_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationOrganizationInternationalAddress] -- @@ -2487,7 +2487,7 @@ CREATE TABLE [edfi].[EducationOrganizationInternationalAddress] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationInternationalAddress] ADD CONSTRAINT [EducationOrganizationInternationalAddress_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationInternationalAddress] ADD CONSTRAINT [EducationOrganizationInternationalAddress_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[EducationOrganizationInterventionPrescriptionAssociation] -- @@ -2508,11 +2508,11 @@ CREATE TABLE [edfi].[EducationOrganizationInterventionPrescriptionAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationInterventionPrescriptionAssociation] ADD CONSTRAINT [EducationOrganizationInterventionPrescriptionAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationInterventionPrescriptionAssociation] ADD CONSTRAINT [EducationOrganizationInterventionPrescriptionAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[EducationOrganizationInterventionPrescriptionAssociation] ADD CONSTRAINT [EducationOrganizationInterventionPrescriptionAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[EducationOrganizationInterventionPrescriptionAssociation] ADD CONSTRAINT [EducationOrganizationInterventionPrescriptionAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[EducationOrganizationInterventionPrescriptionAssociation] ADD CONSTRAINT [EducationOrganizationInterventionPrescriptionAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[EducationOrganizationNetwork] -- @@ -2541,11 +2541,11 @@ CREATE TABLE [edfi].[EducationOrganizationNetworkAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationNetworkAssociation] ADD CONSTRAINT [EducationOrganizationNetworkAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationNetworkAssociation] ADD CONSTRAINT [EducationOrganizationNetworkAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[EducationOrganizationNetworkAssociation] ADD CONSTRAINT [EducationOrganizationNetworkAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[EducationOrganizationNetworkAssociation] ADD CONSTRAINT [EducationOrganizationNetworkAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[EducationOrganizationNetworkAssociation] ADD CONSTRAINT [EducationOrganizationNetworkAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[EducationOrganizationPeerAssociation] -- @@ -2562,11 +2562,11 @@ CREATE TABLE [edfi].[EducationOrganizationPeerAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[EducationOrganizationPeerAssociation] ADD CONSTRAINT [EducationOrganizationPeerAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[EducationOrganizationPeerAssociation] ADD CONSTRAINT [EducationOrganizationPeerAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[EducationOrganizationPeerAssociation] ADD CONSTRAINT [EducationOrganizationPeerAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[EducationOrganizationPeerAssociation] ADD CONSTRAINT [EducationOrganizationPeerAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[EducationOrganizationPeerAssociation] ADD CONSTRAINT [EducationOrganizationPeerAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[EducationPlanDescriptor] -- @@ -2660,11 +2660,11 @@ CREATE TABLE [edfi].[FeederSchoolAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[FeederSchoolAssociation] ADD CONSTRAINT [FeederSchoolAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[FeederSchoolAssociation] ADD CONSTRAINT [FeederSchoolAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[FeederSchoolAssociation] ADD CONSTRAINT [FeederSchoolAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[FeederSchoolAssociation] ADD CONSTRAINT [FeederSchoolAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[FeederSchoolAssociation] ADD CONSTRAINT [FeederSchoolAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[FinancialCollectionDescriptor] -- @@ -2691,11 +2691,11 @@ CREATE TABLE [edfi].[FunctionDimension] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[FunctionDimension] ADD CONSTRAINT [FunctionDimension_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[FunctionDimension] ADD CONSTRAINT [FunctionDimension_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[FunctionDimension] ADD CONSTRAINT [FunctionDimension_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[FunctionDimension] ADD CONSTRAINT [FunctionDimension_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[FunctionDimension] ADD CONSTRAINT [FunctionDimension_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[FunctionDimensionReportingTag] -- @@ -2711,7 +2711,7 @@ CREATE TABLE [edfi].[FunctionDimensionReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[FunctionDimensionReportingTag] ADD CONSTRAINT [FunctionDimensionReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[FunctionDimensionReportingTag] ADD CONSTRAINT [FunctionDimensionReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[FundDimension] -- @@ -2729,11 +2729,11 @@ CREATE TABLE [edfi].[FundDimension] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[FundDimension] ADD CONSTRAINT [FundDimension_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[FundDimension] ADD CONSTRAINT [FundDimension_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[FundDimension] ADD CONSTRAINT [FundDimension_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[FundDimension] ADD CONSTRAINT [FundDimension_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[FundDimension] ADD CONSTRAINT [FundDimension_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[FundDimensionReportingTag] -- @@ -2749,7 +2749,7 @@ CREATE TABLE [edfi].[FundDimensionReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[FundDimensionReportingTag] ADD CONSTRAINT [FundDimensionReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[FundDimensionReportingTag] ADD CONSTRAINT [FundDimensionReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GeneralStudentProgramAssociation] -- @@ -2777,11 +2777,11 @@ CREATE TABLE [edfi].[GeneralStudentProgramAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GeneralStudentProgramAssociation] ADD CONSTRAINT [GeneralStudentProgramAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GeneralStudentProgramAssociation] ADD CONSTRAINT [GeneralStudentProgramAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[GeneralStudentProgramAssociation] ADD CONSTRAINT [GeneralStudentProgramAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[GeneralStudentProgramAssociation] ADD CONSTRAINT [GeneralStudentProgramAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[GeneralStudentProgramAssociation] ADD CONSTRAINT [GeneralStudentProgramAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[GeneralStudentProgramAssociationParticipationStatus] -- @@ -2807,7 +2807,7 @@ CREATE TABLE [edfi].[GeneralStudentProgramAssociationParticipationStatus] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GeneralStudentProgramAssociationParticipationStatus] ADD CONSTRAINT [GeneralStudentProgramAssociationParticipationStatus_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GeneralStudentProgramAssociationParticipationStatus] ADD CONSTRAINT [GeneralStudentProgramAssociationParticipationStatus_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GeneralStudentProgramAssociationProgramParticipationStatus] -- @@ -2835,7 +2835,7 @@ CREATE TABLE [edfi].[GeneralStudentProgramAssociationProgramParticipationStatus] ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GeneralStudentProgramAssociationProgramParticipationStatus] ADD CONSTRAINT [GeneralStudentProgramAssociationProgramParticipationStatus_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GeneralStudentProgramAssociationProgramParticipationStatus] ADD CONSTRAINT [GeneralStudentProgramAssociationProgramParticipationStatus_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[Grade] -- @@ -2876,11 +2876,11 @@ CREATE TABLE [edfi].[Grade] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Grade] ADD CONSTRAINT [Grade_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Grade] ADD CONSTRAINT [Grade_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Grade] ADD CONSTRAINT [Grade_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Grade] ADD CONSTRAINT [Grade_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Grade] ADD CONSTRAINT [Grade_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[GradebookEntry] -- @@ -2912,11 +2912,11 @@ CREATE TABLE [edfi].[GradebookEntry] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GradebookEntry] ADD CONSTRAINT [GradebookEntry_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GradebookEntry] ADD CONSTRAINT [GradebookEntry_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[GradebookEntry] ADD CONSTRAINT [GradebookEntry_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[GradebookEntry] ADD CONSTRAINT [GradebookEntry_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[GradebookEntry] ADD CONSTRAINT [GradebookEntry_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[GradebookEntryLearningStandard] -- @@ -2932,7 +2932,7 @@ CREATE TABLE [edfi].[GradebookEntryLearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GradebookEntryLearningStandard] ADD CONSTRAINT [GradebookEntryLearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GradebookEntryLearningStandard] ADD CONSTRAINT [GradebookEntryLearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GradebookEntryTypeDescriptor] -- @@ -2979,7 +2979,7 @@ CREATE TABLE [edfi].[GradeLearningStandardGrade] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GradeLearningStandardGrade] ADD CONSTRAINT [GradeLearningStandardGrade_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GradeLearningStandardGrade] ADD CONSTRAINT [GradeLearningStandardGrade_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GradeLevelDescriptor] -- @@ -3030,11 +3030,11 @@ CREATE TABLE [edfi].[GradingPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GradingPeriod] ADD CONSTRAINT [GradingPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GradingPeriod] ADD CONSTRAINT [GradingPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[GradingPeriod] ADD CONSTRAINT [GradingPeriod_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[GradingPeriod] ADD CONSTRAINT [GradingPeriod_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[GradingPeriod] ADD CONSTRAINT [GradingPeriod_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[GradingPeriodDescriptor] -- @@ -3066,11 +3066,11 @@ CREATE TABLE [edfi].[GraduationPlan] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GraduationPlan] ADD CONSTRAINT [GraduationPlan_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GraduationPlan] ADD CONSTRAINT [GraduationPlan_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[GraduationPlan] ADD CONSTRAINT [GraduationPlan_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[GraduationPlan] ADD CONSTRAINT [GraduationPlan_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[GraduationPlan] ADD CONSTRAINT [GraduationPlan_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[GraduationPlanCreditsByCourse] -- @@ -3092,7 +3092,7 @@ CREATE TABLE [edfi].[GraduationPlanCreditsByCourse] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GraduationPlanCreditsByCourse] ADD CONSTRAINT [GraduationPlanCreditsByCourse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GraduationPlanCreditsByCourse] ADD CONSTRAINT [GraduationPlanCreditsByCourse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GraduationPlanCreditsByCourseCourse] -- @@ -3114,7 +3114,7 @@ CREATE TABLE [edfi].[GraduationPlanCreditsByCourseCourse] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GraduationPlanCreditsByCourseCourse] ADD CONSTRAINT [GraduationPlanCreditsByCourseCourse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GraduationPlanCreditsByCourseCourse] ADD CONSTRAINT [GraduationPlanCreditsByCourseCourse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GraduationPlanCreditsByCreditCategory] -- @@ -3135,7 +3135,7 @@ CREATE TABLE [edfi].[GraduationPlanCreditsByCreditCategory] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GraduationPlanCreditsByCreditCategory] ADD CONSTRAINT [GraduationPlanCreditsByCreditCategory_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GraduationPlanCreditsByCreditCategory] ADD CONSTRAINT [GraduationPlanCreditsByCreditCategory_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GraduationPlanCreditsBySubject] -- @@ -3156,7 +3156,7 @@ CREATE TABLE [edfi].[GraduationPlanCreditsBySubject] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GraduationPlanCreditsBySubject] ADD CONSTRAINT [GraduationPlanCreditsBySubject_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GraduationPlanCreditsBySubject] ADD CONSTRAINT [GraduationPlanCreditsBySubject_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GraduationPlanRequiredAssessment] -- @@ -3176,7 +3176,7 @@ CREATE TABLE [edfi].[GraduationPlanRequiredAssessment] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GraduationPlanRequiredAssessment] ADD CONSTRAINT [GraduationPlanRequiredAssessment_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GraduationPlanRequiredAssessment] ADD CONSTRAINT [GraduationPlanRequiredAssessment_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GraduationPlanRequiredAssessmentPerformanceLevel] -- @@ -3202,7 +3202,7 @@ CREATE TABLE [edfi].[GraduationPlanRequiredAssessmentPerformanceLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GraduationPlanRequiredAssessmentPerformanceLevel] ADD CONSTRAINT [GraduationPlanRequiredAssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GraduationPlanRequiredAssessmentPerformanceLevel] ADD CONSTRAINT [GraduationPlanRequiredAssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GraduationPlanRequiredAssessmentScore] -- @@ -3227,7 +3227,7 @@ CREATE TABLE [edfi].[GraduationPlanRequiredAssessmentScore] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[GraduationPlanRequiredAssessmentScore] ADD CONSTRAINT [GraduationPlanRequiredAssessmentScore_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[GraduationPlanRequiredAssessmentScore] ADD CONSTRAINT [GraduationPlanRequiredAssessmentScore_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[GraduationPlanTypeDescriptor] -- @@ -3377,11 +3377,11 @@ CREATE TABLE [edfi].[Intervention] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Intervention] ADD CONSTRAINT [Intervention_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Intervention] ADD CONSTRAINT [Intervention_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Intervention] ADD CONSTRAINT [Intervention_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Intervention] ADD CONSTRAINT [Intervention_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Intervention] ADD CONSTRAINT [Intervention_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[InterventionAppropriateGradeLevel] -- @@ -3397,7 +3397,7 @@ CREATE TABLE [edfi].[InterventionAppropriateGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionAppropriateGradeLevel] ADD CONSTRAINT [InterventionAppropriateGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionAppropriateGradeLevel] ADD CONSTRAINT [InterventionAppropriateGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionAppropriateSex] -- @@ -3413,7 +3413,7 @@ CREATE TABLE [edfi].[InterventionAppropriateSex] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionAppropriateSex] ADD CONSTRAINT [InterventionAppropriateSex_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionAppropriateSex] ADD CONSTRAINT [InterventionAppropriateSex_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionClassDescriptor] -- @@ -3438,7 +3438,7 @@ CREATE TABLE [edfi].[InterventionDiagnosis] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionDiagnosis] ADD CONSTRAINT [InterventionDiagnosis_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionDiagnosis] ADD CONSTRAINT [InterventionDiagnosis_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionEducationContent] -- @@ -3454,7 +3454,7 @@ CREATE TABLE [edfi].[InterventionEducationContent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionEducationContent] ADD CONSTRAINT [InterventionEducationContent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionEducationContent] ADD CONSTRAINT [InterventionEducationContent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionEffectivenessRatingDescriptor] -- @@ -3481,7 +3481,7 @@ CREATE TABLE [edfi].[InterventionInterventionPrescription] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionInterventionPrescription] ADD CONSTRAINT [InterventionInterventionPrescription_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionInterventionPrescription] ADD CONSTRAINT [InterventionInterventionPrescription_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionLearningResourceMetadataURI] -- @@ -3497,7 +3497,7 @@ CREATE TABLE [edfi].[InterventionLearningResourceMetadataURI] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionLearningResourceMetadataURI] ADD CONSTRAINT [InterventionLearningResourceMetadataURI_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionLearningResourceMetadataURI] ADD CONSTRAINT [InterventionLearningResourceMetadataURI_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionMeetingTime] -- @@ -3515,7 +3515,7 @@ CREATE TABLE [edfi].[InterventionMeetingTime] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionMeetingTime] ADD CONSTRAINT [InterventionMeetingTime_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionMeetingTime] ADD CONSTRAINT [InterventionMeetingTime_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionPopulationServed] -- @@ -3531,7 +3531,7 @@ CREATE TABLE [edfi].[InterventionPopulationServed] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionPopulationServed] ADD CONSTRAINT [InterventionPopulationServed_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionPopulationServed] ADD CONSTRAINT [InterventionPopulationServed_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionPrescription] -- @@ -3553,11 +3553,11 @@ CREATE TABLE [edfi].[InterventionPrescription] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionPrescription] ADD CONSTRAINT [InterventionPrescription_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionPrescription] ADD CONSTRAINT [InterventionPrescription_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[InterventionPrescription] ADD CONSTRAINT [InterventionPrescription_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[InterventionPrescription] ADD CONSTRAINT [InterventionPrescription_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[InterventionPrescription] ADD CONSTRAINT [InterventionPrescription_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[InterventionPrescriptionAppropriateGradeLevel] -- @@ -3573,7 +3573,7 @@ CREATE TABLE [edfi].[InterventionPrescriptionAppropriateGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionPrescriptionAppropriateGradeLevel] ADD CONSTRAINT [InterventionPrescriptionAppropriateGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionPrescriptionAppropriateGradeLevel] ADD CONSTRAINT [InterventionPrescriptionAppropriateGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionPrescriptionAppropriateSex] -- @@ -3589,7 +3589,7 @@ CREATE TABLE [edfi].[InterventionPrescriptionAppropriateSex] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionPrescriptionAppropriateSex] ADD CONSTRAINT [InterventionPrescriptionAppropriateSex_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionPrescriptionAppropriateSex] ADD CONSTRAINT [InterventionPrescriptionAppropriateSex_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionPrescriptionDiagnosis] -- @@ -3605,7 +3605,7 @@ CREATE TABLE [edfi].[InterventionPrescriptionDiagnosis] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionPrescriptionDiagnosis] ADD CONSTRAINT [InterventionPrescriptionDiagnosis_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionPrescriptionDiagnosis] ADD CONSTRAINT [InterventionPrescriptionDiagnosis_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionPrescriptionEducationContent] -- @@ -3621,7 +3621,7 @@ CREATE TABLE [edfi].[InterventionPrescriptionEducationContent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionPrescriptionEducationContent] ADD CONSTRAINT [InterventionPrescriptionEducationContent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionPrescriptionEducationContent] ADD CONSTRAINT [InterventionPrescriptionEducationContent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionPrescriptionLearningResourceMetadataURI] -- @@ -3637,7 +3637,7 @@ CREATE TABLE [edfi].[InterventionPrescriptionLearningResourceMetadataURI] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionPrescriptionLearningResourceMetadataURI] ADD CONSTRAINT [InterventionPrescriptionLearningResourceMetadataURI_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionPrescriptionLearningResourceMetadataURI] ADD CONSTRAINT [InterventionPrescriptionLearningResourceMetadataURI_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionPrescriptionPopulationServed] -- @@ -3653,7 +3653,7 @@ CREATE TABLE [edfi].[InterventionPrescriptionPopulationServed] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionPrescriptionPopulationServed] ADD CONSTRAINT [InterventionPrescriptionPopulationServed_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionPrescriptionPopulationServed] ADD CONSTRAINT [InterventionPrescriptionPopulationServed_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionPrescriptionURI] -- @@ -3669,7 +3669,7 @@ CREATE TABLE [edfi].[InterventionPrescriptionURI] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionPrescriptionURI] ADD CONSTRAINT [InterventionPrescriptionURI_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionPrescriptionURI] ADD CONSTRAINT [InterventionPrescriptionURI_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionStaff] -- @@ -3685,7 +3685,7 @@ CREATE TABLE [edfi].[InterventionStaff] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStaff] ADD CONSTRAINT [InterventionStaff_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStaff] ADD CONSTRAINT [InterventionStaff_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionStudy] -- @@ -3707,11 +3707,11 @@ CREATE TABLE [edfi].[InterventionStudy] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStudy] ADD CONSTRAINT [InterventionStudy_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStudy] ADD CONSTRAINT [InterventionStudy_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[InterventionStudy] ADD CONSTRAINT [InterventionStudy_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[InterventionStudy] ADD CONSTRAINT [InterventionStudy_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[InterventionStudy] ADD CONSTRAINT [InterventionStudy_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[InterventionStudyAppropriateGradeLevel] -- @@ -3727,7 +3727,7 @@ CREATE TABLE [edfi].[InterventionStudyAppropriateGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStudyAppropriateGradeLevel] ADD CONSTRAINT [InterventionStudyAppropriateGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStudyAppropriateGradeLevel] ADD CONSTRAINT [InterventionStudyAppropriateGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionStudyAppropriateSex] -- @@ -3743,7 +3743,7 @@ CREATE TABLE [edfi].[InterventionStudyAppropriateSex] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStudyAppropriateSex] ADD CONSTRAINT [InterventionStudyAppropriateSex_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStudyAppropriateSex] ADD CONSTRAINT [InterventionStudyAppropriateSex_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionStudyEducationContent] -- @@ -3759,7 +3759,7 @@ CREATE TABLE [edfi].[InterventionStudyEducationContent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStudyEducationContent] ADD CONSTRAINT [InterventionStudyEducationContent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStudyEducationContent] ADD CONSTRAINT [InterventionStudyEducationContent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionStudyInterventionEffectiveness] -- @@ -3781,7 +3781,7 @@ CREATE TABLE [edfi].[InterventionStudyInterventionEffectiveness] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStudyInterventionEffectiveness] ADD CONSTRAINT [InterventionStudyInterventionEffectiveness_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStudyInterventionEffectiveness] ADD CONSTRAINT [InterventionStudyInterventionEffectiveness_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionStudyLearningResourceMetadataURI] -- @@ -3797,7 +3797,7 @@ CREATE TABLE [edfi].[InterventionStudyLearningResourceMetadataURI] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStudyLearningResourceMetadataURI] ADD CONSTRAINT [InterventionStudyLearningResourceMetadataURI_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStudyLearningResourceMetadataURI] ADD CONSTRAINT [InterventionStudyLearningResourceMetadataURI_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionStudyPopulationServed] -- @@ -3813,7 +3813,7 @@ CREATE TABLE [edfi].[InterventionStudyPopulationServed] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStudyPopulationServed] ADD CONSTRAINT [InterventionStudyPopulationServed_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStudyPopulationServed] ADD CONSTRAINT [InterventionStudyPopulationServed_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionStudyStateAbbreviation] -- @@ -3829,7 +3829,7 @@ CREATE TABLE [edfi].[InterventionStudyStateAbbreviation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStudyStateAbbreviation] ADD CONSTRAINT [InterventionStudyStateAbbreviation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStudyStateAbbreviation] ADD CONSTRAINT [InterventionStudyStateAbbreviation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionStudyURI] -- @@ -3845,7 +3845,7 @@ CREATE TABLE [edfi].[InterventionStudyURI] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionStudyURI] ADD CONSTRAINT [InterventionStudyURI_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionStudyURI] ADD CONSTRAINT [InterventionStudyURI_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[InterventionURI] -- @@ -3861,7 +3861,7 @@ CREATE TABLE [edfi].[InterventionURI] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[InterventionURI] ADD CONSTRAINT [InterventionURI_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[InterventionURI] ADD CONSTRAINT [InterventionURI_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LanguageDescriptor] -- @@ -3911,11 +3911,11 @@ CREATE TABLE [edfi].[LearningObjective] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningObjective] ADD CONSTRAINT [LearningObjective_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningObjective] ADD CONSTRAINT [LearningObjective_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[LearningObjective] ADD CONSTRAINT [LearningObjective_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[LearningObjective] ADD CONSTRAINT [LearningObjective_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[LearningObjective] ADD CONSTRAINT [LearningObjective_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[LearningObjectiveAcademicSubject] -- @@ -3931,7 +3931,7 @@ CREATE TABLE [edfi].[LearningObjectiveAcademicSubject] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningObjectiveAcademicSubject] ADD CONSTRAINT [LearningObjectiveAcademicSubject_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningObjectiveAcademicSubject] ADD CONSTRAINT [LearningObjectiveAcademicSubject_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningObjectiveContentStandard] -- @@ -3954,7 +3954,7 @@ CREATE TABLE [edfi].[LearningObjectiveContentStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningObjectiveContentStandard] ADD CONSTRAINT [LearningObjectiveContentStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningObjectiveContentStandard] ADD CONSTRAINT [LearningObjectiveContentStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningObjectiveContentStandardAuthor] -- @@ -3970,7 +3970,7 @@ CREATE TABLE [edfi].[LearningObjectiveContentStandardAuthor] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningObjectiveContentStandardAuthor] ADD CONSTRAINT [LearningObjectiveContentStandardAuthor_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningObjectiveContentStandardAuthor] ADD CONSTRAINT [LearningObjectiveContentStandardAuthor_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningObjectiveGradeLevel] -- @@ -3986,7 +3986,7 @@ CREATE TABLE [edfi].[LearningObjectiveGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningObjectiveGradeLevel] ADD CONSTRAINT [LearningObjectiveGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningObjectiveGradeLevel] ADD CONSTRAINT [LearningObjectiveGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningObjectiveLearningStandard] -- @@ -4002,7 +4002,7 @@ CREATE TABLE [edfi].[LearningObjectiveLearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningObjectiveLearningStandard] ADD CONSTRAINT [LearningObjectiveLearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningObjectiveLearningStandard] ADD CONSTRAINT [LearningObjectiveLearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningStandard] -- @@ -4026,11 +4026,11 @@ CREATE TABLE [edfi].[LearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningStandard] ADD CONSTRAINT [LearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningStandard] ADD CONSTRAINT [LearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[LearningStandard] ADD CONSTRAINT [LearningStandard_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[LearningStandard] ADD CONSTRAINT [LearningStandard_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[LearningStandard] ADD CONSTRAINT [LearningStandard_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[LearningStandardAcademicSubject] -- @@ -4044,7 +4044,7 @@ CREATE TABLE [edfi].[LearningStandardAcademicSubject] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningStandardAcademicSubject] ADD CONSTRAINT [LearningStandardAcademicSubject_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningStandardAcademicSubject] ADD CONSTRAINT [LearningStandardAcademicSubject_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningStandardCategoryDescriptor] -- @@ -4074,7 +4074,7 @@ CREATE TABLE [edfi].[LearningStandardContentStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningStandardContentStandard] ADD CONSTRAINT [LearningStandardContentStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningStandardContentStandard] ADD CONSTRAINT [LearningStandardContentStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningStandardContentStandardAuthor] -- @@ -4088,7 +4088,7 @@ CREATE TABLE [edfi].[LearningStandardContentStandardAuthor] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningStandardContentStandardAuthor] ADD CONSTRAINT [LearningStandardContentStandardAuthor_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningStandardContentStandardAuthor] ADD CONSTRAINT [LearningStandardContentStandardAuthor_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningStandardEquivalenceAssociation] -- @@ -4110,11 +4110,11 @@ CREATE TABLE [edfi].[LearningStandardEquivalenceAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningStandardEquivalenceAssociation] ADD CONSTRAINT [LearningStandardEquivalenceAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningStandardEquivalenceAssociation] ADD CONSTRAINT [LearningStandardEquivalenceAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[LearningStandardEquivalenceAssociation] ADD CONSTRAINT [LearningStandardEquivalenceAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[LearningStandardEquivalenceAssociation] ADD CONSTRAINT [LearningStandardEquivalenceAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[LearningStandardEquivalenceAssociation] ADD CONSTRAINT [LearningStandardEquivalenceAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[LearningStandardEquivalenceStrengthDescriptor] -- @@ -4137,7 +4137,7 @@ CREATE TABLE [edfi].[LearningStandardGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningStandardGradeLevel] ADD CONSTRAINT [LearningStandardGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningStandardGradeLevel] ADD CONSTRAINT [LearningStandardGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningStandardIdentificationCode] -- @@ -4153,7 +4153,7 @@ CREATE TABLE [edfi].[LearningStandardIdentificationCode] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningStandardIdentificationCode] ADD CONSTRAINT [LearningStandardIdentificationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningStandardIdentificationCode] ADD CONSTRAINT [LearningStandardIdentificationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningStandardPrerequisiteLearningStandard] -- @@ -4167,7 +4167,7 @@ CREATE TABLE [edfi].[LearningStandardPrerequisiteLearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LearningStandardPrerequisiteLearningStandard] ADD CONSTRAINT [LearningStandardPrerequisiteLearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LearningStandardPrerequisiteLearningStandard] ADD CONSTRAINT [LearningStandardPrerequisiteLearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LearningStandardScopeDescriptor] -- @@ -4234,11 +4234,11 @@ CREATE TABLE [edfi].[LocalAccount] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LocalAccount] ADD CONSTRAINT [LocalAccount_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LocalAccount] ADD CONSTRAINT [LocalAccount_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[LocalAccount] ADD CONSTRAINT [LocalAccount_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[LocalAccount] ADD CONSTRAINT [LocalAccount_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[LocalAccount] ADD CONSTRAINT [LocalAccount_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[LocalAccountReportingTag] -- @@ -4257,7 +4257,7 @@ CREATE TABLE [edfi].[LocalAccountReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LocalAccountReportingTag] ADD CONSTRAINT [LocalAccountReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LocalAccountReportingTag] ADD CONSTRAINT [LocalAccountReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LocalActual] -- @@ -4280,11 +4280,11 @@ CREATE TABLE [edfi].[LocalActual] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LocalActual] ADD CONSTRAINT [LocalActual_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LocalActual] ADD CONSTRAINT [LocalActual_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[LocalActual] ADD CONSTRAINT [LocalActual_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[LocalActual] ADD CONSTRAINT [LocalActual_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[LocalActual] ADD CONSTRAINT [LocalActual_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[LocalBudget] -- @@ -4307,11 +4307,11 @@ CREATE TABLE [edfi].[LocalBudget] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LocalBudget] ADD CONSTRAINT [LocalBudget_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LocalBudget] ADD CONSTRAINT [LocalBudget_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[LocalBudget] ADD CONSTRAINT [LocalBudget_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[LocalBudget] ADD CONSTRAINT [LocalBudget_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[LocalBudget] ADD CONSTRAINT [LocalBudget_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[LocalContractedStaff] -- @@ -4336,11 +4336,11 @@ CREATE TABLE [edfi].[LocalContractedStaff] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LocalContractedStaff] ADD CONSTRAINT [LocalContractedStaff_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LocalContractedStaff] ADD CONSTRAINT [LocalContractedStaff_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[LocalContractedStaff] ADD CONSTRAINT [LocalContractedStaff_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[LocalContractedStaff] ADD CONSTRAINT [LocalContractedStaff_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[LocalContractedStaff] ADD CONSTRAINT [LocalContractedStaff_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[LocaleDescriptor] -- @@ -4379,7 +4379,7 @@ CREATE TABLE [edfi].[LocalEducationAgencyAccountability] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LocalEducationAgencyAccountability] ADD CONSTRAINT [LocalEducationAgencyAccountability_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LocalEducationAgencyAccountability] ADD CONSTRAINT [LocalEducationAgencyAccountability_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LocalEducationAgencyCategoryDescriptor] -- @@ -4410,7 +4410,7 @@ CREATE TABLE [edfi].[LocalEducationAgencyFederalFunds] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LocalEducationAgencyFederalFunds] ADD CONSTRAINT [LocalEducationAgencyFederalFunds_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LocalEducationAgencyFederalFunds] ADD CONSTRAINT [LocalEducationAgencyFederalFunds_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[LocalEncumbrance] -- @@ -4433,11 +4433,11 @@ CREATE TABLE [edfi].[LocalEncumbrance] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LocalEncumbrance] ADD CONSTRAINT [LocalEncumbrance_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LocalEncumbrance] ADD CONSTRAINT [LocalEncumbrance_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[LocalEncumbrance] ADD CONSTRAINT [LocalEncumbrance_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[LocalEncumbrance] ADD CONSTRAINT [LocalEncumbrance_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[LocalEncumbrance] ADD CONSTRAINT [LocalEncumbrance_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[LocalPayroll] -- @@ -4462,11 +4462,11 @@ CREATE TABLE [edfi].[LocalPayroll] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[LocalPayroll] ADD CONSTRAINT [LocalPayroll_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[LocalPayroll] ADD CONSTRAINT [LocalPayroll_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[LocalPayroll] ADD CONSTRAINT [LocalPayroll_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[LocalPayroll] ADD CONSTRAINT [LocalPayroll_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[LocalPayroll] ADD CONSTRAINT [LocalPayroll_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[Location] -- @@ -4485,11 +4485,11 @@ CREATE TABLE [edfi].[Location] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Location] ADD CONSTRAINT [Location_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Location] ADD CONSTRAINT [Location_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Location] ADD CONSTRAINT [Location_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Location] ADD CONSTRAINT [Location_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Location] ADD CONSTRAINT [Location_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[MagnetSpecialProgramEmphasisSchoolDescriptor] -- @@ -4588,11 +4588,11 @@ CREATE TABLE [edfi].[ObjectDimension] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ObjectDimension] ADD CONSTRAINT [ObjectDimension_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ObjectDimension] ADD CONSTRAINT [ObjectDimension_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[ObjectDimension] ADD CONSTRAINT [ObjectDimension_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[ObjectDimension] ADD CONSTRAINT [ObjectDimension_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[ObjectDimension] ADD CONSTRAINT [ObjectDimension_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ObjectDimensionReportingTag] -- @@ -4608,7 +4608,7 @@ CREATE TABLE [edfi].[ObjectDimensionReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ObjectDimensionReportingTag] ADD CONSTRAINT [ObjectDimensionReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ObjectDimensionReportingTag] ADD CONSTRAINT [ObjectDimensionReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ObjectiveAssessment] -- @@ -4633,11 +4633,11 @@ CREATE TABLE [edfi].[ObjectiveAssessment] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ObjectiveAssessment] ADD CONSTRAINT [ObjectiveAssessment_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ObjectiveAssessment] ADD CONSTRAINT [ObjectiveAssessment_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[ObjectiveAssessment] ADD CONSTRAINT [ObjectiveAssessment_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[ObjectiveAssessment] ADD CONSTRAINT [ObjectiveAssessment_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[ObjectiveAssessment] ADD CONSTRAINT [ObjectiveAssessment_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ObjectiveAssessmentAssessmentItem] -- @@ -4655,7 +4655,7 @@ CREATE TABLE [edfi].[ObjectiveAssessmentAssessmentItem] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ObjectiveAssessmentAssessmentItem] ADD CONSTRAINT [ObjectiveAssessmentAssessmentItem_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ObjectiveAssessmentAssessmentItem] ADD CONSTRAINT [ObjectiveAssessmentAssessmentItem_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ObjectiveAssessmentLearningStandard] -- @@ -4673,7 +4673,7 @@ CREATE TABLE [edfi].[ObjectiveAssessmentLearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ObjectiveAssessmentLearningStandard] ADD CONSTRAINT [ObjectiveAssessmentLearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ObjectiveAssessmentLearningStandard] ADD CONSTRAINT [ObjectiveAssessmentLearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ObjectiveAssessmentPerformanceLevel] -- @@ -4697,7 +4697,7 @@ CREATE TABLE [edfi].[ObjectiveAssessmentPerformanceLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ObjectiveAssessmentPerformanceLevel] ADD CONSTRAINT [ObjectiveAssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ObjectiveAssessmentPerformanceLevel] ADD CONSTRAINT [ObjectiveAssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ObjectiveAssessmentScore] -- @@ -4718,7 +4718,7 @@ CREATE TABLE [edfi].[ObjectiveAssessmentScore] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ObjectiveAssessmentScore] ADD CONSTRAINT [ObjectiveAssessmentScore_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ObjectiveAssessmentScore] ADD CONSTRAINT [ObjectiveAssessmentScore_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[OldEthnicityDescriptor] -- @@ -4751,11 +4751,11 @@ CREATE TABLE [edfi].[OpenStaffPosition] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[OpenStaffPosition] ADD CONSTRAINT [OpenStaffPosition_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[OpenStaffPosition] ADD CONSTRAINT [OpenStaffPosition_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[OpenStaffPosition] ADD CONSTRAINT [OpenStaffPosition_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[OpenStaffPosition] ADD CONSTRAINT [OpenStaffPosition_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[OpenStaffPosition] ADD CONSTRAINT [OpenStaffPosition_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[OpenStaffPositionAcademicSubject] -- @@ -4771,7 +4771,7 @@ CREATE TABLE [edfi].[OpenStaffPositionAcademicSubject] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[OpenStaffPositionAcademicSubject] ADD CONSTRAINT [OpenStaffPositionAcademicSubject_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[OpenStaffPositionAcademicSubject] ADD CONSTRAINT [OpenStaffPositionAcademicSubject_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[OpenStaffPositionInstructionalGradeLevel] -- @@ -4787,7 +4787,7 @@ CREATE TABLE [edfi].[OpenStaffPositionInstructionalGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[OpenStaffPositionInstructionalGradeLevel] ADD CONSTRAINT [OpenStaffPositionInstructionalGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[OpenStaffPositionInstructionalGradeLevel] ADD CONSTRAINT [OpenStaffPositionInstructionalGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[OperationalStatusDescriptor] -- @@ -4814,11 +4814,11 @@ CREATE TABLE [edfi].[OperationalUnitDimension] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[OperationalUnitDimension] ADD CONSTRAINT [OperationalUnitDimension_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[OperationalUnitDimension] ADD CONSTRAINT [OperationalUnitDimension_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[OperationalUnitDimension] ADD CONSTRAINT [OperationalUnitDimension_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[OperationalUnitDimension] ADD CONSTRAINT [OperationalUnitDimension_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[OperationalUnitDimension] ADD CONSTRAINT [OperationalUnitDimension_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[OperationalUnitDimensionReportingTag] -- @@ -4834,7 +4834,7 @@ CREATE TABLE [edfi].[OperationalUnitDimensionReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[OperationalUnitDimensionReportingTag] ADD CONSTRAINT [OperationalUnitDimensionReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[OperationalUnitDimensionReportingTag] ADD CONSTRAINT [OperationalUnitDimensionReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[OrganizationDepartment] -- @@ -4885,11 +4885,11 @@ CREATE UNIQUE NONCLUSTERED INDEX [Parent_UI_ParentUniqueId] ON [edfi].[Parent] ( [ParentUniqueId] ASC ) INCLUDE (ParentUSI) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -ALTER TABLE [edfi].[Parent] ADD CONSTRAINT [Parent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Parent] ADD CONSTRAINT [Parent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Parent] ADD CONSTRAINT [Parent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Parent] ADD CONSTRAINT [Parent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Parent] ADD CONSTRAINT [Parent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ParentAddress] -- @@ -4920,7 +4920,7 @@ CREATE TABLE [edfi].[ParentAddress] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ParentAddress] ADD CONSTRAINT [ParentAddress_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ParentAddress] ADD CONSTRAINT [ParentAddress_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ParentAddressPeriod] -- @@ -4945,7 +4945,7 @@ CREATE TABLE [edfi].[ParentAddressPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ParentAddressPeriod] ADD CONSTRAINT [ParentAddressPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ParentAddressPeriod] ADD CONSTRAINT [ParentAddressPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ParentElectronicMail] -- @@ -4963,7 +4963,7 @@ CREATE TABLE [edfi].[ParentElectronicMail] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ParentElectronicMail] ADD CONSTRAINT [ParentElectronicMail_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ParentElectronicMail] ADD CONSTRAINT [ParentElectronicMail_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ParentInternationalAddress] -- @@ -4986,7 +4986,7 @@ CREATE TABLE [edfi].[ParentInternationalAddress] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ParentInternationalAddress] ADD CONSTRAINT [ParentInternationalAddress_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ParentInternationalAddress] ADD CONSTRAINT [ParentInternationalAddress_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ParentLanguage] -- @@ -5000,7 +5000,7 @@ CREATE TABLE [edfi].[ParentLanguage] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ParentLanguage] ADD CONSTRAINT [ParentLanguage_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ParentLanguage] ADD CONSTRAINT [ParentLanguage_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ParentLanguageUse] -- @@ -5016,7 +5016,7 @@ CREATE TABLE [edfi].[ParentLanguageUse] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ParentLanguageUse] ADD CONSTRAINT [ParentLanguageUse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ParentLanguageUse] ADD CONSTRAINT [ParentLanguageUse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ParentOtherName] -- @@ -5035,7 +5035,7 @@ CREATE TABLE [edfi].[ParentOtherName] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ParentOtherName] ADD CONSTRAINT [ParentOtherName_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ParentOtherName] ADD CONSTRAINT [ParentOtherName_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ParentPersonalIdentificationDocument] -- @@ -5056,7 +5056,7 @@ CREATE TABLE [edfi].[ParentPersonalIdentificationDocument] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ParentPersonalIdentificationDocument] ADD CONSTRAINT [ParentPersonalIdentificationDocument_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ParentPersonalIdentificationDocument] ADD CONSTRAINT [ParentPersonalIdentificationDocument_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ParentTelephone] -- @@ -5075,7 +5075,7 @@ CREATE TABLE [edfi].[ParentTelephone] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ParentTelephone] ADD CONSTRAINT [ParentTelephone_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ParentTelephone] ADD CONSTRAINT [ParentTelephone_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ParticipationDescriptor] -- @@ -5128,11 +5128,11 @@ CREATE TABLE [edfi].[Person] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Person] ADD CONSTRAINT [Person_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Person] ADD CONSTRAINT [Person_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Person] ADD CONSTRAINT [Person_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Person] ADD CONSTRAINT [Person_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Person] ADD CONSTRAINT [Person_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[PersonalInformationVerificationDescriptor] -- @@ -5188,11 +5188,11 @@ CREATE TABLE [edfi].[PostSecondaryEvent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[PostSecondaryEvent] ADD CONSTRAINT [PostSecondaryEvent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[PostSecondaryEvent] ADD CONSTRAINT [PostSecondaryEvent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[PostSecondaryEvent] ADD CONSTRAINT [PostSecondaryEvent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[PostSecondaryEvent] ADD CONSTRAINT [PostSecondaryEvent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[PostSecondaryEvent] ADD CONSTRAINT [PostSecondaryEvent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[PostSecondaryEventCategoryDescriptor] -- @@ -5235,7 +5235,7 @@ CREATE TABLE [edfi].[PostSecondaryInstitutionMediumOfInstruction] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[PostSecondaryInstitutionMediumOfInstruction] ADD CONSTRAINT [PostSecondaryInstitutionMediumOfInstruction_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[PostSecondaryInstitutionMediumOfInstruction] ADD CONSTRAINT [PostSecondaryInstitutionMediumOfInstruction_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[PrimaryLearningDeviceAccessDescriptor] -- @@ -5291,11 +5291,11 @@ CREATE TABLE [edfi].[Program] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Program] ADD CONSTRAINT [Program_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Program] ADD CONSTRAINT [Program_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Program] ADD CONSTRAINT [Program_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Program] ADD CONSTRAINT [Program_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Program] ADD CONSTRAINT [Program_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ProgramAssignmentDescriptor] -- @@ -5322,7 +5322,7 @@ CREATE TABLE [edfi].[ProgramCharacteristic] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ProgramCharacteristic] ADD CONSTRAINT [ProgramCharacteristic_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ProgramCharacteristic] ADD CONSTRAINT [ProgramCharacteristic_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ProgramCharacteristicDescriptor] -- @@ -5349,11 +5349,11 @@ CREATE TABLE [edfi].[ProgramDimension] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ProgramDimension] ADD CONSTRAINT [ProgramDimension_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ProgramDimension] ADD CONSTRAINT [ProgramDimension_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[ProgramDimension] ADD CONSTRAINT [ProgramDimension_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[ProgramDimension] ADD CONSTRAINT [ProgramDimension_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[ProgramDimension] ADD CONSTRAINT [ProgramDimension_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ProgramDimensionReportingTag] -- @@ -5369,7 +5369,7 @@ CREATE TABLE [edfi].[ProgramDimensionReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ProgramDimensionReportingTag] ADD CONSTRAINT [ProgramDimensionReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ProgramDimensionReportingTag] ADD CONSTRAINT [ProgramDimensionReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ProgramLearningObjective] -- @@ -5389,7 +5389,7 @@ CREATE TABLE [edfi].[ProgramLearningObjective] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ProgramLearningObjective] ADD CONSTRAINT [ProgramLearningObjective_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ProgramLearningObjective] ADD CONSTRAINT [ProgramLearningObjective_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ProgramLearningStandard] -- @@ -5407,7 +5407,7 @@ CREATE TABLE [edfi].[ProgramLearningStandard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ProgramLearningStandard] ADD CONSTRAINT [ProgramLearningStandard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ProgramLearningStandard] ADD CONSTRAINT [ProgramLearningStandard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ProgramService] -- @@ -5425,7 +5425,7 @@ CREATE TABLE [edfi].[ProgramService] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ProgramService] ADD CONSTRAINT [ProgramService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ProgramService] ADD CONSTRAINT [ProgramService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ProgramSponsor] -- @@ -5443,7 +5443,7 @@ CREATE TABLE [edfi].[ProgramSponsor] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ProgramSponsor] ADD CONSTRAINT [ProgramSponsor_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ProgramSponsor] ADD CONSTRAINT [ProgramSponsor_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ProgramSponsorDescriptor] -- @@ -5497,11 +5497,11 @@ CREATE TABLE [edfi].[ProjectDimension] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ProjectDimension] ADD CONSTRAINT [ProjectDimension_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ProjectDimension] ADD CONSTRAINT [ProjectDimension_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[ProjectDimension] ADD CONSTRAINT [ProjectDimension_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[ProjectDimension] ADD CONSTRAINT [ProjectDimension_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[ProjectDimension] ADD CONSTRAINT [ProjectDimension_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ProjectDimensionReportingTag] -- @@ -5517,7 +5517,7 @@ CREATE TABLE [edfi].[ProjectDimensionReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ProjectDimensionReportingTag] ADD CONSTRAINT [ProjectDimensionReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ProjectDimensionReportingTag] ADD CONSTRAINT [ProjectDimensionReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ProviderCategoryDescriptor] -- @@ -5646,11 +5646,11 @@ CREATE TABLE [edfi].[ReportCard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ReportCard] ADD CONSTRAINT [ReportCard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ReportCard] ADD CONSTRAINT [ReportCard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[ReportCard] ADD CONSTRAINT [ReportCard_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[ReportCard] ADD CONSTRAINT [ReportCard_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[ReportCard] ADD CONSTRAINT [ReportCard_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[ReportCardGrade] -- @@ -5686,7 +5686,7 @@ CREATE TABLE [edfi].[ReportCardGrade] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ReportCardGrade] ADD CONSTRAINT [ReportCardGrade_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ReportCardGrade] ADD CONSTRAINT [ReportCardGrade_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ReportCardGradePointAverage] -- @@ -5713,7 +5713,7 @@ CREATE TABLE [edfi].[ReportCardGradePointAverage] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ReportCardGradePointAverage] ADD CONSTRAINT [ReportCardGradePointAverage_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ReportCardGradePointAverage] ADD CONSTRAINT [ReportCardGradePointAverage_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ReportCardStudentCompetencyObjective] -- @@ -5741,7 +5741,7 @@ CREATE TABLE [edfi].[ReportCardStudentCompetencyObjective] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ReportCardStudentCompetencyObjective] ADD CONSTRAINT [ReportCardStudentCompetencyObjective_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ReportCardStudentCompetencyObjective] ADD CONSTRAINT [ReportCardStudentCompetencyObjective_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ReportCardStudentLearningObjective] -- @@ -5767,7 +5767,7 @@ CREATE TABLE [edfi].[ReportCardStudentLearningObjective] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[ReportCardStudentLearningObjective] ADD CONSTRAINT [ReportCardStudentLearningObjective_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[ReportCardStudentLearningObjective] ADD CONSTRAINT [ReportCardStudentLearningObjective_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[ReporterDescriptionDescriptor] -- @@ -5833,11 +5833,11 @@ CREATE TABLE [edfi].[RestraintEvent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[RestraintEvent] ADD CONSTRAINT [RestraintEvent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[RestraintEvent] ADD CONSTRAINT [RestraintEvent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[RestraintEvent] ADD CONSTRAINT [RestraintEvent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[RestraintEvent] ADD CONSTRAINT [RestraintEvent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[RestraintEvent] ADD CONSTRAINT [RestraintEvent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[RestraintEventProgram] -- @@ -5859,7 +5859,7 @@ CREATE TABLE [edfi].[RestraintEventProgram] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[RestraintEventProgram] ADD CONSTRAINT [RestraintEventProgram_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[RestraintEventProgram] ADD CONSTRAINT [RestraintEventProgram_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[RestraintEventReason] -- @@ -5877,7 +5877,7 @@ CREATE TABLE [edfi].[RestraintEventReason] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[RestraintEventReason] ADD CONSTRAINT [RestraintEventReason_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[RestraintEventReason] ADD CONSTRAINT [RestraintEventReason_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[RestraintEventReasonDescriptor] -- @@ -5936,7 +5936,7 @@ CREATE TABLE [edfi].[SchoolCategory] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SchoolCategory] ADD CONSTRAINT [SchoolCategory_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SchoolCategory] ADD CONSTRAINT [SchoolCategory_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SchoolCategoryDescriptor] -- @@ -5977,7 +5977,7 @@ CREATE TABLE [edfi].[SchoolGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SchoolGradeLevel] ADD CONSTRAINT [SchoolGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SchoolGradeLevel] ADD CONSTRAINT [SchoolGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SchoolTypeDescriptor] -- @@ -6002,11 +6002,11 @@ CREATE TABLE [edfi].[SchoolYearType] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SchoolYearType] ADD CONSTRAINT [SchoolYearType_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SchoolYearType] ADD CONSTRAINT [SchoolYearType_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SchoolYearType] ADD CONSTRAINT [SchoolYearType_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SchoolYearType] ADD CONSTRAINT [SchoolYearType_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SchoolYearType] ADD CONSTRAINT [SchoolYearType_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[Section] -- @@ -6041,11 +6041,11 @@ CREATE TABLE [edfi].[Section] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Section] ADD CONSTRAINT [Section_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Section] ADD CONSTRAINT [Section_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Section] ADD CONSTRAINT [Section_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Section] ADD CONSTRAINT [Section_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Section] ADD CONSTRAINT [Section_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SectionAttendanceTakenEvent] -- @@ -6074,11 +6074,11 @@ CREATE TABLE [edfi].[SectionAttendanceTakenEvent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SectionAttendanceTakenEvent] ADD CONSTRAINT [SectionAttendanceTakenEvent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SectionAttendanceTakenEvent] ADD CONSTRAINT [SectionAttendanceTakenEvent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SectionAttendanceTakenEvent] ADD CONSTRAINT [SectionAttendanceTakenEvent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SectionAttendanceTakenEvent] ADD CONSTRAINT [SectionAttendanceTakenEvent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SectionAttendanceTakenEvent] ADD CONSTRAINT [SectionAttendanceTakenEvent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SectionCharacteristic] -- @@ -6100,7 +6100,7 @@ CREATE TABLE [edfi].[SectionCharacteristic] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SectionCharacteristic] ADD CONSTRAINT [SectionCharacteristic_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SectionCharacteristic] ADD CONSTRAINT [SectionCharacteristic_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SectionCharacteristicDescriptor] -- @@ -6131,7 +6131,7 @@ CREATE TABLE [edfi].[SectionClassPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SectionClassPeriod] ADD CONSTRAINT [SectionClassPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SectionClassPeriod] ADD CONSTRAINT [SectionClassPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SectionCourseLevelCharacteristic] -- @@ -6153,7 +6153,7 @@ CREATE TABLE [edfi].[SectionCourseLevelCharacteristic] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SectionCourseLevelCharacteristic] ADD CONSTRAINT [SectionCourseLevelCharacteristic_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SectionCourseLevelCharacteristic] ADD CONSTRAINT [SectionCourseLevelCharacteristic_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SectionOfferedGradeLevel] -- @@ -6175,7 +6175,7 @@ CREATE TABLE [edfi].[SectionOfferedGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SectionOfferedGradeLevel] ADD CONSTRAINT [SectionOfferedGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SectionOfferedGradeLevel] ADD CONSTRAINT [SectionOfferedGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SectionProgram] -- @@ -6201,7 +6201,7 @@ CREATE TABLE [edfi].[SectionProgram] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SectionProgram] ADD CONSTRAINT [SectionProgram_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SectionProgram] ADD CONSTRAINT [SectionProgram_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SeparationDescriptor] -- @@ -6251,11 +6251,11 @@ CREATE TABLE [edfi].[Session] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Session] ADD CONSTRAINT [Session_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Session] ADD CONSTRAINT [Session_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Session] ADD CONSTRAINT [Session_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Session] ADD CONSTRAINT [Session_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Session] ADD CONSTRAINT [Session_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SessionAcademicWeek] -- @@ -6273,7 +6273,7 @@ CREATE TABLE [edfi].[SessionAcademicWeek] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SessionAcademicWeek] ADD CONSTRAINT [SessionAcademicWeek_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SessionAcademicWeek] ADD CONSTRAINT [SessionAcademicWeek_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SessionGradingPeriod] -- @@ -6293,7 +6293,7 @@ CREATE TABLE [edfi].[SessionGradingPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SessionGradingPeriod] ADD CONSTRAINT [SessionGradingPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SessionGradingPeriod] ADD CONSTRAINT [SessionGradingPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SexDescriptor] -- @@ -6320,11 +6320,11 @@ CREATE TABLE [edfi].[SourceDimension] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SourceDimension] ADD CONSTRAINT [SourceDimension_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SourceDimension] ADD CONSTRAINT [SourceDimension_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SourceDimension] ADD CONSTRAINT [SourceDimension_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SourceDimension] ADD CONSTRAINT [SourceDimension_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SourceDimension] ADD CONSTRAINT [SourceDimension_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SourceDimensionReportingTag] -- @@ -6340,7 +6340,7 @@ CREATE TABLE [edfi].[SourceDimensionReportingTag] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SourceDimensionReportingTag] ADD CONSTRAINT [SourceDimensionReportingTag_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SourceDimensionReportingTag] ADD CONSTRAINT [SourceDimensionReportingTag_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SourceSystemDescriptor] -- @@ -6405,11 +6405,11 @@ CREATE UNIQUE NONCLUSTERED INDEX [Staff_UI_StaffUniqueId] ON [edfi].[Staff] ( [StaffUniqueId] ASC ) INCLUDE (StaffUSI) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -ALTER TABLE [edfi].[Staff] ADD CONSTRAINT [Staff_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Staff] ADD CONSTRAINT [Staff_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Staff] ADD CONSTRAINT [Staff_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Staff] ADD CONSTRAINT [Staff_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Staff] ADD CONSTRAINT [Staff_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffAbsenceEvent] -- @@ -6430,11 +6430,11 @@ CREATE TABLE [edfi].[StaffAbsenceEvent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffAbsenceEvent] ADD CONSTRAINT [StaffAbsenceEvent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffAbsenceEvent] ADD CONSTRAINT [StaffAbsenceEvent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffAbsenceEvent] ADD CONSTRAINT [StaffAbsenceEvent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffAbsenceEvent] ADD CONSTRAINT [StaffAbsenceEvent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffAbsenceEvent] ADD CONSTRAINT [StaffAbsenceEvent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffAddress] -- @@ -6465,7 +6465,7 @@ CREATE TABLE [edfi].[StaffAddress] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffAddress] ADD CONSTRAINT [StaffAddress_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffAddress] ADD CONSTRAINT [StaffAddress_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffAddressPeriod] -- @@ -6490,7 +6490,7 @@ CREATE TABLE [edfi].[StaffAddressPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffAddressPeriod] ADD CONSTRAINT [StaffAddressPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffAddressPeriod] ADD CONSTRAINT [StaffAddressPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffAncestryEthnicOrigin] -- @@ -6504,7 +6504,7 @@ CREATE TABLE [edfi].[StaffAncestryEthnicOrigin] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffAncestryEthnicOrigin] ADD CONSTRAINT [StaffAncestryEthnicOrigin_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffAncestryEthnicOrigin] ADD CONSTRAINT [StaffAncestryEthnicOrigin_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffClassificationDescriptor] -- @@ -6536,11 +6536,11 @@ CREATE TABLE [edfi].[StaffCohortAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffCohortAssociation] ADD CONSTRAINT [StaffCohortAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffCohortAssociation] ADD CONSTRAINT [StaffCohortAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffCohortAssociation] ADD CONSTRAINT [StaffCohortAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffCohortAssociation] ADD CONSTRAINT [StaffCohortAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffCohortAssociation] ADD CONSTRAINT [StaffCohortAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffCredential] -- @@ -6556,7 +6556,7 @@ CREATE TABLE [edfi].[StaffCredential] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffCredential] ADD CONSTRAINT [StaffCredential_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffCredential] ADD CONSTRAINT [StaffCredential_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffDisciplineIncidentAssociation] -- @@ -6575,11 +6575,11 @@ CREATE TABLE [edfi].[StaffDisciplineIncidentAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffDisciplineIncidentAssociation] ADD CONSTRAINT [StaffDisciplineIncidentAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffDisciplineIncidentAssociation] ADD CONSTRAINT [StaffDisciplineIncidentAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffDisciplineIncidentAssociation] ADD CONSTRAINT [StaffDisciplineIncidentAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffDisciplineIncidentAssociation] ADD CONSTRAINT [StaffDisciplineIncidentAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffDisciplineIncidentAssociation] ADD CONSTRAINT [StaffDisciplineIncidentAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode] -- @@ -6597,7 +6597,7 @@ CREATE TABLE [edfi].[StaffDisciplineIncidentAssociationDisciplineIncidentPartici ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode] ADD CONSTRAINT [StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode] ADD CONSTRAINT [StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffEducationOrganizationAssignmentAssociation] -- @@ -6627,11 +6627,11 @@ CREATE TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] ADD CONSTRAINT [StaffEducationOrganizationAssignmentAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] ADD CONSTRAINT [StaffEducationOrganizationAssignmentAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] ADD CONSTRAINT [StaffEducationOrganizationAssignmentAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] ADD CONSTRAINT [StaffEducationOrganizationAssignmentAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] ADD CONSTRAINT [StaffEducationOrganizationAssignmentAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffEducationOrganizationContactAssociation] -- @@ -6652,11 +6652,11 @@ CREATE TABLE [edfi].[StaffEducationOrganizationContactAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociation] ADD CONSTRAINT [StaffEducationOrganizationContactAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociation] ADD CONSTRAINT [StaffEducationOrganizationContactAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociation] ADD CONSTRAINT [StaffEducationOrganizationContactAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociation] ADD CONSTRAINT [StaffEducationOrganizationContactAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociation] ADD CONSTRAINT [StaffEducationOrganizationContactAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffEducationOrganizationContactAssociationAddress] -- @@ -6686,7 +6686,7 @@ CREATE TABLE [edfi].[StaffEducationOrganizationContactAssociationAddress] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociationAddress] ADD CONSTRAINT [StaffEducationOrganizationContactAssociationAddress_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociationAddress] ADD CONSTRAINT [StaffEducationOrganizationContactAssociationAddress_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffEducationOrganizationContactAssociationAddressPeriod] -- @@ -6705,7 +6705,7 @@ CREATE TABLE [edfi].[StaffEducationOrganizationContactAssociationAddressPeriod] ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociationAddressPeriod] ADD CONSTRAINT [StaffEducationOrganizationContactAssociationAddressPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociationAddressPeriod] ADD CONSTRAINT [StaffEducationOrganizationContactAssociationAddressPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffEducationOrganizationContactAssociationTelephone] -- @@ -6728,7 +6728,7 @@ CREATE TABLE [edfi].[StaffEducationOrganizationContactAssociationTelephone] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociationTelephone] ADD CONSTRAINT [StaffEducationOrganizationContactAssociationTelephone_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociationTelephone] ADD CONSTRAINT [StaffEducationOrganizationContactAssociationTelephone_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffEducationOrganizationEmploymentAssociation] -- @@ -6758,11 +6758,11 @@ CREATE TABLE [edfi].[StaffEducationOrganizationEmploymentAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffEducationOrganizationEmploymentAssociation] ADD CONSTRAINT [StaffEducationOrganizationEmploymentAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffEducationOrganizationEmploymentAssociation] ADD CONSTRAINT [StaffEducationOrganizationEmploymentAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffEducationOrganizationEmploymentAssociation] ADD CONSTRAINT [StaffEducationOrganizationEmploymentAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffEducationOrganizationEmploymentAssociation] ADD CONSTRAINT [StaffEducationOrganizationEmploymentAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffEducationOrganizationEmploymentAssociation] ADD CONSTRAINT [StaffEducationOrganizationEmploymentAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffElectronicMail] -- @@ -6780,7 +6780,7 @@ CREATE TABLE [edfi].[StaffElectronicMail] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffElectronicMail] ADD CONSTRAINT [StaffElectronicMail_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffElectronicMail] ADD CONSTRAINT [StaffElectronicMail_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffIdentificationCode] -- @@ -6796,7 +6796,7 @@ CREATE TABLE [edfi].[StaffIdentificationCode] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffIdentificationCode] ADD CONSTRAINT [StaffIdentificationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffIdentificationCode] ADD CONSTRAINT [StaffIdentificationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffIdentificationDocument] -- @@ -6817,7 +6817,7 @@ CREATE TABLE [edfi].[StaffIdentificationDocument] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffIdentificationDocument] ADD CONSTRAINT [StaffIdentificationDocument_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffIdentificationDocument] ADD CONSTRAINT [StaffIdentificationDocument_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffIdentificationSystemDescriptor] -- @@ -6849,7 +6849,7 @@ CREATE TABLE [edfi].[StaffInternationalAddress] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffInternationalAddress] ADD CONSTRAINT [StaffInternationalAddress_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffInternationalAddress] ADD CONSTRAINT [StaffInternationalAddress_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffLanguage] -- @@ -6863,7 +6863,7 @@ CREATE TABLE [edfi].[StaffLanguage] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffLanguage] ADD CONSTRAINT [StaffLanguage_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffLanguage] ADD CONSTRAINT [StaffLanguage_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffLanguageUse] -- @@ -6879,7 +6879,7 @@ CREATE TABLE [edfi].[StaffLanguageUse] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffLanguageUse] ADD CONSTRAINT [StaffLanguageUse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffLanguageUse] ADD CONSTRAINT [StaffLanguageUse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffLeave] -- @@ -6901,11 +6901,11 @@ CREATE TABLE [edfi].[StaffLeave] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffLeave] ADD CONSTRAINT [StaffLeave_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffLeave] ADD CONSTRAINT [StaffLeave_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffLeave] ADD CONSTRAINT [StaffLeave_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffLeave] ADD CONSTRAINT [StaffLeave_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffLeave] ADD CONSTRAINT [StaffLeave_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffLeaveEventCategoryDescriptor] -- @@ -6933,7 +6933,7 @@ CREATE TABLE [edfi].[StaffOtherName] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffOtherName] ADD CONSTRAINT [StaffOtherName_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffOtherName] ADD CONSTRAINT [StaffOtherName_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffPersonalIdentificationDocument] -- @@ -6954,7 +6954,7 @@ CREATE TABLE [edfi].[StaffPersonalIdentificationDocument] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffPersonalIdentificationDocument] ADD CONSTRAINT [StaffPersonalIdentificationDocument_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffPersonalIdentificationDocument] ADD CONSTRAINT [StaffPersonalIdentificationDocument_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffProgramAssociation] -- @@ -6979,11 +6979,11 @@ CREATE TABLE [edfi].[StaffProgramAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffProgramAssociation] ADD CONSTRAINT [StaffProgramAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffProgramAssociation] ADD CONSTRAINT [StaffProgramAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffProgramAssociation] ADD CONSTRAINT [StaffProgramAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffProgramAssociation] ADD CONSTRAINT [StaffProgramAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffProgramAssociation] ADD CONSTRAINT [StaffProgramAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffRace] -- @@ -6997,7 +6997,7 @@ CREATE TABLE [edfi].[StaffRace] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffRace] ADD CONSTRAINT [StaffRace_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffRace] ADD CONSTRAINT [StaffRace_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffRecognition] -- @@ -7023,7 +7023,7 @@ CREATE TABLE [edfi].[StaffRecognition] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffRecognition] ADD CONSTRAINT [StaffRecognition_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffRecognition] ADD CONSTRAINT [StaffRecognition_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffSchoolAssociation] -- @@ -7044,11 +7044,11 @@ CREATE TABLE [edfi].[StaffSchoolAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffSchoolAssociation] ADD CONSTRAINT [StaffSchoolAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffSchoolAssociation] ADD CONSTRAINT [StaffSchoolAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffSchoolAssociation] ADD CONSTRAINT [StaffSchoolAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffSchoolAssociation] ADD CONSTRAINT [StaffSchoolAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffSchoolAssociation] ADD CONSTRAINT [StaffSchoolAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffSchoolAssociationAcademicSubject] -- @@ -7066,7 +7066,7 @@ CREATE TABLE [edfi].[StaffSchoolAssociationAcademicSubject] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffSchoolAssociationAcademicSubject] ADD CONSTRAINT [StaffSchoolAssociationAcademicSubject_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffSchoolAssociationAcademicSubject] ADD CONSTRAINT [StaffSchoolAssociationAcademicSubject_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffSchoolAssociationGradeLevel] -- @@ -7084,7 +7084,7 @@ CREATE TABLE [edfi].[StaffSchoolAssociationGradeLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffSchoolAssociationGradeLevel] ADD CONSTRAINT [StaffSchoolAssociationGradeLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffSchoolAssociationGradeLevel] ADD CONSTRAINT [StaffSchoolAssociationGradeLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffSectionAssociation] -- @@ -7115,11 +7115,11 @@ CREATE TABLE [edfi].[StaffSectionAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffSectionAssociation] ADD CONSTRAINT [StaffSectionAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffSectionAssociation] ADD CONSTRAINT [StaffSectionAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StaffSectionAssociation] ADD CONSTRAINT [StaffSectionAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StaffSectionAssociation] ADD CONSTRAINT [StaffSectionAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StaffSectionAssociation] ADD CONSTRAINT [StaffSectionAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StaffTelephone] -- @@ -7138,7 +7138,7 @@ CREATE TABLE [edfi].[StaffTelephone] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffTelephone] ADD CONSTRAINT [StaffTelephone_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffTelephone] ADD CONSTRAINT [StaffTelephone_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffTribalAffiliation] -- @@ -7152,7 +7152,7 @@ CREATE TABLE [edfi].[StaffTribalAffiliation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffTribalAffiliation] ADD CONSTRAINT [StaffTribalAffiliation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffTribalAffiliation] ADD CONSTRAINT [StaffTribalAffiliation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StaffVisa] -- @@ -7166,7 +7166,7 @@ CREATE TABLE [edfi].[StaffVisa] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StaffVisa] ADD CONSTRAINT [StaffVisa_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StaffVisa] ADD CONSTRAINT [StaffVisa_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StateAbbreviationDescriptor] -- @@ -7199,7 +7199,7 @@ CREATE TABLE [edfi].[StateEducationAgencyAccountability] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StateEducationAgencyAccountability] ADD CONSTRAINT [StateEducationAgencyAccountability_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StateEducationAgencyAccountability] ADD CONSTRAINT [StateEducationAgencyAccountability_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StateEducationAgencyFederalFunds] -- @@ -7214,7 +7214,7 @@ CREATE TABLE [edfi].[StateEducationAgencyFederalFunds] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StateEducationAgencyFederalFunds] ADD CONSTRAINT [StateEducationAgencyFederalFunds_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StateEducationAgencyFederalFunds] ADD CONSTRAINT [StateEducationAgencyFederalFunds_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[Student] -- @@ -7251,11 +7251,11 @@ CREATE UNIQUE NONCLUSTERED INDEX [Student_UI_StudentUniqueId] ON [edfi].[Student [StudentUniqueId] ASC ) INCLUDE (StudentUSI) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -ALTER TABLE [edfi].[Student] ADD CONSTRAINT [Student_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Student] ADD CONSTRAINT [Student_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Student] ADD CONSTRAINT [Student_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Student] ADD CONSTRAINT [Student_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Student] ADD CONSTRAINT [Student_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentAcademicRecord] -- @@ -7294,11 +7294,11 @@ CREATE TABLE [edfi].[StudentAcademicRecord] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAcademicRecord] ADD CONSTRAINT [StudentAcademicRecord_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAcademicRecord] ADD CONSTRAINT [StudentAcademicRecord_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentAcademicRecord] ADD CONSTRAINT [StudentAcademicRecord_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentAcademicRecord] ADD CONSTRAINT [StudentAcademicRecord_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentAcademicRecord] ADD CONSTRAINT [StudentAcademicRecord_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentAcademicRecordAcademicHonor] -- @@ -7331,7 +7331,7 @@ CREATE TABLE [edfi].[StudentAcademicRecordAcademicHonor] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAcademicRecordAcademicHonor] ADD CONSTRAINT [StudentAcademicRecordAcademicHonor_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAcademicRecordAcademicHonor] ADD CONSTRAINT [StudentAcademicRecordAcademicHonor_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAcademicRecordClassRanking] -- @@ -7353,7 +7353,7 @@ CREATE TABLE [edfi].[StudentAcademicRecordClassRanking] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAcademicRecordClassRanking] ADD CONSTRAINT [StudentAcademicRecordClassRanking_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAcademicRecordClassRanking] ADD CONSTRAINT [StudentAcademicRecordClassRanking_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAcademicRecordDiploma] -- @@ -7388,7 +7388,7 @@ CREATE TABLE [edfi].[StudentAcademicRecordDiploma] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAcademicRecordDiploma] ADD CONSTRAINT [StudentAcademicRecordDiploma_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAcademicRecordDiploma] ADD CONSTRAINT [StudentAcademicRecordDiploma_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAcademicRecordGradePointAverage] -- @@ -7411,7 +7411,7 @@ CREATE TABLE [edfi].[StudentAcademicRecordGradePointAverage] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAcademicRecordGradePointAverage] ADD CONSTRAINT [StudentAcademicRecordGradePointAverage_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAcademicRecordGradePointAverage] ADD CONSTRAINT [StudentAcademicRecordGradePointAverage_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAcademicRecordRecognition] -- @@ -7443,7 +7443,7 @@ CREATE TABLE [edfi].[StudentAcademicRecordRecognition] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAcademicRecordRecognition] ADD CONSTRAINT [StudentAcademicRecordRecognition_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAcademicRecordRecognition] ADD CONSTRAINT [StudentAcademicRecordRecognition_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAcademicRecordReportCard] -- @@ -7469,7 +7469,7 @@ CREATE TABLE [edfi].[StudentAcademicRecordReportCard] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAcademicRecordReportCard] ADD CONSTRAINT [StudentAcademicRecordReportCard_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAcademicRecordReportCard] ADD CONSTRAINT [StudentAcademicRecordReportCard_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAssessment] -- @@ -7505,11 +7505,11 @@ CREATE TABLE [edfi].[StudentAssessment] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessment] ADD CONSTRAINT [StudentAssessment_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessment] ADD CONSTRAINT [StudentAssessment_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentAssessment] ADD CONSTRAINT [StudentAssessment_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentAssessment] ADD CONSTRAINT [StudentAssessment_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentAssessment] ADD CONSTRAINT [StudentAssessment_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentAssessmentAccommodation] -- @@ -7529,7 +7529,7 @@ CREATE TABLE [edfi].[StudentAssessmentAccommodation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessmentAccommodation] ADD CONSTRAINT [StudentAssessmentAccommodation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessmentAccommodation] ADD CONSTRAINT [StudentAssessmentAccommodation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAssessmentEducationOrganizationAssociation] -- @@ -7555,11 +7555,11 @@ CREATE TABLE [edfi].[StudentAssessmentEducationOrganizationAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessmentEducationOrganizationAssociation] ADD CONSTRAINT [StudentAssessmentEducationOrganizationAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessmentEducationOrganizationAssociation] ADD CONSTRAINT [StudentAssessmentEducationOrganizationAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentAssessmentEducationOrganizationAssociation] ADD CONSTRAINT [StudentAssessmentEducationOrganizationAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentAssessmentEducationOrganizationAssociation] ADD CONSTRAINT [StudentAssessmentEducationOrganizationAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentAssessmentEducationOrganizationAssociation] ADD CONSTRAINT [StudentAssessmentEducationOrganizationAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentAssessmentItem] -- @@ -7586,7 +7586,7 @@ CREATE TABLE [edfi].[StudentAssessmentItem] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessmentItem] ADD CONSTRAINT [StudentAssessmentItem_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessmentItem] ADD CONSTRAINT [StudentAssessmentItem_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAssessmentPerformanceLevel] -- @@ -7609,7 +7609,7 @@ CREATE TABLE [edfi].[StudentAssessmentPerformanceLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessmentPerformanceLevel] ADD CONSTRAINT [StudentAssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessmentPerformanceLevel] ADD CONSTRAINT [StudentAssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAssessmentPeriod] -- @@ -7630,7 +7630,7 @@ CREATE TABLE [edfi].[StudentAssessmentPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessmentPeriod] ADD CONSTRAINT [StudentAssessmentPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessmentPeriod] ADD CONSTRAINT [StudentAssessmentPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAssessmentScoreResult] -- @@ -7652,7 +7652,7 @@ CREATE TABLE [edfi].[StudentAssessmentScoreResult] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessmentScoreResult] ADD CONSTRAINT [StudentAssessmentScoreResult_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessmentScoreResult] ADD CONSTRAINT [StudentAssessmentScoreResult_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAssessmentStudentObjectiveAssessment] -- @@ -7675,7 +7675,7 @@ CREATE TABLE [edfi].[StudentAssessmentStudentObjectiveAssessment] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessmentStudentObjectiveAssessment] ADD CONSTRAINT [StudentAssessmentStudentObjectiveAssessment_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessmentStudentObjectiveAssessment] ADD CONSTRAINT [StudentAssessmentStudentObjectiveAssessment_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAssessmentStudentObjectiveAssessmentPerformanceLevel] -- @@ -7700,7 +7700,7 @@ CREATE TABLE [edfi].[StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessmentStudentObjectiveAssessmentPerformanceLevel] ADD CONSTRAINT [StudentAssessmentStudentObjectiveAssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessmentStudentObjectiveAssessmentPerformanceLevel] ADD CONSTRAINT [StudentAssessmentStudentObjectiveAssessmentPerformanceLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentAssessmentStudentObjectiveAssessmentScoreResult] -- @@ -7724,7 +7724,7 @@ CREATE TABLE [edfi].[StudentAssessmentStudentObjectiveAssessmentScoreResult] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentAssessmentStudentObjectiveAssessmentScoreResult] ADD CONSTRAINT [StudentAssessmentStudentObjectiveAssessmentScoreResult_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentAssessmentStudentObjectiveAssessmentScoreResult] ADD CONSTRAINT [StudentAssessmentStudentObjectiveAssessmentScoreResult_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentCharacteristicDescriptor] -- @@ -7755,11 +7755,11 @@ CREATE TABLE [edfi].[StudentCohortAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentCohortAssociation] ADD CONSTRAINT [StudentCohortAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentCohortAssociation] ADD CONSTRAINT [StudentCohortAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentCohortAssociation] ADD CONSTRAINT [StudentCohortAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentCohortAssociation] ADD CONSTRAINT [StudentCohortAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentCohortAssociation] ADD CONSTRAINT [StudentCohortAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentCohortAssociationSection] -- @@ -7787,7 +7787,7 @@ CREATE TABLE [edfi].[StudentCohortAssociationSection] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentCohortAssociationSection] ADD CONSTRAINT [StudentCohortAssociationSection_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentCohortAssociationSection] ADD CONSTRAINT [StudentCohortAssociationSection_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentCompetencyObjective] -- @@ -7818,11 +7818,11 @@ CREATE TABLE [edfi].[StudentCompetencyObjective] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentCompetencyObjective] ADD CONSTRAINT [StudentCompetencyObjective_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentCompetencyObjective] ADD CONSTRAINT [StudentCompetencyObjective_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentCompetencyObjective] ADD CONSTRAINT [StudentCompetencyObjective_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentCompetencyObjective] ADD CONSTRAINT [StudentCompetencyObjective_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentCompetencyObjective] ADD CONSTRAINT [StudentCompetencyObjective_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentCompetencyObjectiveGeneralStudentProgramAssociation] -- @@ -7858,7 +7858,7 @@ CREATE TABLE [edfi].[StudentCompetencyObjectiveGeneralStudentProgramAssociation] ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentCompetencyObjectiveGeneralStudentProgramAssociation] ADD CONSTRAINT [StudentCompetencyObjectiveGeneralStudentProgramAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentCompetencyObjectiveGeneralStudentProgramAssociation] ADD CONSTRAINT [StudentCompetencyObjectiveGeneralStudentProgramAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentCompetencyObjectiveStudentSectionAssociation] -- @@ -7896,7 +7896,7 @@ CREATE TABLE [edfi].[StudentCompetencyObjectiveStudentSectionAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentCompetencyObjectiveStudentSectionAssociation] ADD CONSTRAINT [StudentCompetencyObjectiveStudentSectionAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentCompetencyObjectiveStudentSectionAssociation] ADD CONSTRAINT [StudentCompetencyObjectiveStudentSectionAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentCTEProgramAssociation] -- @@ -7945,7 +7945,7 @@ CREATE TABLE [edfi].[StudentCTEProgramAssociationCTEProgram] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentCTEProgramAssociationCTEProgram] ADD CONSTRAINT [StudentCTEProgramAssociationCTEProgram_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentCTEProgramAssociationCTEProgram] ADD CONSTRAINT [StudentCTEProgramAssociationCTEProgram_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentCTEProgramAssociationCTEProgramService] -- @@ -7973,7 +7973,7 @@ CREATE TABLE [edfi].[StudentCTEProgramAssociationCTEProgramService] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentCTEProgramAssociationCTEProgramService] ADD CONSTRAINT [StudentCTEProgramAssociationCTEProgramService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentCTEProgramAssociationCTEProgramService] ADD CONSTRAINT [StudentCTEProgramAssociationCTEProgramService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentCTEProgramAssociationService] -- @@ -8000,7 +8000,7 @@ CREATE TABLE [edfi].[StudentCTEProgramAssociationService] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentCTEProgramAssociationService] ADD CONSTRAINT [StudentCTEProgramAssociationService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentCTEProgramAssociationService] ADD CONSTRAINT [StudentCTEProgramAssociationService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentDisciplineIncidentAssociation] -- @@ -8020,11 +8020,11 @@ CREATE TABLE [edfi].[StudentDisciplineIncidentAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentDisciplineIncidentAssociation] ADD CONSTRAINT [StudentDisciplineIncidentAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentDisciplineIncidentAssociation] ADD CONSTRAINT [StudentDisciplineIncidentAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentDisciplineIncidentAssociation] ADD CONSTRAINT [StudentDisciplineIncidentAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentDisciplineIncidentAssociation] ADD CONSTRAINT [StudentDisciplineIncidentAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentDisciplineIncidentAssociation] ADD CONSTRAINT [StudentDisciplineIncidentAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentDisciplineIncidentAssociationBehavior] -- @@ -8043,7 +8043,7 @@ CREATE TABLE [edfi].[StudentDisciplineIncidentAssociationBehavior] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentDisciplineIncidentAssociationBehavior] ADD CONSTRAINT [StudentDisciplineIncidentAssociationBehavior_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentDisciplineIncidentAssociationBehavior] ADD CONSTRAINT [StudentDisciplineIncidentAssociationBehavior_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentDisciplineIncidentBehaviorAssociation] -- @@ -8065,11 +8065,11 @@ CREATE TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociation] ADD CONSTRAINT [StudentDisciplineIncidentBehaviorAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociation] ADD CONSTRAINT [StudentDisciplineIncidentBehaviorAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociation] ADD CONSTRAINT [StudentDisciplineIncidentBehaviorAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociation] ADD CONSTRAINT [StudentDisciplineIncidentBehaviorAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociation] ADD CONSTRAINT [StudentDisciplineIncidentBehaviorAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode] -- @@ -8089,7 +8089,7 @@ CREATE TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociationDisciplineIncid ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode] ADD CONSTRAINT [StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode] ADD CONSTRAINT [StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentDisciplineIncidentNonOffenderAssociation] -- @@ -8108,11 +8108,11 @@ CREATE TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociation] ADD CONSTRAINT [StudentDisciplineIncidentNonOffenderAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociation] ADD CONSTRAINT [StudentDisciplineIncidentNonOffenderAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociation] ADD CONSTRAINT [StudentDisciplineIncidentNonOffenderAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociation] ADD CONSTRAINT [StudentDisciplineIncidentNonOffenderAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociation] ADD CONSTRAINT [StudentDisciplineIncidentNonOffenderAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode] -- @@ -8130,7 +8130,7 @@ CREATE TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociationDisciplineIn ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode] ADD CONSTRAINT [StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode] ADD CONSTRAINT [StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociation] -- @@ -8160,11 +8160,11 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociation] ADD CONSTRAINT [StudentEducationOrganizationAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociation] ADD CONSTRAINT [StudentEducationOrganizationAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentEducationOrganizationAssociation] ADD CONSTRAINT [StudentEducationOrganizationAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociation] ADD CONSTRAINT [StudentEducationOrganizationAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociation] ADD CONSTRAINT [StudentEducationOrganizationAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationAddress] -- @@ -8197,7 +8197,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationAddress] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationAddress] ADD CONSTRAINT [StudentEducationOrganizationAssociationAddress_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationAddress] ADD CONSTRAINT [StudentEducationOrganizationAssociationAddress_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationAddressPeriod] -- @@ -8224,7 +8224,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationAddressPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationAddressPeriod] ADD CONSTRAINT [StudentEducationOrganizationAssociationAddressPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationAddressPeriod] ADD CONSTRAINT [StudentEducationOrganizationAssociationAddressPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationAncestryEthnicOrigin] -- @@ -8240,7 +8240,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationAncestryEthnicOrigin ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationAncestryEthnicOrigin] ADD CONSTRAINT [StudentEducationOrganizationAssociationAncestryEthnicOrigin_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationAncestryEthnicOrigin] ADD CONSTRAINT [StudentEducationOrganizationAssociationAncestryEthnicOrigin_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationCohortYear] -- @@ -8259,7 +8259,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationCohortYear] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationCohortYear] ADD CONSTRAINT [StudentEducationOrganizationAssociationCohortYear_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationCohortYear] ADD CONSTRAINT [StudentEducationOrganizationAssociationCohortYear_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationDisability] -- @@ -8278,7 +8278,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationDisability] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationDisability] ADD CONSTRAINT [StudentEducationOrganizationAssociationDisability_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationDisability] ADD CONSTRAINT [StudentEducationOrganizationAssociationDisability_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationDisabilityDesignation] -- @@ -8296,7 +8296,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationDisabilityDesignatio ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationDisabilityDesignation] ADD CONSTRAINT [StudentEducationOrganizationAssociationDisabilityDesignation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationDisabilityDesignation] ADD CONSTRAINT [StudentEducationOrganizationAssociationDisabilityDesignation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationElectronicMail] -- @@ -8316,7 +8316,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationElectronicMail] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationElectronicMail] ADD CONSTRAINT [StudentEducationOrganizationAssociationElectronicMail_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationElectronicMail] ADD CONSTRAINT [StudentEducationOrganizationAssociationElectronicMail_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationInternationalAddress] -- @@ -8341,7 +8341,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationInternationalAddress ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationInternationalAddress] ADD CONSTRAINT [StudentEducationOrganizationAssociationInternationalAddress_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationInternationalAddress] ADD CONSTRAINT [StudentEducationOrganizationAssociationInternationalAddress_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationLanguage] -- @@ -8357,7 +8357,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationLanguage] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationLanguage] ADD CONSTRAINT [StudentEducationOrganizationAssociationLanguage_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationLanguage] ADD CONSTRAINT [StudentEducationOrganizationAssociationLanguage_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationLanguageUse] -- @@ -8375,7 +8375,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationLanguageUse] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationLanguageUse] ADD CONSTRAINT [StudentEducationOrganizationAssociationLanguageUse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationLanguageUse] ADD CONSTRAINT [StudentEducationOrganizationAssociationLanguageUse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationProgramParticipation] -- @@ -8394,7 +8394,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationProgramParticipation ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationProgramParticipation] ADD CONSTRAINT [StudentEducationOrganizationAssociationProgramParticipation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationProgramParticipation] ADD CONSTRAINT [StudentEducationOrganizationAssociationProgramParticipation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationProgramParticipationProgramCharacteristic] -- @@ -8412,7 +8412,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationProgramParticipation ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationProgramParticipationProgramCharacteristic] ADD CONSTRAINT [StudentEducationOrganizationAssociationProgramParticipationProgramCharacteristic_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationProgramParticipationProgramCharacteristic] ADD CONSTRAINT [StudentEducationOrganizationAssociationProgramParticipationProgramCharacteristic_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationRace] -- @@ -8428,7 +8428,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationRace] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationRace] ADD CONSTRAINT [StudentEducationOrganizationAssociationRace_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationRace] ADD CONSTRAINT [StudentEducationOrganizationAssociationRace_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationStudentCharacteristic] -- @@ -8445,7 +8445,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationStudentCharacteristi ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentCharacteristic] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentCharacteristic_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentCharacteristic] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentCharacteristic_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationStudentCharacteristicPeriod] -- @@ -8464,7 +8464,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationStudentCharacteristi ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentCharacteristicPeriod] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentCharacteristicPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentCharacteristicPeriod] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentCharacteristicPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationStudentIdentificationCode] -- @@ -8483,7 +8483,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationStudentIdentificatio ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentIdentificationCode] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentIdentificationCode_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentIdentificationCode] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentIdentificationCode_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationStudentIndicator] -- @@ -8502,7 +8502,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationStudentIndicator] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentIndicator] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentIndicator_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentIndicator] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentIndicator_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationStudentIndicatorPeriod] -- @@ -8521,7 +8521,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationStudentIndicatorPeri ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentIndicatorPeriod] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentIndicatorPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationStudentIndicatorPeriod] ADD CONSTRAINT [StudentEducationOrganizationAssociationStudentIndicatorPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationTelephone] -- @@ -8542,7 +8542,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationTelephone] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationTelephone] ADD CONSTRAINT [StudentEducationOrganizationAssociationTelephone_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationTelephone] ADD CONSTRAINT [StudentEducationOrganizationAssociationTelephone_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationAssociationTribalAffiliation] -- @@ -8558,7 +8558,7 @@ CREATE TABLE [edfi].[StudentEducationOrganizationAssociationTribalAffiliation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationAssociationTribalAffiliation] ADD CONSTRAINT [StudentEducationOrganizationAssociationTribalAffiliation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationAssociationTribalAffiliation] ADD CONSTRAINT [StudentEducationOrganizationAssociationTribalAffiliation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentEducationOrganizationResponsibilityAssociation] -- @@ -8580,11 +8580,11 @@ CREATE TABLE [edfi].[StudentEducationOrganizationResponsibilityAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentEducationOrganizationResponsibilityAssociation] ADD CONSTRAINT [StudentEducationOrganizationResponsibilityAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentEducationOrganizationResponsibilityAssociation] ADD CONSTRAINT [StudentEducationOrganizationResponsibilityAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentEducationOrganizationResponsibilityAssociation] ADD CONSTRAINT [StudentEducationOrganizationResponsibilityAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentEducationOrganizationResponsibilityAssociation] ADD CONSTRAINT [StudentEducationOrganizationResponsibilityAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentEducationOrganizationResponsibilityAssociation] ADD CONSTRAINT [StudentEducationOrganizationResponsibilityAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentGradebookEntry] -- @@ -8612,11 +8612,11 @@ CREATE TABLE [edfi].[StudentGradebookEntry] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentGradebookEntry] ADD CONSTRAINT [StudentGradebookEntry_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentGradebookEntry] ADD CONSTRAINT [StudentGradebookEntry_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentGradebookEntry] ADD CONSTRAINT [StudentGradebookEntry_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentGradebookEntry] ADD CONSTRAINT [StudentGradebookEntry_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentGradebookEntry] ADD CONSTRAINT [StudentGradebookEntry_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentHomelessProgramAssociation] -- @@ -8665,7 +8665,7 @@ CREATE TABLE [edfi].[StudentHomelessProgramAssociationHomelessProgramService] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentHomelessProgramAssociationHomelessProgramService] ADD CONSTRAINT [StudentHomelessProgramAssociationHomelessProgramService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentHomelessProgramAssociationHomelessProgramService] ADD CONSTRAINT [StudentHomelessProgramAssociationHomelessProgramService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentIdentificationDocument] -- @@ -8686,7 +8686,7 @@ CREATE TABLE [edfi].[StudentIdentificationDocument] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentIdentificationDocument] ADD CONSTRAINT [StudentIdentificationDocument_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentIdentificationDocument] ADD CONSTRAINT [StudentIdentificationDocument_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentIdentificationSystemDescriptor] -- @@ -8718,11 +8718,11 @@ CREATE TABLE [edfi].[StudentInterventionAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentInterventionAssociation] ADD CONSTRAINT [StudentInterventionAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentInterventionAssociation] ADD CONSTRAINT [StudentInterventionAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentInterventionAssociation] ADD CONSTRAINT [StudentInterventionAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentInterventionAssociation] ADD CONSTRAINT [StudentInterventionAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentInterventionAssociation] ADD CONSTRAINT [StudentInterventionAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentInterventionAssociationInterventionEffectiveness] -- @@ -8746,7 +8746,7 @@ CREATE TABLE [edfi].[StudentInterventionAssociationInterventionEffectiveness] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentInterventionAssociationInterventionEffectiveness] ADD CONSTRAINT [StudentInterventionAssociationInterventionEffectiveness_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentInterventionAssociationInterventionEffectiveness] ADD CONSTRAINT [StudentInterventionAssociationInterventionEffectiveness_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentInterventionAttendanceEvent] -- @@ -8773,11 +8773,11 @@ CREATE TABLE [edfi].[StudentInterventionAttendanceEvent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentInterventionAttendanceEvent] ADD CONSTRAINT [StudentInterventionAttendanceEvent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentInterventionAttendanceEvent] ADD CONSTRAINT [StudentInterventionAttendanceEvent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentInterventionAttendanceEvent] ADD CONSTRAINT [StudentInterventionAttendanceEvent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentInterventionAttendanceEvent] ADD CONSTRAINT [StudentInterventionAttendanceEvent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentInterventionAttendanceEvent] ADD CONSTRAINT [StudentInterventionAttendanceEvent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentLanguageInstructionProgramAssociation] -- @@ -8826,7 +8826,7 @@ CREATE TABLE [edfi].[StudentLanguageInstructionProgramAssociationEnglishLanguage ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment] ADD CONSTRAINT [StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment] ADD CONSTRAINT [StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService] -- @@ -8853,7 +8853,7 @@ CREATE TABLE [edfi].[StudentLanguageInstructionProgramAssociationLanguageInstruc ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService] ADD CONSTRAINT [StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService] ADD CONSTRAINT [StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentLearningObjective] -- @@ -8882,11 +8882,11 @@ CREATE TABLE [edfi].[StudentLearningObjective] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentLearningObjective] ADD CONSTRAINT [StudentLearningObjective_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentLearningObjective] ADD CONSTRAINT [StudentLearningObjective_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentLearningObjective] ADD CONSTRAINT [StudentLearningObjective_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentLearningObjective] ADD CONSTRAINT [StudentLearningObjective_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentLearningObjective] ADD CONSTRAINT [StudentLearningObjective_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentLearningObjectiveGeneralStudentProgramAssociation] -- @@ -8920,7 +8920,7 @@ CREATE TABLE [edfi].[StudentLearningObjectiveGeneralStudentProgramAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentLearningObjectiveGeneralStudentProgramAssociation] ADD CONSTRAINT [StudentLearningObjectiveGeneralStudentProgramAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentLearningObjectiveGeneralStudentProgramAssociation] ADD CONSTRAINT [StudentLearningObjectiveGeneralStudentProgramAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentLearningObjectiveStudentSectionAssociation] -- @@ -8956,7 +8956,7 @@ CREATE TABLE [edfi].[StudentLearningObjectiveStudentSectionAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentLearningObjectiveStudentSectionAssociation] ADD CONSTRAINT [StudentLearningObjectiveStudentSectionAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentLearningObjectiveStudentSectionAssociation] ADD CONSTRAINT [StudentLearningObjectiveStudentSectionAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentMigrantEducationProgramAssociation] -- @@ -9011,7 +9011,7 @@ CREATE TABLE [edfi].[StudentMigrantEducationProgramAssociationMigrantEducationPr ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentMigrantEducationProgramAssociationMigrantEducationProgramService] ADD CONSTRAINT [StudentMigrantEducationProgramAssociationMigrantEducationProgramService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentMigrantEducationProgramAssociationMigrantEducationProgramService] ADD CONSTRAINT [StudentMigrantEducationProgramAssociationMigrantEducationProgramService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentNeglectedOrDelinquentProgramAssociation] -- @@ -9060,7 +9060,7 @@ CREATE TABLE [edfi].[StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDe ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramService] ADD CONSTRAINT [StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramService] ADD CONSTRAINT [StudentNeglectedOrDelinquentProgramAssociationNeglectedOrDelinquentProgramService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentOtherName] -- @@ -9079,7 +9079,7 @@ CREATE TABLE [edfi].[StudentOtherName] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentOtherName] ADD CONSTRAINT [StudentOtherName_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentOtherName] ADD CONSTRAINT [StudentOtherName_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentParentAssociation] -- @@ -9103,11 +9103,11 @@ CREATE TABLE [edfi].[StudentParentAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentParentAssociation] ADD CONSTRAINT [StudentParentAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentParentAssociation] ADD CONSTRAINT [StudentParentAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentParentAssociation] ADD CONSTRAINT [StudentParentAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentParentAssociation] ADD CONSTRAINT [StudentParentAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentParentAssociation] ADD CONSTRAINT [StudentParentAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentParticipationCodeDescriptor] -- @@ -9137,7 +9137,7 @@ CREATE TABLE [edfi].[StudentPersonalIdentificationDocument] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentPersonalIdentificationDocument] ADD CONSTRAINT [StudentPersonalIdentificationDocument_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentPersonalIdentificationDocument] ADD CONSTRAINT [StudentPersonalIdentificationDocument_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentProgramAssociation] -- @@ -9183,7 +9183,7 @@ CREATE TABLE [edfi].[StudentProgramAssociationService] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentProgramAssociationService] ADD CONSTRAINT [StudentProgramAssociationService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentProgramAssociationService] ADD CONSTRAINT [StudentProgramAssociationService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentProgramAttendanceEvent] -- @@ -9214,11 +9214,11 @@ CREATE TABLE [edfi].[StudentProgramAttendanceEvent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentProgramAttendanceEvent] ADD CONSTRAINT [StudentProgramAttendanceEvent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentProgramAttendanceEvent] ADD CONSTRAINT [StudentProgramAttendanceEvent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentProgramAttendanceEvent] ADD CONSTRAINT [StudentProgramAttendanceEvent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentProgramAttendanceEvent] ADD CONSTRAINT [StudentProgramAttendanceEvent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentProgramAttendanceEvent] ADD CONSTRAINT [StudentProgramAttendanceEvent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentSchoolAssociation] -- @@ -9255,11 +9255,11 @@ CREATE TABLE [edfi].[StudentSchoolAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSchoolAssociation] ADD CONSTRAINT [StudentSchoolAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSchoolAssociation] ADD CONSTRAINT [StudentSchoolAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentSchoolAssociation] ADD CONSTRAINT [StudentSchoolAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentSchoolAssociation] ADD CONSTRAINT [StudentSchoolAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentSchoolAssociation] ADD CONSTRAINT [StudentSchoolAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentSchoolAssociationAlternativeGraduationPlan] -- @@ -9281,7 +9281,7 @@ CREATE TABLE [edfi].[StudentSchoolAssociationAlternativeGraduationPlan] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSchoolAssociationAlternativeGraduationPlan] ADD CONSTRAINT [StudentSchoolAssociationAlternativeGraduationPlan_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSchoolAssociationAlternativeGraduationPlan] ADD CONSTRAINT [StudentSchoolAssociationAlternativeGraduationPlan_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentSchoolAssociationEducationPlan] -- @@ -9299,7 +9299,7 @@ CREATE TABLE [edfi].[StudentSchoolAssociationEducationPlan] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSchoolAssociationEducationPlan] ADD CONSTRAINT [StudentSchoolAssociationEducationPlan_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSchoolAssociationEducationPlan] ADD CONSTRAINT [StudentSchoolAssociationEducationPlan_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentSchoolAttendanceEvent] -- @@ -9330,11 +9330,11 @@ CREATE TABLE [edfi].[StudentSchoolAttendanceEvent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSchoolAttendanceEvent] ADD CONSTRAINT [StudentSchoolAttendanceEvent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSchoolAttendanceEvent] ADD CONSTRAINT [StudentSchoolAttendanceEvent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentSchoolAttendanceEvent] ADD CONSTRAINT [StudentSchoolAttendanceEvent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentSchoolAttendanceEvent] ADD CONSTRAINT [StudentSchoolAttendanceEvent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentSchoolAttendanceEvent] ADD CONSTRAINT [StudentSchoolAttendanceEvent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentSchoolFoodServiceProgramAssociation] -- @@ -9381,7 +9381,7 @@ CREATE TABLE [edfi].[StudentSchoolFoodServiceProgramAssociationSchoolFoodService ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService] ADD CONSTRAINT [StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService] ADD CONSTRAINT [StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentSectionAssociation] -- @@ -9413,11 +9413,11 @@ CREATE TABLE [edfi].[StudentSectionAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSectionAssociation] ADD CONSTRAINT [StudentSectionAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSectionAssociation] ADD CONSTRAINT [StudentSectionAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentSectionAssociation] ADD CONSTRAINT [StudentSectionAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentSectionAssociation] ADD CONSTRAINT [StudentSectionAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentSectionAssociation] ADD CONSTRAINT [StudentSectionAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentSectionAttendanceEvent] -- @@ -9452,11 +9452,11 @@ CREATE TABLE [edfi].[StudentSectionAttendanceEvent] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSectionAttendanceEvent] ADD CONSTRAINT [StudentSectionAttendanceEvent_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSectionAttendanceEvent] ADD CONSTRAINT [StudentSectionAttendanceEvent_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[StudentSectionAttendanceEvent] ADD CONSTRAINT [StudentSectionAttendanceEvent_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[StudentSectionAttendanceEvent] ADD CONSTRAINT [StudentSectionAttendanceEvent_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[StudentSectionAttendanceEvent] ADD CONSTRAINT [StudentSectionAttendanceEvent_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[StudentSectionAttendanceEventClassPeriod] -- @@ -9484,7 +9484,7 @@ CREATE TABLE [edfi].[StudentSectionAttendanceEventClassPeriod] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSectionAttendanceEventClassPeriod] ADD CONSTRAINT [StudentSectionAttendanceEventClassPeriod_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSectionAttendanceEventClassPeriod] ADD CONSTRAINT [StudentSectionAttendanceEventClassPeriod_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentSpecialEducationProgramAssociation] -- @@ -9540,7 +9540,7 @@ CREATE TABLE [edfi].[StudentSpecialEducationProgramAssociationDisability] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationDisability] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationDisability_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationDisability] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationDisability_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentSpecialEducationProgramAssociationDisabilityDesignation] -- @@ -9566,7 +9566,7 @@ CREATE TABLE [edfi].[StudentSpecialEducationProgramAssociationDisabilityDesignat ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationDisabilityDesignation] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationDisabilityDesignation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationDisabilityDesignation] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationDisabilityDesignation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentSpecialEducationProgramAssociationServiceProvider] -- @@ -9591,7 +9591,7 @@ CREATE TABLE [edfi].[StudentSpecialEducationProgramAssociationServiceProvider] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationServiceProvider] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationServiceProvider_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationServiceProvider] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationServiceProvider_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentSpecialEducationProgramAssociationSpecialEducationProgramService] -- @@ -9618,7 +9618,7 @@ CREATE TABLE [edfi].[StudentSpecialEducationProgramAssociationSpecialEducationPr ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationSpecialEducationProgramService] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationSpecialEducationProgramService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationSpecialEducationProgramService] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationSpecialEducationProgramService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProvider] -- @@ -9645,7 +9645,7 @@ CREATE TABLE [edfi].[StudentSpecialEducationProgramAssociationSpecialEducationPr ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProvider] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProvider_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProvider] ADD CONSTRAINT [StudentSpecialEducationProgramAssociationSpecialEducationProgramServiceProvider_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentTitleIPartAProgramAssociation] -- @@ -9692,7 +9692,7 @@ CREATE TABLE [edfi].[StudentTitleIPartAProgramAssociationService] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentTitleIPartAProgramAssociationService] ADD CONSTRAINT [StudentTitleIPartAProgramAssociationService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentTitleIPartAProgramAssociationService] ADD CONSTRAINT [StudentTitleIPartAProgramAssociationService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentTitleIPartAProgramAssociationTitleIPartAProgramService] -- @@ -9719,7 +9719,7 @@ CREATE TABLE [edfi].[StudentTitleIPartAProgramAssociationTitleIPartAProgramServi ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentTitleIPartAProgramAssociationTitleIPartAProgramService] ADD CONSTRAINT [StudentTitleIPartAProgramAssociationTitleIPartAProgramService_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentTitleIPartAProgramAssociationTitleIPartAProgramService] ADD CONSTRAINT [StudentTitleIPartAProgramAssociationTitleIPartAProgramService_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[StudentVisa] -- @@ -9733,7 +9733,7 @@ CREATE TABLE [edfi].[StudentVisa] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[StudentVisa] ADD CONSTRAINT [StudentVisa_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[StudentVisa] ADD CONSTRAINT [StudentVisa_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SubmissionStatusDescriptor] -- @@ -9766,11 +9766,11 @@ CREATE TABLE [edfi].[Survey] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[Survey] ADD CONSTRAINT [Survey_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[Survey] ADD CONSTRAINT [Survey_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[Survey] ADD CONSTRAINT [Survey_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[Survey] ADD CONSTRAINT [Survey_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[Survey] ADD CONSTRAINT [Survey_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveyCategoryDescriptor] -- @@ -9800,11 +9800,11 @@ CREATE TABLE [edfi].[SurveyCourseAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyCourseAssociation] ADD CONSTRAINT [SurveyCourseAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyCourseAssociation] ADD CONSTRAINT [SurveyCourseAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveyCourseAssociation] ADD CONSTRAINT [SurveyCourseAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveyCourseAssociation] ADD CONSTRAINT [SurveyCourseAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveyCourseAssociation] ADD CONSTRAINT [SurveyCourseAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveyLevelDescriptor] -- @@ -9836,11 +9836,11 @@ CREATE TABLE [edfi].[SurveyProgramAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyProgramAssociation] ADD CONSTRAINT [SurveyProgramAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyProgramAssociation] ADD CONSTRAINT [SurveyProgramAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveyProgramAssociation] ADD CONSTRAINT [SurveyProgramAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveyProgramAssociation] ADD CONSTRAINT [SurveyProgramAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveyProgramAssociation] ADD CONSTRAINT [SurveyProgramAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveyQuestion] -- @@ -9862,11 +9862,11 @@ CREATE TABLE [edfi].[SurveyQuestion] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyQuestion] ADD CONSTRAINT [SurveyQuestion_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyQuestion] ADD CONSTRAINT [SurveyQuestion_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveyQuestion] ADD CONSTRAINT [SurveyQuestion_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveyQuestion] ADD CONSTRAINT [SurveyQuestion_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveyQuestion] ADD CONSTRAINT [SurveyQuestion_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveyQuestionMatrix] -- @@ -9886,7 +9886,7 @@ CREATE TABLE [edfi].[SurveyQuestionMatrix] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyQuestionMatrix] ADD CONSTRAINT [SurveyQuestionMatrix_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyQuestionMatrix] ADD CONSTRAINT [SurveyQuestionMatrix_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SurveyQuestionResponse] -- @@ -9909,11 +9909,11 @@ CREATE TABLE [edfi].[SurveyQuestionResponse] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyQuestionResponse] ADD CONSTRAINT [SurveyQuestionResponse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyQuestionResponse] ADD CONSTRAINT [SurveyQuestionResponse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveyQuestionResponse] ADD CONSTRAINT [SurveyQuestionResponse_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveyQuestionResponse] ADD CONSTRAINT [SurveyQuestionResponse_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveyQuestionResponse] ADD CONSTRAINT [SurveyQuestionResponse_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveyQuestionResponseChoice] -- @@ -9933,7 +9933,7 @@ CREATE TABLE [edfi].[SurveyQuestionResponseChoice] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyQuestionResponseChoice] ADD CONSTRAINT [SurveyQuestionResponseChoice_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyQuestionResponseChoice] ADD CONSTRAINT [SurveyQuestionResponseChoice_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SurveyQuestionResponseSurveyQuestionMatrixElementResponse] -- @@ -9958,7 +9958,7 @@ CREATE TABLE [edfi].[SurveyQuestionResponseSurveyQuestionMatrixElementResponse] ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyQuestionResponseSurveyQuestionMatrixElementResponse] ADD CONSTRAINT [SurveyQuestionResponseSurveyQuestionMatrixElementResponse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyQuestionResponseSurveyQuestionMatrixElementResponse] ADD CONSTRAINT [SurveyQuestionResponseSurveyQuestionMatrixElementResponse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SurveyQuestionResponseValue] -- @@ -9980,7 +9980,7 @@ CREATE TABLE [edfi].[SurveyQuestionResponseValue] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyQuestionResponseValue] ADD CONSTRAINT [SurveyQuestionResponseValue_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyQuestionResponseValue] ADD CONSTRAINT [SurveyQuestionResponseValue_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SurveyResponse] -- @@ -10007,11 +10007,11 @@ CREATE TABLE [edfi].[SurveyResponse] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyResponse] ADD CONSTRAINT [SurveyResponse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyResponse] ADD CONSTRAINT [SurveyResponse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveyResponse] ADD CONSTRAINT [SurveyResponse_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveyResponse] ADD CONSTRAINT [SurveyResponse_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveyResponse] ADD CONSTRAINT [SurveyResponse_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveyResponseEducationOrganizationTargetAssociation] -- @@ -10032,11 +10032,11 @@ CREATE TABLE [edfi].[SurveyResponseEducationOrganizationTargetAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveyResponseEducationOrganizationTargetAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveyResponseEducationOrganizationTargetAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveyResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveyResponseEducationOrganizationTargetAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveyResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveyResponseEducationOrganizationTargetAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveyResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveyResponseEducationOrganizationTargetAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveyResponseStaffTargetAssociation] -- @@ -10057,11 +10057,11 @@ CREATE TABLE [edfi].[SurveyResponseStaffTargetAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyResponseStaffTargetAssociation] ADD CONSTRAINT [SurveyResponseStaffTargetAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyResponseStaffTargetAssociation] ADD CONSTRAINT [SurveyResponseStaffTargetAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveyResponseStaffTargetAssociation] ADD CONSTRAINT [SurveyResponseStaffTargetAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveyResponseStaffTargetAssociation] ADD CONSTRAINT [SurveyResponseStaffTargetAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveyResponseStaffTargetAssociation] ADD CONSTRAINT [SurveyResponseStaffTargetAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveyResponseSurveyLevel] -- @@ -10079,7 +10079,7 @@ CREATE TABLE [edfi].[SurveyResponseSurveyLevel] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveyResponseSurveyLevel] ADD CONSTRAINT [SurveyResponseSurveyLevel_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveyResponseSurveyLevel] ADD CONSTRAINT [SurveyResponseSurveyLevel_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO -- Table [edfi].[SurveySection] -- @@ -10098,11 +10098,11 @@ CREATE TABLE [edfi].[SurveySection] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveySection] ADD CONSTRAINT [SurveySection_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveySection] ADD CONSTRAINT [SurveySection_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveySection] ADD CONSTRAINT [SurveySection_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveySection] ADD CONSTRAINT [SurveySection_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveySection] ADD CONSTRAINT [SurveySection_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveySectionAssociation] -- @@ -10129,11 +10129,11 @@ CREATE TABLE [edfi].[SurveySectionAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveySectionAssociation] ADD CONSTRAINT [SurveySectionAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveySectionAssociation] ADD CONSTRAINT [SurveySectionAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveySectionAssociation] ADD CONSTRAINT [SurveySectionAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveySectionAssociation] ADD CONSTRAINT [SurveySectionAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveySectionAssociation] ADD CONSTRAINT [SurveySectionAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveySectionResponse] -- @@ -10155,11 +10155,11 @@ CREATE TABLE [edfi].[SurveySectionResponse] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveySectionResponse] ADD CONSTRAINT [SurveySectionResponse_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveySectionResponse] ADD CONSTRAINT [SurveySectionResponse_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveySectionResponse] ADD CONSTRAINT [SurveySectionResponse_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveySectionResponse] ADD CONSTRAINT [SurveySectionResponse_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveySectionResponse] ADD CONSTRAINT [SurveySectionResponse_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] -- @@ -10182,11 +10182,11 @@ CREATE TABLE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveySectionResponseEducationOrganizationTargetAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveySectionResponseEducationOrganizationTargetAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveySectionResponseEducationOrganizationTargetAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveySectionResponseEducationOrganizationTargetAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] ADD CONSTRAINT [SurveySectionResponseEducationOrganizationTargetAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[SurveySectionResponseStaffTargetAssociation] -- @@ -10209,11 +10209,11 @@ CREATE TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] ( ) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO -ALTER TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] ADD CONSTRAINT [SurveySectionResponseStaffTargetAssociation_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate] +ALTER TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] ADD CONSTRAINT [SurveySectionResponseStaffTargetAssociation_DF_CreateDate] DEFAULT (getutcdate()) FOR [CreateDate] GO ALTER TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] ADD CONSTRAINT [SurveySectionResponseStaffTargetAssociation_DF_Id] DEFAULT (newid()) FOR [Id] GO -ALTER TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] ADD CONSTRAINT [SurveySectionResponseStaffTargetAssociation_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate] +ALTER TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] ADD CONSTRAINT [SurveySectionResponseStaffTargetAssociation_DF_LastModifiedDate] DEFAULT (getutcdate()) FOR [LastModifiedDate] GO -- Table [edfi].[TeachingCredentialBasisDescriptor] -- diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/0030-ForeignKeys.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/0030-ForeignKeys.sql index 0d1738ac09..92d0a41ff6 100644 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/0030-ForeignKeys.sql +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/0030-ForeignKeys.sql @@ -1327,10 +1327,6 @@ ALTER TABLE [edfi].[DisciplineAction] WITH CHECK ADD CONSTRAINT [FK_DisciplineAc REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_DisciplineAction_Student] -ON [edfi].[DisciplineAction] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[DisciplineActionDiscipline] WITH CHECK ADD CONSTRAINT [FK_DisciplineActionDiscipline_DisciplineAction] FOREIGN KEY ([DisciplineActionIdentifier], [DisciplineDate], [StudentUSI]) REFERENCES [edfi].[DisciplineAction] ([DisciplineActionIdentifier], [DisciplineDate], [StudentUSI]) ON DELETE CASCADE @@ -1417,10 +1413,6 @@ ALTER TABLE [edfi].[DisciplineIncident] WITH CHECK ADD CONSTRAINT [FK_Discipline REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_DisciplineIncident_Staff] -ON [edfi].[DisciplineIncident] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[DisciplineIncidentBehavior] WITH CHECK ADD CONSTRAINT [FK_DisciplineIncidentBehavior_BehaviorDescriptor] FOREIGN KEY ([BehaviorDescriptorId]) REFERENCES [edfi].[BehaviorDescriptor] ([BehaviorDescriptorId]) GO @@ -1884,10 +1876,6 @@ ALTER TABLE [edfi].[GeneralStudentProgramAssociation] WITH CHECK ADD CONSTRAINT REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_GeneralStudentProgramAssociation_Student] -ON [edfi].[GeneralStudentProgramAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[GeneralStudentProgramAssociationParticipationStatus] WITH CHECK ADD CONSTRAINT [FK_GeneralStudentProgramAssociationParticipationStatus_GeneralStudentProgramAssociation] FOREIGN KEY ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) REFERENCES [edfi].[GeneralStudentProgramAssociation] ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) ON DELETE CASCADE @@ -2979,10 +2967,6 @@ ALTER TABLE [edfi].[LocalContractedStaff] WITH CHECK ADD CONSTRAINT [FK_LocalCon REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_LocalContractedStaff_Staff] -ON [edfi].[LocalContractedStaff] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[LocaleDescriptor] WITH CHECK ADD CONSTRAINT [FK_LocaleDescriptor_Descriptor] FOREIGN KEY ([LocaleDescriptorId]) REFERENCES [edfi].[Descriptor] ([DescriptorId]) ON DELETE CASCADE @@ -3108,10 +3092,6 @@ ALTER TABLE [edfi].[LocalPayroll] WITH CHECK ADD CONSTRAINT [FK_LocalPayroll_Sta REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_LocalPayroll_Staff] -ON [edfi].[LocalPayroll] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[Location] WITH CHECK ADD CONSTRAINT [FK_Location_School] FOREIGN KEY ([SchoolId]) REFERENCES [edfi].[School] ([SchoolId]) GO @@ -3622,10 +3602,6 @@ ALTER TABLE [edfi].[PostSecondaryEvent] WITH CHECK ADD CONSTRAINT [FK_PostSecond REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_PostSecondaryEvent_Student] -ON [edfi].[PostSecondaryEvent] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[PostSecondaryEventCategoryDescriptor] WITH CHECK ADD CONSTRAINT [FK_PostSecondaryEventCategoryDescriptor_Descriptor] FOREIGN KEY ([PostSecondaryEventCategoryDescriptorId]) REFERENCES [edfi].[Descriptor] ([DescriptorId]) ON DELETE CASCADE @@ -3894,10 +3870,6 @@ ALTER TABLE [edfi].[ReportCard] WITH CHECK ADD CONSTRAINT [FK_ReportCard_Student REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_ReportCard_Student] -ON [edfi].[ReportCard] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[ReportCardGrade] WITH CHECK ADD CONSTRAINT [FK_ReportCardGrade_Grade] FOREIGN KEY ([BeginDate], [GradeTypeDescriptorId], [GradingPeriodDescriptorId], [GradingPeriodSequence], [GradingPeriodSchoolYear], [LocalCourseCode], [SchoolId], [SchoolYear], [SectionIdentifier], [SessionName], [StudentUSI]) REFERENCES [edfi].[Grade] ([BeginDate], [GradeTypeDescriptorId], [GradingPeriodDescriptorId], [GradingPeriodSequence], [GradingPeriodSchoolYear], [LocalCourseCode], [SchoolId], [SchoolYear], [SectionIdentifier], [SessionName], [StudentUSI]) ON UPDATE CASCADE @@ -3992,10 +3964,6 @@ ALTER TABLE [edfi].[RestraintEvent] WITH CHECK ADD CONSTRAINT [FK_RestraintEvent REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_RestraintEvent_Student] -ON [edfi].[RestraintEvent] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[RestraintEventProgram] WITH CHECK ADD CONSTRAINT [FK_RestraintEventProgram_Program] FOREIGN KEY ([EducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId]) REFERENCES [edfi].[Program] ([EducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId]) GO @@ -4247,10 +4215,6 @@ ALTER TABLE [edfi].[SectionAttendanceTakenEvent] WITH CHECK ADD CONSTRAINT [FK_S REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_SectionAttendanceTakenEvent_Staff] -ON [edfi].[SectionAttendanceTakenEvent] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[SectionCharacteristic] WITH CHECK ADD CONSTRAINT [FK_SectionCharacteristic_Section] FOREIGN KEY ([LocalCourseCode], [SchoolId], [SchoolYear], [SectionIdentifier], [SessionName]) REFERENCES [edfi].[Section] ([LocalCourseCode], [SchoolId], [SchoolYear], [SectionIdentifier], [SessionName]) ON DELETE CASCADE @@ -4475,10 +4439,6 @@ ALTER TABLE [edfi].[StaffAbsenceEvent] WITH CHECK ADD CONSTRAINT [FK_StaffAbsenc REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffAbsenceEvent_Staff] -ON [edfi].[StaffAbsenceEvent] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffAddress] WITH CHECK ADD CONSTRAINT [FK_StaffAddress_AddressTypeDescriptor] FOREIGN KEY ([AddressTypeDescriptorId]) REFERENCES [edfi].[AddressTypeDescriptor] ([AddressTypeDescriptorId]) GO @@ -4543,10 +4503,6 @@ ALTER TABLE [edfi].[StaffCohortAssociation] WITH CHECK ADD CONSTRAINT [FK_StaffC REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffCohortAssociation_Staff] -ON [edfi].[StaffCohortAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffCredential] WITH CHECK ADD CONSTRAINT [FK_StaffCredential_Credential] FOREIGN KEY ([CredentialIdentifier], [StateOfIssueStateAbbreviationDescriptorId]) REFERENCES [edfi].[Credential] ([CredentialIdentifier], [StateOfIssueStateAbbreviationDescriptorId]) GO @@ -4572,10 +4528,6 @@ ALTER TABLE [edfi].[StaffDisciplineIncidentAssociation] WITH CHECK ADD CONSTRAIN REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffDisciplineIncidentAssociation_Staff] -ON [edfi].[StaffDisciplineIncidentAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode] WITH CHECK ADD CONSTRAINT [FK_StaffDisciplineIncidentAssociationDisciplineIncidentParticipationCode_DisciplineIncidentParticipationCodeDescriptor] FOREIGN KEY ([DisciplineIncidentParticipationCodeDescriptorId]) REFERENCES [edfi].[DisciplineIncidentParticipationCodeDescriptor] ([DisciplineIncidentParticipationCodeDescriptorId]) GO @@ -4605,10 +4557,6 @@ ALTER TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] WITH CHECK REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffEducationOrganizationAssignmentAssociation_Staff] -ON [edfi].[StaffEducationOrganizationAssignmentAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] WITH CHECK ADD CONSTRAINT [FK_StaffEducationOrganizationAssignmentAssociation_StaffClassificationDescriptor] FOREIGN KEY ([StaffClassificationDescriptorId]) REFERENCES [edfi].[StaffClassificationDescriptor] ([StaffClassificationDescriptorId]) GO @@ -4641,10 +4589,6 @@ ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociation] WITH CHECK ADD REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffEducationOrganizationContactAssociation_Staff] -ON [edfi].[StaffEducationOrganizationContactAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociationAddress] WITH CHECK ADD CONSTRAINT [FK_StaffEducationOrganizationContactAssociationAddress_AddressTypeDescriptor] FOREIGN KEY ([AddressTypeDescriptorId]) REFERENCES [edfi].[AddressTypeDescriptor] ([AddressTypeDescriptorId]) GO @@ -4732,10 +4676,6 @@ ALTER TABLE [edfi].[StaffEducationOrganizationEmploymentAssociation] WITH CHECK REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffEducationOrganizationEmploymentAssociation_Staff] -ON [edfi].[StaffEducationOrganizationEmploymentAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffElectronicMail] WITH CHECK ADD CONSTRAINT [FK_StaffElectronicMail_ElectronicMailTypeDescriptor] FOREIGN KEY ([ElectronicMailTypeDescriptorId]) REFERENCES [edfi].[ElectronicMailTypeDescriptor] ([ElectronicMailTypeDescriptorId]) GO @@ -4847,10 +4787,6 @@ ALTER TABLE [edfi].[StaffLeave] WITH CHECK ADD CONSTRAINT [FK_StaffLeave_Staff] REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffLeave_Staff] -ON [edfi].[StaffLeave] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffLeave] WITH CHECK ADD CONSTRAINT [FK_StaffLeave_StaffLeaveEventCategoryDescriptor] FOREIGN KEY ([StaffLeaveEventCategoryDescriptorId]) REFERENCES [edfi].[StaffLeaveEventCategoryDescriptor] ([StaffLeaveEventCategoryDescriptorId]) GO @@ -4918,10 +4854,6 @@ ALTER TABLE [edfi].[StaffProgramAssociation] WITH CHECK ADD CONSTRAINT [FK_Staff REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffProgramAssociation_Staff] -ON [edfi].[StaffProgramAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffRace] WITH CHECK ADD CONSTRAINT [FK_StaffRace_RaceDescriptor] FOREIGN KEY ([RaceDescriptorId]) REFERENCES [edfi].[RaceDescriptor] ([RaceDescriptorId]) GO @@ -4988,10 +4920,6 @@ ALTER TABLE [edfi].[StaffSchoolAssociation] WITH CHECK ADD CONSTRAINT [FK_StaffS REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffSchoolAssociation_Staff] -ON [edfi].[StaffSchoolAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffSchoolAssociationAcademicSubject] WITH CHECK ADD CONSTRAINT [FK_StaffSchoolAssociationAcademicSubject_AcademicSubjectDescriptor] FOREIGN KEY ([AcademicSubjectDescriptorId]) REFERENCES [edfi].[AcademicSubjectDescriptor] ([AcademicSubjectDescriptorId]) GO @@ -5039,10 +4967,6 @@ ALTER TABLE [edfi].[StaffSectionAssociation] WITH CHECK ADD CONSTRAINT [FK_Staff REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StaffSectionAssociation_Staff] -ON [edfi].[StaffSectionAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[StaffTelephone] WITH CHECK ADD CONSTRAINT [FK_StaffTelephone_Staff] FOREIGN KEY ([StaffUSI]) REFERENCES [edfi].[Staff] ([StaffUSI]) ON DELETE CASCADE @@ -5198,10 +5122,6 @@ ALTER TABLE [edfi].[StudentAcademicRecord] WITH CHECK ADD CONSTRAINT [FK_Student REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentAcademicRecord_Student] -ON [edfi].[StudentAcademicRecord] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentAcademicRecord] WITH CHECK ADD CONSTRAINT [FK_StudentAcademicRecord_TermDescriptor] FOREIGN KEY ([TermDescriptorId]) REFERENCES [edfi].[TermDescriptor] ([TermDescriptorId]) GO @@ -5396,10 +5316,6 @@ ALTER TABLE [edfi].[StudentAssessment] WITH CHECK ADD CONSTRAINT [FK_StudentAsse REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentAssessment_Student] -ON [edfi].[StudentAssessment] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentAssessmentAccommodation] WITH CHECK ADD CONSTRAINT [FK_StudentAssessmentAccommodation_AccommodationDescriptor] FOREIGN KEY ([AccommodationDescriptorId]) REFERENCES [edfi].[AccommodationDescriptor] ([AccommodationDescriptorId]) GO @@ -5597,10 +5513,6 @@ ALTER TABLE [edfi].[StudentCohortAssociation] WITH CHECK ADD CONSTRAINT [FK_Stud REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentCohortAssociation_Student] -ON [edfi].[StudentCohortAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentCohortAssociationSection] WITH CHECK ADD CONSTRAINT [FK_StudentCohortAssociationSection_Section] FOREIGN KEY ([LocalCourseCode], [SchoolId], [SchoolYear], [SectionIdentifier], [SessionName]) REFERENCES [edfi].[Section] ([LocalCourseCode], [SchoolId], [SchoolYear], [SectionIdentifier], [SessionName]) ON UPDATE CASCADE @@ -5643,10 +5555,6 @@ ALTER TABLE [edfi].[StudentCompetencyObjective] WITH CHECK ADD CONSTRAINT [FK_St REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentCompetencyObjective_Student] -ON [edfi].[StudentCompetencyObjective] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentCompetencyObjectiveGeneralStudentProgramAssociation] WITH CHECK ADD CONSTRAINT [FK_StudentCompetencyObjectiveGeneralStudentProgramAssociation_GeneralStudentProgramAssociation] FOREIGN KEY ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) REFERENCES [edfi].[GeneralStudentProgramAssociation] ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) GO @@ -5738,10 +5646,6 @@ ALTER TABLE [edfi].[StudentDisciplineIncidentAssociation] WITH CHECK ADD CONSTRA REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentDisciplineIncidentAssociation_Student] -ON [edfi].[StudentDisciplineIncidentAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentDisciplineIncidentAssociation] WITH CHECK ADD CONSTRAINT [FK_StudentDisciplineIncidentAssociation_StudentParticipationCodeDescriptor] FOREIGN KEY ([StudentParticipationCodeDescriptorId]) REFERENCES [edfi].[StudentParticipationCodeDescriptor] ([StudentParticipationCodeDescriptorId]) GO @@ -5783,10 +5687,6 @@ ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociation] WITH CHECK ADD REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentDisciplineIncidentBehaviorAssociation_Student] -ON [edfi].[StudentDisciplineIncidentBehaviorAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode] WITH CHECK ADD CONSTRAINT [FK_StudentDisciplineIncidentBehaviorAssociationDisciplineIncidentParticipationCode_DisciplineIncidentParticipationCodeDescriptor] FOREIGN KEY ([DisciplineIncidentParticipationCodeDescriptorId]) REFERENCES [edfi].[DisciplineIncidentParticipationCodeDescriptor] ([DisciplineIncidentParticipationCodeDescriptorId]) GO @@ -5812,10 +5712,6 @@ ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociation] WITH CHECK REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentDisciplineIncidentNonOffenderAssociation_Student] -ON [edfi].[StudentDisciplineIncidentNonOffenderAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode] WITH CHECK ADD CONSTRAINT [FK_StudentDisciplineIncidentNonOffenderAssociationDisciplineIncidentParticipationCode_DisciplineIncidentParticipationCodeDescrip] FOREIGN KEY ([DisciplineIncidentParticipationCodeDescriptorId]) REFERENCES [edfi].[DisciplineIncidentParticipationCodeDescriptor] ([DisciplineIncidentParticipationCodeDescriptorId]) GO @@ -5909,10 +5805,6 @@ ALTER TABLE [edfi].[StudentEducationOrganizationAssociation] WITH CHECK ADD CONS REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentEducationOrganizationAssociation_Student] -ON [edfi].[StudentEducationOrganizationAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentEducationOrganizationAssociationAddress] WITH CHECK ADD CONSTRAINT [FK_StudentEducationOrganizationAssociationAddress_AddressTypeDescriptor] FOREIGN KEY ([AddressTypeDescriptorId]) REFERENCES [edfi].[AddressTypeDescriptor] ([AddressTypeDescriptorId]) GO @@ -6205,10 +6097,6 @@ ALTER TABLE [edfi].[StudentEducationOrganizationResponsibilityAssociation] WITH REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentEducationOrganizationResponsibilityAssociation_Student] -ON [edfi].[StudentEducationOrganizationResponsibilityAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentGradebookEntry] WITH CHECK ADD CONSTRAINT [FK_StudentGradebookEntry_AssignmentLateStatusDescriptor] FOREIGN KEY ([AssignmentLateStatusDescriptorId]) REFERENCES [edfi].[AssignmentLateStatusDescriptor] ([AssignmentLateStatusDescriptorId]) GO @@ -6238,10 +6126,6 @@ ALTER TABLE [edfi].[StudentGradebookEntry] WITH CHECK ADD CONSTRAINT [FK_Student REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentGradebookEntry_Student] -ON [edfi].[StudentGradebookEntry] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentGradebookEntry] WITH CHECK ADD CONSTRAINT [FK_StudentGradebookEntry_SubmissionStatusDescriptor] FOREIGN KEY ([SubmissionStatusDescriptorId]) REFERENCES [edfi].[SubmissionStatusDescriptor] ([SubmissionStatusDescriptorId]) GO @@ -6330,10 +6214,6 @@ ALTER TABLE [edfi].[StudentInterventionAssociation] WITH CHECK ADD CONSTRAINT [F REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentInterventionAssociation_Student] -ON [edfi].[StudentInterventionAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentInterventionAssociationInterventionEffectiveness] WITH CHECK ADD CONSTRAINT [FK_StudentInterventionAssociationInterventionEffectiveness_DiagnosisDescriptor] FOREIGN KEY ([DiagnosisDescriptorId]) REFERENCES [edfi].[DiagnosisDescriptor] ([DiagnosisDescriptorId]) GO @@ -6399,10 +6279,6 @@ ALTER TABLE [edfi].[StudentInterventionAttendanceEvent] WITH CHECK ADD CONSTRAIN REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentInterventionAttendanceEvent_Student] -ON [edfi].[StudentInterventionAttendanceEvent] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentLanguageInstructionProgramAssociation] WITH CHECK ADD CONSTRAINT [FK_StudentLanguageInstructionProgramAssociation_GeneralStudentProgramAssociation] FOREIGN KEY ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) REFERENCES [edfi].[GeneralStudentProgramAssociation] ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) ON DELETE CASCADE @@ -6494,10 +6370,6 @@ ALTER TABLE [edfi].[StudentLearningObjective] WITH CHECK ADD CONSTRAINT [FK_Stud REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentLearningObjective_Student] -ON [edfi].[StudentLearningObjective] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentLearningObjectiveGeneralStudentProgramAssociation] WITH CHECK ADD CONSTRAINT [FK_StudentLearningObjectiveGeneralStudentProgramAssociation_GeneralStudentProgramAssociation] FOREIGN KEY ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) REFERENCES [edfi].[GeneralStudentProgramAssociation] ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) GO @@ -6714,10 +6586,6 @@ ALTER TABLE [edfi].[StudentProgramAttendanceEvent] WITH CHECK ADD CONSTRAINT [FK REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentProgramAttendanceEvent_Student] -ON [edfi].[StudentProgramAttendanceEvent] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentSchoolAssociation] WITH CHECK ADD CONSTRAINT [FK_StudentSchoolAssociation_Calendar] FOREIGN KEY ([CalendarCode], [SchoolId], [SchoolYear]) REFERENCES [edfi].[Calendar] ([CalendarCode], [SchoolId], [SchoolYear]) GO @@ -6798,10 +6666,6 @@ ALTER TABLE [edfi].[StudentSchoolAssociation] WITH CHECK ADD CONSTRAINT [FK_Stud REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentSchoolAssociation_Student] -ON [edfi].[StudentSchoolAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentSchoolAssociationAlternativeGraduationPlan] WITH CHECK ADD CONSTRAINT [FK_StudentSchoolAssociationAlternativeGraduationPlan_GraduationPlan] FOREIGN KEY ([AlternativeEducationOrganizationId], [AlternativeGraduationPlanTypeDescriptorId], [AlternativeGraduationSchoolYear]) REFERENCES [edfi].[GraduationPlan] ([EducationOrganizationId], [GraduationPlanTypeDescriptorId], [GraduationSchoolYear]) GO @@ -6863,10 +6727,6 @@ ALTER TABLE [edfi].[StudentSchoolAttendanceEvent] WITH CHECK ADD CONSTRAINT [FK_ REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentSchoolAttendanceEvent_Student] -ON [edfi].[StudentSchoolAttendanceEvent] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentSchoolFoodServiceProgramAssociation] WITH CHECK ADD CONSTRAINT [FK_StudentSchoolFoodServiceProgramAssociation_GeneralStudentProgramAssociation] FOREIGN KEY ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) REFERENCES [edfi].[GeneralStudentProgramAssociation] ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) ON DELETE CASCADE @@ -6914,10 +6774,6 @@ ALTER TABLE [edfi].[StudentSectionAssociation] WITH CHECK ADD CONSTRAINT [FK_Stu REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentSectionAssociation_Student] -ON [edfi].[StudentSectionAssociation] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentSectionAttendanceEvent] WITH CHECK ADD CONSTRAINT [FK_StudentSectionAttendanceEvent_AttendanceEventCategoryDescriptor] FOREIGN KEY ([AttendanceEventCategoryDescriptorId]) REFERENCES [edfi].[AttendanceEventCategoryDescriptor] ([AttendanceEventCategoryDescriptorId]) GO @@ -6947,10 +6803,6 @@ ALTER TABLE [edfi].[StudentSectionAttendanceEvent] WITH CHECK ADD CONSTRAINT [FK REFERENCES [edfi].[Student] ([StudentUSI]) GO -CREATE NONCLUSTERED INDEX [FK_StudentSectionAttendanceEvent_Student] -ON [edfi].[StudentSectionAttendanceEvent] ([StudentUSI] ASC) -GO - ALTER TABLE [edfi].[StudentSectionAttendanceEventClassPeriod] WITH CHECK ADD CONSTRAINT [FK_StudentSectionAttendanceEventClassPeriod_ClassPeriod] FOREIGN KEY ([ClassPeriodName], [SchoolId]) REFERENCES [edfi].[ClassPeriod] ([ClassPeriodName], [SchoolId]) ON UPDATE CASCADE @@ -7288,10 +7140,6 @@ ALTER TABLE [edfi].[SurveyResponseStaffTargetAssociation] WITH CHECK ADD CONSTRA REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_SurveyResponseStaffTargetAssociation_Staff] -ON [edfi].[SurveyResponseStaffTargetAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[SurveyResponseStaffTargetAssociation] WITH CHECK ADD CONSTRAINT [FK_SurveyResponseStaffTargetAssociation_SurveyResponse] FOREIGN KEY ([Namespace], [SurveyIdentifier], [SurveyResponseIdentifier]) REFERENCES [edfi].[SurveyResponse] ([Namespace], [SurveyIdentifier], [SurveyResponseIdentifier]) GO @@ -7370,10 +7218,6 @@ ALTER TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] WITH CHECK ADD REFERENCES [edfi].[Staff] ([StaffUSI]) GO -CREATE NONCLUSTERED INDEX [FK_SurveySectionResponseStaffTargetAssociation_Staff] -ON [edfi].[SurveySectionResponseStaffTargetAssociation] ([StaffUSI] ASC) -GO - ALTER TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] WITH CHECK ADD CONSTRAINT [FK_SurveySectionResponseStaffTargetAssociation_SurveySectionResponse] FOREIGN KEY ([Namespace], [SurveyIdentifier], [SurveyResponseIdentifier], [SurveySectionTitle]) REFERENCES [edfi].[SurveySectionResponse] ([Namespace], [SurveyIdentifier], [SurveyResponseIdentifier], [SurveySectionTitle]) GO diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1410-CreateIndex-EdOrgIdsRelationship-AuthPerformance.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1410-CreateIndex-EdOrgIdsRelationship-AuthPerformance.sql index 7254a59fb5..0311760afa 100644 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1410-CreateIndex-EdOrgIdsRelationship-AuthPerformance.sql +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1410-CreateIndex-EdOrgIdsRelationship-AuthPerformance.sql @@ -6,370 +6,370 @@ IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_AcademicWeek_SchoolId' AND object_id = OBJECT_ID('edfi.AcademicWeek')) BEGIN - CREATE INDEX IX_AcademicWeek_SchoolId ON edfi.AcademicWeek(SchoolId) INCLUDE (Id) + CREATE INDEX IX_AcademicWeek_SchoolId ON [edfi].[AcademicWeek](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_AccountabilityRating_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.AccountabilityRating')) BEGIN - CREATE INDEX IX_AccountabilityRating_EducationOrganizationId ON edfi.AccountabilityRating(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_AccountabilityRating_EducationOrganizationId ON [edfi].[AccountabilityRating](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Assessment_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.Assessment')) BEGIN - CREATE INDEX IX_Assessment_EducationOrganizationId ON edfi.Assessment(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_Assessment_EducationOrganizationId ON [edfi].[Assessment](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_BellSchedule_SchoolId' AND object_id = OBJECT_ID('edfi.BellSchedule')) BEGIN - CREATE INDEX IX_BellSchedule_SchoolId ON edfi.BellSchedule(SchoolId) INCLUDE (Id) + CREATE INDEX IX_BellSchedule_SchoolId ON [edfi].[BellSchedule](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Calendar_SchoolId' AND object_id = OBJECT_ID('edfi.Calendar')) BEGIN - CREATE INDEX IX_Calendar_SchoolId ON edfi.Calendar(SchoolId) INCLUDE (Id) + CREATE INDEX IX_Calendar_SchoolId ON [edfi].[Calendar](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_CalendarDate_SchoolId' AND object_id = OBJECT_ID('edfi.CalendarDate')) BEGIN - CREATE INDEX IX_CalendarDate_SchoolId ON edfi.CalendarDate(SchoolId) INCLUDE (Id) + CREATE INDEX IX_CalendarDate_SchoolId ON [edfi].[CalendarDate](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_ChartOfAccount_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.ChartOfAccount')) BEGIN - CREATE INDEX IX_ChartOfAccount_EducationOrganizationId ON edfi.ChartOfAccount(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_ChartOfAccount_EducationOrganizationId ON [edfi].[ChartOfAccount](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_ClassPeriod_SchoolId' AND object_id = OBJECT_ID('edfi.ClassPeriod')) BEGIN - CREATE INDEX IX_ClassPeriod_SchoolId ON edfi.ClassPeriod(SchoolId) INCLUDE (Id) + CREATE INDEX IX_ClassPeriod_SchoolId ON [edfi].[ClassPeriod](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Cohort_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.Cohort')) BEGIN - CREATE INDEX IX_Cohort_EducationOrganizationId ON edfi.Cohort(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_Cohort_EducationOrganizationId ON [edfi].[Cohort](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_CommunityProviderLicense_CommunityProviderId' AND object_id = OBJECT_ID('edfi.CommunityProviderLicense')) BEGIN - CREATE INDEX IX_CommunityProviderLicense_CommunityProviderId ON edfi.CommunityProviderLicense(CommunityProviderId) INCLUDE (Id) + CREATE INDEX IX_CommunityProviderLicense_CommunityProviderId ON [edfi].[CommunityProviderLicense](CommunityProviderId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_CompetencyObjective_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.CompetencyObjective')) BEGIN - CREATE INDEX IX_CompetencyObjective_EducationOrganizationId ON edfi.CompetencyObjective(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_CompetencyObjective_EducationOrganizationId ON [edfi].[CompetencyObjective](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Course_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.Course')) BEGIN - CREATE INDEX IX_Course_EducationOrganizationId ON edfi.Course(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_Course_EducationOrganizationId ON [edfi].[Course](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_CourseOffering_SchoolId' AND object_id = OBJECT_ID('edfi.CourseOffering')) BEGIN - CREATE INDEX IX_CourseOffering_SchoolId ON edfi.CourseOffering(SchoolId) INCLUDE (Id) + CREATE INDEX IX_CourseOffering_SchoolId ON [edfi].[CourseOffering](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_CourseOffering_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.CourseOffering')) BEGIN - CREATE INDEX IX_CourseOffering_EducationOrganizationId ON edfi.CourseOffering(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_CourseOffering_EducationOrganizationId ON [edfi].[CourseOffering](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_CourseTranscript_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.CourseTranscript')) BEGIN - CREATE INDEX IX_CourseTranscript_EducationOrganizationId ON edfi.CourseTranscript(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_CourseTranscript_EducationOrganizationId ON [edfi].[CourseTranscript](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_DisciplineIncident_SchoolId' AND object_id = OBJECT_ID('edfi.DisciplineIncident')) BEGIN - CREATE INDEX IX_DisciplineIncident_SchoolId ON edfi.DisciplineIncident(SchoolId) INCLUDE (Id) + CREATE INDEX IX_DisciplineIncident_SchoolId ON [edfi].[DisciplineIncident](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_EducationOrganization_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.EducationOrganization')) BEGIN - CREATE INDEX IX_EducationOrganization_EducationOrganizationId ON edfi.EducationOrganization(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_EducationOrganization_EducationOrganizationId ON [edfi].[EducationOrganization](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_EducationOrganizationInterventionPrescriptionAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.EducationOrganizationInterventionPrescriptionAssociation')) BEGIN - CREATE INDEX IX_EducationOrganizationInterventionPrescriptionAssociation_EducationOrganizationId ON edfi.EducationOrganizationInterventionPrescriptionAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_EducationOrganizationInterventionPrescriptionAssociation_EducationOrganizationId ON [edfi].[EducationOrganizationInterventionPrescriptionAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_EducationOrganizationNetworkAssociation_EducationOrganizationNetworkId' AND object_id = OBJECT_ID('edfi.EducationOrganizationNetworkAssociation')) BEGIN - CREATE INDEX IX_EducationOrganizationNetworkAssociation_EducationOrganizationNetworkId ON edfi.EducationOrganizationNetworkAssociation(EducationOrganizationNetworkId) INCLUDE (Id) + CREATE INDEX IX_EducationOrganizationNetworkAssociation_EducationOrganizationNetworkId ON [edfi].[EducationOrganizationNetworkAssociation](EducationOrganizationNetworkId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_EducationOrganizationPeerAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.EducationOrganizationPeerAssociation')) BEGIN - CREATE INDEX IX_EducationOrganizationPeerAssociation_EducationOrganizationId ON edfi.EducationOrganizationPeerAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_EducationOrganizationPeerAssociation_EducationOrganizationId ON [edfi].[EducationOrganizationPeerAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_FeederSchoolAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.FeederSchoolAssociation')) BEGIN - CREATE INDEX IX_FeederSchoolAssociation_SchoolId ON edfi.FeederSchoolAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_FeederSchoolAssociation_SchoolId ON [edfi].[FeederSchoolAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_GeneralStudentProgramAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.GeneralStudentProgramAssociation')) BEGIN - CREATE INDEX IX_GeneralStudentProgramAssociation_EducationOrganizationId ON edfi.GeneralStudentProgramAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_GeneralStudentProgramAssociation_EducationOrganizationId ON [edfi].[GeneralStudentProgramAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Grade_SchoolId' AND object_id = OBJECT_ID('edfi.Grade')) BEGIN - CREATE INDEX IX_Grade_SchoolId ON edfi.Grade(SchoolId) INCLUDE (Id) + CREATE INDEX IX_Grade_SchoolId ON [edfi].[Grade](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_GradebookEntry_SchoolId' AND object_id = OBJECT_ID('edfi.GradebookEntry')) BEGIN - CREATE INDEX IX_GradebookEntry_SchoolId ON edfi.GradebookEntry(SchoolId) INCLUDE (Id) + CREATE INDEX IX_GradebookEntry_SchoolId ON [edfi].[GradebookEntry](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_GradingPeriod_SchoolId' AND object_id = OBJECT_ID('edfi.GradingPeriod')) BEGIN - CREATE INDEX IX_GradingPeriod_SchoolId ON edfi.GradingPeriod(SchoolId) INCLUDE (Id) + CREATE INDEX IX_GradingPeriod_SchoolId ON [edfi].[GradingPeriod](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_GraduationPlan_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.GraduationPlan')) BEGIN - CREATE INDEX IX_GraduationPlan_EducationOrganizationId ON edfi.GraduationPlan(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_GraduationPlan_EducationOrganizationId ON [edfi].[GraduationPlan](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Intervention_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.Intervention')) BEGIN - CREATE INDEX IX_Intervention_EducationOrganizationId ON edfi.Intervention(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_Intervention_EducationOrganizationId ON [edfi].[Intervention](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_InterventionPrescription_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.InterventionPrescription')) BEGIN - CREATE INDEX IX_InterventionPrescription_EducationOrganizationId ON edfi.InterventionPrescription(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_InterventionPrescription_EducationOrganizationId ON [edfi].[InterventionPrescription](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_InterventionStudy_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.InterventionStudy')) BEGIN - CREATE INDEX IX_InterventionStudy_EducationOrganizationId ON edfi.InterventionStudy(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_InterventionStudy_EducationOrganizationId ON [edfi].[InterventionStudy](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_LocalAccount_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.LocalAccount')) BEGIN - CREATE INDEX IX_LocalAccount_EducationOrganizationId ON edfi.LocalAccount(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_LocalAccount_EducationOrganizationId ON [edfi].[LocalAccount](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_LocalActual_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.LocalActual')) BEGIN - CREATE INDEX IX_LocalActual_EducationOrganizationId ON edfi.LocalActual(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_LocalActual_EducationOrganizationId ON [edfi].[LocalActual](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_LocalBudget_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.LocalBudget')) BEGIN - CREATE INDEX IX_LocalBudget_EducationOrganizationId ON edfi.LocalBudget(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_LocalBudget_EducationOrganizationId ON [edfi].[LocalBudget](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_LocalContractedStaff_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.LocalContractedStaff')) BEGIN - CREATE INDEX IX_LocalContractedStaff_EducationOrganizationId ON edfi.LocalContractedStaff(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_LocalContractedStaff_EducationOrganizationId ON [edfi].[LocalContractedStaff](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_LocalEncumbrance_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.LocalEncumbrance')) BEGIN - CREATE INDEX IX_LocalEncumbrance_EducationOrganizationId ON edfi.LocalEncumbrance(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_LocalEncumbrance_EducationOrganizationId ON [edfi].[LocalEncumbrance](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_LocalPayroll_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.LocalPayroll')) BEGIN - CREATE INDEX IX_LocalPayroll_EducationOrganizationId ON edfi.LocalPayroll(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_LocalPayroll_EducationOrganizationId ON [edfi].[LocalPayroll](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Location_SchoolId' AND object_id = OBJECT_ID('edfi.Location')) BEGIN - CREATE INDEX IX_Location_SchoolId ON edfi.Location(SchoolId) INCLUDE (Id) + CREATE INDEX IX_Location_SchoolId ON [edfi].[Location](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_OpenStaffPosition_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.OpenStaffPosition')) BEGIN - CREATE INDEX IX_OpenStaffPosition_EducationOrganizationId ON edfi.OpenStaffPosition(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_OpenStaffPosition_EducationOrganizationId ON [edfi].[OpenStaffPosition](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_PostSecondaryEvent_PostSecondaryInstitutionId' AND object_id = OBJECT_ID('edfi.PostSecondaryEvent')) BEGIN - CREATE INDEX IX_PostSecondaryEvent_PostSecondaryInstitutionId ON edfi.PostSecondaryEvent(PostSecondaryInstitutionId) INCLUDE (Id) + CREATE INDEX IX_PostSecondaryEvent_PostSecondaryInstitutionId ON [edfi].[PostSecondaryEvent](PostSecondaryInstitutionId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Program_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.Program')) BEGIN - CREATE INDEX IX_Program_EducationOrganizationId ON edfi.Program(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_Program_EducationOrganizationId ON [edfi].[Program](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_ReportCard_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.ReportCard')) BEGIN - CREATE INDEX IX_ReportCard_EducationOrganizationId ON edfi.ReportCard(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_ReportCard_EducationOrganizationId ON [edfi].[ReportCard](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_RestraintEvent_SchoolId' AND object_id = OBJECT_ID('edfi.RestraintEvent')) BEGIN - CREATE INDEX IX_RestraintEvent_SchoolId ON edfi.RestraintEvent(SchoolId) INCLUDE (Id) + CREATE INDEX IX_RestraintEvent_SchoolId ON [edfi].[RestraintEvent](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Section_SchoolId' AND object_id = OBJECT_ID('edfi.Section')) BEGIN - CREATE INDEX IX_Section_SchoolId ON edfi.Section(SchoolId) INCLUDE (Id) + CREATE INDEX IX_Section_SchoolId ON [edfi].[Section](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SectionAttendanceTakenEvent_SchoolId' AND object_id = OBJECT_ID('edfi.SectionAttendanceTakenEvent')) BEGIN - CREATE INDEX IX_SectionAttendanceTakenEvent_SchoolId ON edfi.SectionAttendanceTakenEvent(SchoolId) INCLUDE (Id) + CREATE INDEX IX_SectionAttendanceTakenEvent_SchoolId ON [edfi].[SectionAttendanceTakenEvent](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Session_SchoolId' AND object_id = OBJECT_ID('edfi.Session')) BEGIN - CREATE INDEX IX_Session_SchoolId ON edfi.Session(SchoolId) INCLUDE (Id) + CREATE INDEX IX_Session_SchoolId ON [edfi].[Session](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffCohortAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StaffCohortAssociation')) BEGIN - CREATE INDEX IX_StaffCohortAssociation_EducationOrganizationId ON edfi.StaffCohortAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StaffCohortAssociation_EducationOrganizationId ON [edfi].[StaffCohortAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffDisciplineIncidentAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.StaffDisciplineIncidentAssociation')) BEGIN - CREATE INDEX IX_StaffDisciplineIncidentAssociation_SchoolId ON edfi.StaffDisciplineIncidentAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StaffDisciplineIncidentAssociation_SchoolId ON [edfi].[StaffDisciplineIncidentAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffEducationOrganizationAssignmentAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StaffEducationOrganizationAssignmentAssociation')) BEGIN - CREATE INDEX IX_StaffEducationOrganizationAssignmentAssociation_EducationOrganizationId ON edfi.StaffEducationOrganizationAssignmentAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StaffEducationOrganizationAssignmentAssociation_EducationOrganizationId ON [edfi].[StaffEducationOrganizationAssignmentAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffEducationOrganizationContactAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StaffEducationOrganizationContactAssociation')) BEGIN - CREATE INDEX IX_StaffEducationOrganizationContactAssociation_EducationOrganizationId ON edfi.StaffEducationOrganizationContactAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StaffEducationOrganizationContactAssociation_EducationOrganizationId ON [edfi].[StaffEducationOrganizationContactAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffEducationOrganizationEmploymentAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StaffEducationOrganizationEmploymentAssociation')) BEGIN - CREATE INDEX IX_StaffEducationOrganizationEmploymentAssociation_EducationOrganizationId ON edfi.StaffEducationOrganizationEmploymentAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StaffEducationOrganizationEmploymentAssociation_EducationOrganizationId ON [edfi].[StaffEducationOrganizationEmploymentAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffSchoolAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.StaffSchoolAssociation')) BEGIN - CREATE INDEX IX_StaffSchoolAssociation_SchoolId ON edfi.StaffSchoolAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StaffSchoolAssociation_SchoolId ON [edfi].[StaffSchoolAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffSectionAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.StaffSectionAssociation')) BEGIN - CREATE INDEX IX_StaffSectionAssociation_SchoolId ON edfi.StaffSectionAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StaffSectionAssociation_SchoolId ON [edfi].[StaffSectionAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentAcademicRecord_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StudentAcademicRecord')) BEGIN - CREATE INDEX IX_StudentAcademicRecord_EducationOrganizationId ON edfi.StudentAcademicRecord(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StudentAcademicRecord_EducationOrganizationId ON [edfi].[StudentAcademicRecord](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentAssessmentEducationOrganizationAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StudentAssessmentEducationOrganizationAssociation')) BEGIN - CREATE INDEX IX_StudentAssessmentEducationOrganizationAssociation_EducationOrganizationId ON edfi.StudentAssessmentEducationOrganizationAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StudentAssessmentEducationOrganizationAssociation_EducationOrganizationId ON [edfi].[StudentAssessmentEducationOrganizationAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentCohortAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StudentCohortAssociation')) BEGIN - CREATE INDEX IX_StudentCohortAssociation_EducationOrganizationId ON edfi.StudentCohortAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StudentCohortAssociation_EducationOrganizationId ON [edfi].[StudentCohortAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentDisciplineIncidentAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.StudentDisciplineIncidentAssociation')) BEGIN - CREATE INDEX IX_StudentDisciplineIncidentAssociation_SchoolId ON edfi.StudentDisciplineIncidentAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StudentDisciplineIncidentAssociation_SchoolId ON [edfi].[StudentDisciplineIncidentAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentDisciplineIncidentBehaviorAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.StudentDisciplineIncidentBehaviorAssociation')) BEGIN - CREATE INDEX IX_StudentDisciplineIncidentBehaviorAssociation_SchoolId ON edfi.StudentDisciplineIncidentBehaviorAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StudentDisciplineIncidentBehaviorAssociation_SchoolId ON [edfi].[StudentDisciplineIncidentBehaviorAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentDisciplineIncidentNonOffenderAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.StudentDisciplineIncidentNonOffenderAssociation')) BEGIN - CREATE INDEX IX_StudentDisciplineIncidentNonOffenderAssociation_SchoolId ON edfi.StudentDisciplineIncidentNonOffenderAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StudentDisciplineIncidentNonOffenderAssociation_SchoolId ON [edfi].[StudentDisciplineIncidentNonOffenderAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentEducationOrganizationAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StudentEducationOrganizationAssociation')) BEGIN - CREATE INDEX IX_StudentEducationOrganizationAssociation_EducationOrganizationId ON edfi.StudentEducationOrganizationAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StudentEducationOrganizationAssociation_EducationOrganizationId ON [edfi].[StudentEducationOrganizationAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentEducationOrganizationResponsibilityAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StudentEducationOrganizationResponsibilityAssociation')) BEGIN - CREATE INDEX IX_StudentEducationOrganizationResponsibilityAssociation_EducationOrganizationId ON edfi.StudentEducationOrganizationResponsibilityAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StudentEducationOrganizationResponsibilityAssociation_EducationOrganizationId ON [edfi].[StudentEducationOrganizationResponsibilityAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentInterventionAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StudentInterventionAssociation')) BEGIN - CREATE INDEX IX_StudentInterventionAssociation_EducationOrganizationId ON edfi.StudentInterventionAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StudentInterventionAssociation_EducationOrganizationId ON [edfi].[StudentInterventionAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentInterventionAttendanceEvent_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StudentInterventionAttendanceEvent')) BEGIN - CREATE INDEX IX_StudentInterventionAttendanceEvent_EducationOrganizationId ON edfi.StudentInterventionAttendanceEvent(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StudentInterventionAttendanceEvent_EducationOrganizationId ON [edfi].[StudentInterventionAttendanceEvent](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentProgramAttendanceEvent_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StudentProgramAttendanceEvent')) BEGIN - CREATE INDEX IX_StudentProgramAttendanceEvent_EducationOrganizationId ON edfi.StudentProgramAttendanceEvent(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StudentProgramAttendanceEvent_EducationOrganizationId ON [edfi].[StudentProgramAttendanceEvent](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentSchoolAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.StudentSchoolAssociation')) BEGIN - CREATE INDEX IX_StudentSchoolAssociation_SchoolId ON edfi.StudentSchoolAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StudentSchoolAssociation_SchoolId ON [edfi].[StudentSchoolAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentSchoolAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.StudentSchoolAssociation')) BEGIN - CREATE INDEX IX_StudentSchoolAssociation_EducationOrganizationId ON edfi.StudentSchoolAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_StudentSchoolAssociation_EducationOrganizationId ON [edfi].[StudentSchoolAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentSchoolAttendanceEvent_SchoolId' AND object_id = OBJECT_ID('edfi.StudentSchoolAttendanceEvent')) BEGIN - CREATE INDEX IX_StudentSchoolAttendanceEvent_SchoolId ON edfi.StudentSchoolAttendanceEvent(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StudentSchoolAttendanceEvent_SchoolId ON [edfi].[StudentSchoolAttendanceEvent](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentSectionAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.StudentSectionAssociation')) BEGIN - CREATE INDEX IX_StudentSectionAssociation_SchoolId ON edfi.StudentSectionAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StudentSectionAssociation_SchoolId ON [edfi].[StudentSectionAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentSectionAttendanceEvent_SchoolId' AND object_id = OBJECT_ID('edfi.StudentSectionAttendanceEvent')) BEGIN - CREATE INDEX IX_StudentSectionAttendanceEvent_SchoolId ON edfi.StudentSectionAttendanceEvent(SchoolId) INCLUDE (Id) + CREATE INDEX IX_StudentSectionAttendanceEvent_SchoolId ON [edfi].[StudentSectionAttendanceEvent](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Survey_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.Survey')) BEGIN - CREATE INDEX IX_Survey_EducationOrganizationId ON edfi.Survey(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_Survey_EducationOrganizationId ON [edfi].[Survey](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Survey_SchoolId' AND object_id = OBJECT_ID('edfi.Survey')) BEGIN - CREATE INDEX IX_Survey_SchoolId ON edfi.Survey(SchoolId) INCLUDE (Id) + CREATE INDEX IX_Survey_SchoolId ON [edfi].[Survey](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveyCourseAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.SurveyCourseAssociation')) BEGIN - CREATE INDEX IX_SurveyCourseAssociation_EducationOrganizationId ON edfi.SurveyCourseAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_SurveyCourseAssociation_EducationOrganizationId ON [edfi].[SurveyCourseAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveyProgramAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.SurveyProgramAssociation')) BEGIN - CREATE INDEX IX_SurveyProgramAssociation_EducationOrganizationId ON edfi.SurveyProgramAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_SurveyProgramAssociation_EducationOrganizationId ON [edfi].[SurveyProgramAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveyResponseEducationOrganizationTargetAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.SurveyResponseEducationOrganizationTargetAssociation')) BEGIN - CREATE INDEX IX_SurveyResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON edfi.SurveyResponseEducationOrganizationTargetAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_SurveyResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON [edfi].[SurveyResponseEducationOrganizationTargetAssociation](EducationOrganizationId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveySectionAssociation_SchoolId' AND object_id = OBJECT_ID('edfi.SurveySectionAssociation')) BEGIN - CREATE INDEX IX_SurveySectionAssociation_SchoolId ON edfi.SurveySectionAssociation(SchoolId) INCLUDE (Id) + CREATE INDEX IX_SurveySectionAssociation_SchoolId ON [edfi].[SurveySectionAssociation](SchoolId) INCLUDE (Id) END; IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveySectionResponseEducationOrganizationTargetAssociation_EducationOrganizationId' AND object_id = OBJECT_ID('edfi.SurveySectionResponseEducationOrganizationTargetAssociation')) BEGIN - CREATE INDEX IX_SurveySectionResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON edfi.SurveySectionResponseEducationOrganizationTargetAssociation(EducationOrganizationId) INCLUDE (Id) + CREATE INDEX IX_SurveySectionResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation](EducationOrganizationId) INCLUDE (Id) END; diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1460-AggregateIdColumns.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1460-AggregateIdColumns.sql new file mode 100644 index 0000000000..6d70958756 --- /dev/null +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1460-AggregateIdColumns.sql @@ -0,0 +1,445 @@ +-- SPDX-License-Identifier: Apache-2.0 +-- Licensed to the Ed-Fi Alliance under one or more agreements. +-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +-- See the LICENSE and NOTICES files in the project root for more information. + +CREATE SEQUENCE [edfi].[AcademicWeek_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[AcademicWeek] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[AcademicWeek_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_AcademicWeek_AggregateId] ON [edfi].[AcademicWeek] (AggregateId); + +CREATE SEQUENCE [edfi].[AccountabilityRating_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[AccountabilityRating] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[AccountabilityRating_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_AccountabilityRating_AggregateId] ON [edfi].[AccountabilityRating] (AggregateId); + +CREATE SEQUENCE [edfi].[Assessment_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Assessment] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Assessment_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Assessment_AggregateId] ON [edfi].[Assessment] (AggregateId); + +CREATE SEQUENCE [edfi].[AssessmentItem_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[AssessmentItem] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[AssessmentItem_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_AssessmentItem_AggregateId] ON [edfi].[AssessmentItem] (AggregateId); + +CREATE SEQUENCE [edfi].[AssessmentScoreRangeLearningStandard_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[AssessmentScoreRangeLearningStandard] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[AssessmentScoreRangeLearningStandard_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_AssessmentScoreRangeLearningStandard_AggregateId] ON [edfi].[AssessmentScoreRangeLearningStandard] (AggregateId); + +CREATE SEQUENCE [edfi].[BalanceSheetDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[BalanceSheetDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[BalanceSheetDimension_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_BalanceSheetDimension_AggregateId] ON [edfi].[BalanceSheetDimension] (AggregateId); + +CREATE SEQUENCE [edfi].[BellSchedule_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[BellSchedule] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[BellSchedule_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_BellSchedule_AggregateId] ON [edfi].[BellSchedule] (AggregateId); + +CREATE SEQUENCE [edfi].[Calendar_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Calendar] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Calendar_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Calendar_AggregateId] ON [edfi].[Calendar] (AggregateId); + +CREATE SEQUENCE [edfi].[CalendarDate_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[CalendarDate] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CalendarDate_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_CalendarDate_AggregateId] ON [edfi].[CalendarDate] (AggregateId); + +CREATE SEQUENCE [edfi].[ChartOfAccount_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[ChartOfAccount] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ChartOfAccount_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_ChartOfAccount_AggregateId] ON [edfi].[ChartOfAccount] (AggregateId); + +CREATE SEQUENCE [edfi].[ClassPeriod_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[ClassPeriod] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ClassPeriod_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_ClassPeriod_AggregateId] ON [edfi].[ClassPeriod] (AggregateId); + +CREATE SEQUENCE [edfi].[Cohort_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Cohort] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Cohort_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Cohort_AggregateId] ON [edfi].[Cohort] (AggregateId); + +CREATE SEQUENCE [edfi].[CommunityProviderLicense_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[CommunityProviderLicense] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CommunityProviderLicense_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_CommunityProviderLicense_AggregateId] ON [edfi].[CommunityProviderLicense] (AggregateId); + +CREATE SEQUENCE [edfi].[CompetencyObjective_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[CompetencyObjective] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CompetencyObjective_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_CompetencyObjective_AggregateId] ON [edfi].[CompetencyObjective] (AggregateId); + +CREATE SEQUENCE [edfi].[Course_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Course] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Course_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Course_AggregateId] ON [edfi].[Course] (AggregateId); + +CREATE SEQUENCE [edfi].[CourseOffering_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[CourseOffering] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CourseOffering_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_CourseOffering_AggregateId] ON [edfi].[CourseOffering] (AggregateId); + +CREATE SEQUENCE [edfi].[CourseTranscript_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[CourseTranscript] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CourseTranscript_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_CourseTranscript_AggregateId] ON [edfi].[CourseTranscript] (AggregateId); + +CREATE SEQUENCE [edfi].[Credential_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Credential] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Credential_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Credential_AggregateId] ON [edfi].[Credential] (AggregateId); + +CREATE SEQUENCE [edfi].[Descriptor_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Descriptor] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Descriptor_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Descriptor_AggregateId] ON [edfi].[Descriptor] (AggregateId); + +CREATE SEQUENCE [edfi].[DescriptorMapping_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[DescriptorMapping] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[DescriptorMapping_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_DescriptorMapping_AggregateId] ON [edfi].[DescriptorMapping] (AggregateId); + +CREATE SEQUENCE [edfi].[DisciplineAction_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[DisciplineAction] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[DisciplineAction_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_DisciplineAction_AggregateId] ON [edfi].[DisciplineAction] (AggregateId); + +CREATE SEQUENCE [edfi].[DisciplineIncident_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[DisciplineIncident] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[DisciplineIncident_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_DisciplineIncident_AggregateId] ON [edfi].[DisciplineIncident] (AggregateId); + +CREATE SEQUENCE [edfi].[EducationContent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[EducationContent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationContent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_EducationContent_AggregateId] ON [edfi].[EducationContent] (AggregateId); + +CREATE SEQUENCE [edfi].[EducationOrganization_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[EducationOrganization] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationOrganization_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_EducationOrganization_AggregateId] ON [edfi].[EducationOrganization] (AggregateId); + +CREATE SEQUENCE [edfi].[EducationOrganizationInterventionPrescriptionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[EducationOrganizationInterventionPrescriptionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationOrganizationInterventionPrescriptionAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_EducationOrganizationInterventionPrescriptionAssociation_AggregateId] ON [edfi].[EducationOrganizationInterventionPrescriptionAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[EducationOrganizationNetworkAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[EducationOrganizationNetworkAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationOrganizationNetworkAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_EducationOrganizationNetworkAssociation_AggregateId] ON [edfi].[EducationOrganizationNetworkAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[EducationOrganizationPeerAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[EducationOrganizationPeerAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationOrganizationPeerAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_EducationOrganizationPeerAssociation_AggregateId] ON [edfi].[EducationOrganizationPeerAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[FeederSchoolAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[FeederSchoolAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[FeederSchoolAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_FeederSchoolAssociation_AggregateId] ON [edfi].[FeederSchoolAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[FunctionDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[FunctionDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[FunctionDimension_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_FunctionDimension_AggregateId] ON [edfi].[FunctionDimension] (AggregateId); + +CREATE SEQUENCE [edfi].[FundDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[FundDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[FundDimension_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_FundDimension_AggregateId] ON [edfi].[FundDimension] (AggregateId); + +CREATE SEQUENCE [edfi].[GeneralStudentProgramAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[GeneralStudentProgramAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[GeneralStudentProgramAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_GeneralStudentProgramAssociation_AggregateId] ON [edfi].[GeneralStudentProgramAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[Grade_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Grade] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Grade_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Grade_AggregateId] ON [edfi].[Grade] (AggregateId); + +CREATE SEQUENCE [edfi].[GradebookEntry_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[GradebookEntry] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[GradebookEntry_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_GradebookEntry_AggregateId] ON [edfi].[GradebookEntry] (AggregateId); + +CREATE SEQUENCE [edfi].[GradingPeriod_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[GradingPeriod] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[GradingPeriod_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_GradingPeriod_AggregateId] ON [edfi].[GradingPeriod] (AggregateId); + +CREATE SEQUENCE [edfi].[GraduationPlan_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[GraduationPlan] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[GraduationPlan_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_GraduationPlan_AggregateId] ON [edfi].[GraduationPlan] (AggregateId); + +CREATE SEQUENCE [edfi].[Intervention_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Intervention] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Intervention_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Intervention_AggregateId] ON [edfi].[Intervention] (AggregateId); + +CREATE SEQUENCE [edfi].[InterventionPrescription_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[InterventionPrescription] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[InterventionPrescription_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_InterventionPrescription_AggregateId] ON [edfi].[InterventionPrescription] (AggregateId); + +CREATE SEQUENCE [edfi].[InterventionStudy_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[InterventionStudy] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[InterventionStudy_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_InterventionStudy_AggregateId] ON [edfi].[InterventionStudy] (AggregateId); + +CREATE SEQUENCE [edfi].[LearningObjective_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[LearningObjective] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LearningObjective_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_LearningObjective_AggregateId] ON [edfi].[LearningObjective] (AggregateId); + +CREATE SEQUENCE [edfi].[LearningStandard_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[LearningStandard] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LearningStandard_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_LearningStandard_AggregateId] ON [edfi].[LearningStandard] (AggregateId); + +CREATE SEQUENCE [edfi].[LearningStandardEquivalenceAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[LearningStandardEquivalenceAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LearningStandardEquivalenceAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_LearningStandardEquivalenceAssociation_AggregateId] ON [edfi].[LearningStandardEquivalenceAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[LocalAccount_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[LocalAccount] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalAccount_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_LocalAccount_AggregateId] ON [edfi].[LocalAccount] (AggregateId); + +CREATE SEQUENCE [edfi].[LocalActual_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[LocalActual] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalActual_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_LocalActual_AggregateId] ON [edfi].[LocalActual] (AggregateId); + +CREATE SEQUENCE [edfi].[LocalBudget_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[LocalBudget] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalBudget_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_LocalBudget_AggregateId] ON [edfi].[LocalBudget] (AggregateId); + +CREATE SEQUENCE [edfi].[LocalContractedStaff_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[LocalContractedStaff] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalContractedStaff_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_LocalContractedStaff_AggregateId] ON [edfi].[LocalContractedStaff] (AggregateId); + +CREATE SEQUENCE [edfi].[LocalEncumbrance_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[LocalEncumbrance] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalEncumbrance_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_LocalEncumbrance_AggregateId] ON [edfi].[LocalEncumbrance] (AggregateId); + +CREATE SEQUENCE [edfi].[LocalPayroll_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[LocalPayroll] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalPayroll_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_LocalPayroll_AggregateId] ON [edfi].[LocalPayroll] (AggregateId); + +CREATE SEQUENCE [edfi].[Location_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Location] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Location_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Location_AggregateId] ON [edfi].[Location] (AggregateId); + +CREATE SEQUENCE [edfi].[ObjectDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[ObjectDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ObjectDimension_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_ObjectDimension_AggregateId] ON [edfi].[ObjectDimension] (AggregateId); + +CREATE SEQUENCE [edfi].[ObjectiveAssessment_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[ObjectiveAssessment] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ObjectiveAssessment_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_ObjectiveAssessment_AggregateId] ON [edfi].[ObjectiveAssessment] (AggregateId); + +CREATE SEQUENCE [edfi].[OpenStaffPosition_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[OpenStaffPosition] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[OpenStaffPosition_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_OpenStaffPosition_AggregateId] ON [edfi].[OpenStaffPosition] (AggregateId); + +CREATE SEQUENCE [edfi].[OperationalUnitDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[OperationalUnitDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[OperationalUnitDimension_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_OperationalUnitDimension_AggregateId] ON [edfi].[OperationalUnitDimension] (AggregateId); + +CREATE SEQUENCE [edfi].[Parent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Parent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Parent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Parent_AggregateId] ON [edfi].[Parent] (AggregateId); + +CREATE SEQUENCE [edfi].[Person_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Person] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Person_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Person_AggregateId] ON [edfi].[Person] (AggregateId); + +CREATE SEQUENCE [edfi].[PostSecondaryEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[PostSecondaryEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[PostSecondaryEvent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_PostSecondaryEvent_AggregateId] ON [edfi].[PostSecondaryEvent] (AggregateId); + +CREATE SEQUENCE [edfi].[Program_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Program] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Program_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Program_AggregateId] ON [edfi].[Program] (AggregateId); + +CREATE SEQUENCE [edfi].[ProgramDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[ProgramDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ProgramDimension_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_ProgramDimension_AggregateId] ON [edfi].[ProgramDimension] (AggregateId); + +CREATE SEQUENCE [edfi].[ProjectDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[ProjectDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ProjectDimension_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_ProjectDimension_AggregateId] ON [edfi].[ProjectDimension] (AggregateId); + +CREATE SEQUENCE [edfi].[ReportCard_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[ReportCard] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ReportCard_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_ReportCard_AggregateId] ON [edfi].[ReportCard] (AggregateId); + +CREATE SEQUENCE [edfi].[RestraintEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[RestraintEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[RestraintEvent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_RestraintEvent_AggregateId] ON [edfi].[RestraintEvent] (AggregateId); + +CREATE SEQUENCE [edfi].[SchoolYearType_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SchoolYearType] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SchoolYearType_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SchoolYearType_AggregateId] ON [edfi].[SchoolYearType] (AggregateId); + +CREATE SEQUENCE [edfi].[Section_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Section] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Section_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Section_AggregateId] ON [edfi].[Section] (AggregateId); + +CREATE SEQUENCE [edfi].[SectionAttendanceTakenEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SectionAttendanceTakenEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SectionAttendanceTakenEvent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SectionAttendanceTakenEvent_AggregateId] ON [edfi].[SectionAttendanceTakenEvent] (AggregateId); + +CREATE SEQUENCE [edfi].[Session_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Session] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Session_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Session_AggregateId] ON [edfi].[Session] (AggregateId); + +CREATE SEQUENCE [edfi].[SourceDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SourceDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SourceDimension_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SourceDimension_AggregateId] ON [edfi].[SourceDimension] (AggregateId); + +CREATE SEQUENCE [edfi].[Staff_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Staff] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Staff_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Staff_AggregateId] ON [edfi].[Staff] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffAbsenceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffAbsenceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffAbsenceEvent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffAbsenceEvent_AggregateId] ON [edfi].[StaffAbsenceEvent] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffCohortAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffCohortAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffCohortAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffCohortAssociation_AggregateId] ON [edfi].[StaffCohortAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffDisciplineIncidentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffDisciplineIncidentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffDisciplineIncidentAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffDisciplineIncidentAssociation_AggregateId] ON [edfi].[StaffDisciplineIncidentAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffEducationOrganizationAssignmentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffEducationOrganizationAssignmentAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffEducationOrganizationAssignmentAssociation_AggregateId] ON [edfi].[StaffEducationOrganizationAssignmentAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffEducationOrganizationContactAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffEducationOrganizationContactAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffEducationOrganizationContactAssociation_AggregateId] ON [edfi].[StaffEducationOrganizationContactAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffEducationOrganizationEmploymentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffEducationOrganizationEmploymentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffEducationOrganizationEmploymentAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffEducationOrganizationEmploymentAssociation_AggregateId] ON [edfi].[StaffEducationOrganizationEmploymentAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffLeave_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffLeave] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffLeave_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffLeave_AggregateId] ON [edfi].[StaffLeave] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffProgramAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffProgramAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffProgramAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffProgramAssociation_AggregateId] ON [edfi].[StaffProgramAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffSchoolAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffSchoolAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffSchoolAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffSchoolAssociation_AggregateId] ON [edfi].[StaffSchoolAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StaffSectionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StaffSectionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffSectionAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StaffSectionAssociation_AggregateId] ON [edfi].[StaffSectionAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[Student_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Student] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Student_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Student_AggregateId] ON [edfi].[Student] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentAcademicRecord_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentAcademicRecord] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentAcademicRecord_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentAcademicRecord_AggregateId] ON [edfi].[StudentAcademicRecord] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentAssessment_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentAssessment] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentAssessment_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentAssessment_AggregateId] ON [edfi].[StudentAssessment] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentAssessmentEducationOrganizationAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentAssessmentEducationOrganizationAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentAssessmentEducationOrganizationAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentAssessmentEducationOrganizationAssociation_AggregateId] ON [edfi].[StudentAssessmentEducationOrganizationAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentCohortAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentCohortAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentCohortAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentCohortAssociation_AggregateId] ON [edfi].[StudentCohortAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentCompetencyObjective_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentCompetencyObjective] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentCompetencyObjective_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentCompetencyObjective_AggregateId] ON [edfi].[StudentCompetencyObjective] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentDisciplineIncidentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentDisciplineIncidentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentDisciplineIncidentAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentDisciplineIncidentAssociation_AggregateId] ON [edfi].[StudentDisciplineIncidentAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentDisciplineIncidentBehaviorAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentDisciplineIncidentBehaviorAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentDisciplineIncidentBehaviorAssociation_AggregateId] ON [edfi].[StudentDisciplineIncidentBehaviorAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentDisciplineIncidentNonOffenderAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentDisciplineIncidentNonOffenderAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentDisciplineIncidentNonOffenderAssociation_AggregateId] ON [edfi].[StudentDisciplineIncidentNonOffenderAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentEducationOrganizationAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentEducationOrganizationAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentEducationOrganizationAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentEducationOrganizationAssociation_AggregateId] ON [edfi].[StudentEducationOrganizationAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentEducationOrganizationResponsibilityAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentEducationOrganizationResponsibilityAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentEducationOrganizationResponsibilityAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentEducationOrganizationResponsibilityAssociation_AggregateId] ON [edfi].[StudentEducationOrganizationResponsibilityAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentGradebookEntry_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentGradebookEntry] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentGradebookEntry_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentGradebookEntry_AggregateId] ON [edfi].[StudentGradebookEntry] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentInterventionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentInterventionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentInterventionAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentInterventionAssociation_AggregateId] ON [edfi].[StudentInterventionAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentInterventionAttendanceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentInterventionAttendanceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentInterventionAttendanceEvent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentInterventionAttendanceEvent_AggregateId] ON [edfi].[StudentInterventionAttendanceEvent] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentLearningObjective_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentLearningObjective] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentLearningObjective_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentLearningObjective_AggregateId] ON [edfi].[StudentLearningObjective] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentParentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentParentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentParentAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentParentAssociation_AggregateId] ON [edfi].[StudentParentAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentProgramAttendanceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentProgramAttendanceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentProgramAttendanceEvent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentProgramAttendanceEvent_AggregateId] ON [edfi].[StudentProgramAttendanceEvent] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentSchoolAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentSchoolAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentSchoolAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentSchoolAssociation_AggregateId] ON [edfi].[StudentSchoolAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentSchoolAttendanceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentSchoolAttendanceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentSchoolAttendanceEvent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentSchoolAttendanceEvent_AggregateId] ON [edfi].[StudentSchoolAttendanceEvent] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentSectionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentSectionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentSectionAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentSectionAssociation_AggregateId] ON [edfi].[StudentSectionAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[StudentSectionAttendanceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[StudentSectionAttendanceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentSectionAttendanceEvent_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_StudentSectionAttendanceEvent_AggregateId] ON [edfi].[StudentSectionAttendanceEvent] (AggregateId); + +CREATE SEQUENCE [edfi].[Survey_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[Survey] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Survey_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_Survey_AggregateId] ON [edfi].[Survey] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveyCourseAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveyCourseAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyCourseAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveyCourseAssociation_AggregateId] ON [edfi].[SurveyCourseAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveyProgramAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveyProgramAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyProgramAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveyProgramAssociation_AggregateId] ON [edfi].[SurveyProgramAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveyQuestion_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveyQuestion] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyQuestion_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveyQuestion_AggregateId] ON [edfi].[SurveyQuestion] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveyQuestionResponse_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveyQuestionResponse] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyQuestionResponse_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveyQuestionResponse_AggregateId] ON [edfi].[SurveyQuestionResponse] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveyResponse_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveyResponse] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyResponse_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveyResponse_AggregateId] ON [edfi].[SurveyResponse] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveyResponseEducationOrganizationTargetAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveyResponseEducationOrganizationTargetAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyResponseEducationOrganizationTargetAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveyResponseEducationOrganizationTargetAssociation_AggregateId] ON [edfi].[SurveyResponseEducationOrganizationTargetAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveyResponseStaffTargetAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveyResponseStaffTargetAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyResponseStaffTargetAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveyResponseStaffTargetAssociation_AggregateId] ON [edfi].[SurveyResponseStaffTargetAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveySection_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveySection] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySection_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveySection_AggregateId] ON [edfi].[SurveySection] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveySectionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveySectionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySectionAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveySectionAssociation_AggregateId] ON [edfi].[SurveySectionAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveySectionResponse_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveySectionResponse] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySectionResponse_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveySectionResponse_AggregateId] ON [edfi].[SurveySectionResponse] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveySectionResponseEducationOrganizationTargetAssociation_AggregateId] ON [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] (AggregateId); + +CREATE SEQUENCE [edfi].[SurveySectionResponseStaffTargetAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; +ALTER TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySectionResponseStaffTargetAssociation_AggSeq], AggregateData varbinary(8000); +CREATE INDEX [IX_SurveySectionResponseStaffTargetAssociation_AggregateId] ON [edfi].[SurveySectionResponseStaffTargetAssociation] (AggregateId); + diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1465-UpdateIndex-EdOrgIdsRelationship-AuthPerformance.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1465-UpdateIndex-EdOrgIdsRelationship-AuthPerformance.sql new file mode 100644 index 0000000000..4a3070b958 --- /dev/null +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1465-UpdateIndex-EdOrgIdsRelationship-AuthPerformance.sql @@ -0,0 +1,477 @@ +-- SPDX-License-Identifier: Apache-2.0 +-- Licensed to the Ed-Fi Alliance under one or more agreements. +-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +-- See the LICENSE and NOTICES files in the project root for more information. + + +DROP INDEX IF EXISTS IX_AcademicWeek_SchoolId ON [edfi].[AcademicWeek]; +CREATE INDEX IX_AcademicWeek_SchoolId ON [edfi].[AcademicWeek](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_AccountabilityRating_EducationOrganizationId ON [edfi].[AccountabilityRating]; +CREATE INDEX IX_AccountabilityRating_EducationOrganizationId ON [edfi].[AccountabilityRating](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Assessment_EducationOrganizationId ON [edfi].[Assessment]; +CREATE INDEX IX_Assessment_EducationOrganizationId ON [edfi].[Assessment](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_BellSchedule_SchoolId ON [edfi].[BellSchedule]; +CREATE INDEX IX_BellSchedule_SchoolId ON [edfi].[BellSchedule](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Calendar_SchoolId ON [edfi].[Calendar]; +CREATE INDEX IX_Calendar_SchoolId ON [edfi].[Calendar](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CalendarDate_SchoolId ON [edfi].[CalendarDate]; +CREATE INDEX IX_CalendarDate_SchoolId ON [edfi].[CalendarDate](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_ChartOfAccount_EducationOrganizationId ON [edfi].[ChartOfAccount]; +CREATE INDEX IX_ChartOfAccount_EducationOrganizationId ON [edfi].[ChartOfAccount](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_ClassPeriod_SchoolId ON [edfi].[ClassPeriod]; +CREATE INDEX IX_ClassPeriod_SchoolId ON [edfi].[ClassPeriod](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Cohort_EducationOrganizationId ON [edfi].[Cohort]; +CREATE INDEX IX_Cohort_EducationOrganizationId ON [edfi].[Cohort](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CommunityProviderLicense_CommunityProviderId ON [edfi].[CommunityProviderLicense]; +CREATE INDEX IX_CommunityProviderLicense_CommunityProviderId ON [edfi].[CommunityProviderLicense](CommunityProviderId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CompetencyObjective_EducationOrganizationId ON [edfi].[CompetencyObjective]; +CREATE INDEX IX_CompetencyObjective_EducationOrganizationId ON [edfi].[CompetencyObjective](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Course_EducationOrganizationId ON [edfi].[Course]; +CREATE INDEX IX_Course_EducationOrganizationId ON [edfi].[Course](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CourseOffering_SchoolId ON [edfi].[CourseOffering]; +CREATE INDEX IX_CourseOffering_SchoolId ON [edfi].[CourseOffering](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CourseOffering_EducationOrganizationId ON [edfi].[CourseOffering]; +CREATE INDEX IX_CourseOffering_EducationOrganizationId ON [edfi].[CourseOffering](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CourseTranscript_EducationOrganizationId ON [edfi].[CourseTranscript]; +CREATE INDEX IX_CourseTranscript_EducationOrganizationId ON [edfi].[CourseTranscript](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_CourseTranscript_StudentUSI' AND object_id = OBJECT_ID('edfi.CourseTranscript')) +BEGIN + CREATE INDEX IX_CourseTranscript_StudentUSI ON [edfi].[CourseTranscript](StudentUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_DisciplineAction_StudentUSI' AND object_id = OBJECT_ID('edfi.DisciplineAction')) +BEGIN + CREATE INDEX IX_DisciplineAction_StudentUSI ON [edfi].[DisciplineAction](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_DisciplineIncident_SchoolId ON [edfi].[DisciplineIncident]; +CREATE INDEX IX_DisciplineIncident_SchoolId ON [edfi].[DisciplineIncident](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_DisciplineIncident_StaffUSI' AND object_id = OBJECT_ID('edfi.DisciplineIncident')) +BEGIN + CREATE INDEX IX_DisciplineIncident_StaffUSI ON [edfi].[DisciplineIncident](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_EducationOrganization_EducationOrganizationId ON [edfi].[EducationOrganization]; +CREATE INDEX IX_EducationOrganization_EducationOrganizationId ON [edfi].[EducationOrganization](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_EducationOrganizationInterventionPrescriptionAssociation_EducationOrganizationId ON [edfi].[EducationOrganizationInterventionPrescriptionAssociation]; +CREATE INDEX IX_EducationOrganizationInterventionPrescriptionAssociation_EducationOrganizationId ON [edfi].[EducationOrganizationInterventionPrescriptionAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_EducationOrganizationNetworkAssociation_EducationOrganizationNetworkId ON [edfi].[EducationOrganizationNetworkAssociation]; +CREATE INDEX IX_EducationOrganizationNetworkAssociation_EducationOrganizationNetworkId ON [edfi].[EducationOrganizationNetworkAssociation](EducationOrganizationNetworkId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_EducationOrganizationPeerAssociation_EducationOrganizationId ON [edfi].[EducationOrganizationPeerAssociation]; +CREATE INDEX IX_EducationOrganizationPeerAssociation_EducationOrganizationId ON [edfi].[EducationOrganizationPeerAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_FeederSchoolAssociation_SchoolId ON [edfi].[FeederSchoolAssociation]; +CREATE INDEX IX_FeederSchoolAssociation_SchoolId ON [edfi].[FeederSchoolAssociation](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_GeneralStudentProgramAssociation_EducationOrganizationId ON [edfi].[GeneralStudentProgramAssociation]; +CREATE INDEX IX_GeneralStudentProgramAssociation_EducationOrganizationId ON [edfi].[GeneralStudentProgramAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_GeneralStudentProgramAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.GeneralStudentProgramAssociation')) +BEGIN + CREATE INDEX IX_GeneralStudentProgramAssociation_StudentUSI ON [edfi].[GeneralStudentProgramAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_Grade_SchoolId ON [edfi].[Grade]; +CREATE INDEX IX_Grade_SchoolId ON [edfi].[Grade](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Grade_StudentUSI' AND object_id = OBJECT_ID('edfi.Grade')) +BEGIN + CREATE INDEX IX_Grade_StudentUSI ON [edfi].[Grade](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_GradebookEntry_SchoolId ON [edfi].[GradebookEntry]; +CREATE INDEX IX_GradebookEntry_SchoolId ON [edfi].[GradebookEntry](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_GradingPeriod_SchoolId ON [edfi].[GradingPeriod]; +CREATE INDEX IX_GradingPeriod_SchoolId ON [edfi].[GradingPeriod](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_GraduationPlan_EducationOrganizationId ON [edfi].[GraduationPlan]; +CREATE INDEX IX_GraduationPlan_EducationOrganizationId ON [edfi].[GraduationPlan](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Intervention_EducationOrganizationId ON [edfi].[Intervention]; +CREATE INDEX IX_Intervention_EducationOrganizationId ON [edfi].[Intervention](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_InterventionPrescription_EducationOrganizationId ON [edfi].[InterventionPrescription]; +CREATE INDEX IX_InterventionPrescription_EducationOrganizationId ON [edfi].[InterventionPrescription](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_InterventionStudy_EducationOrganizationId ON [edfi].[InterventionStudy]; +CREATE INDEX IX_InterventionStudy_EducationOrganizationId ON [edfi].[InterventionStudy](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalAccount_EducationOrganizationId ON [edfi].[LocalAccount]; +CREATE INDEX IX_LocalAccount_EducationOrganizationId ON [edfi].[LocalAccount](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalActual_EducationOrganizationId ON [edfi].[LocalActual]; +CREATE INDEX IX_LocalActual_EducationOrganizationId ON [edfi].[LocalActual](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalBudget_EducationOrganizationId ON [edfi].[LocalBudget]; +CREATE INDEX IX_LocalBudget_EducationOrganizationId ON [edfi].[LocalBudget](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalContractedStaff_EducationOrganizationId ON [edfi].[LocalContractedStaff]; +CREATE INDEX IX_LocalContractedStaff_EducationOrganizationId ON [edfi].[LocalContractedStaff](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_LocalContractedStaff_StaffUSI' AND object_id = OBJECT_ID('edfi.LocalContractedStaff')) +BEGIN + CREATE INDEX IX_LocalContractedStaff_StaffUSI ON [edfi].[LocalContractedStaff](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_LocalEncumbrance_EducationOrganizationId ON [edfi].[LocalEncumbrance]; +CREATE INDEX IX_LocalEncumbrance_EducationOrganizationId ON [edfi].[LocalEncumbrance](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalPayroll_EducationOrganizationId ON [edfi].[LocalPayroll]; +CREATE INDEX IX_LocalPayroll_EducationOrganizationId ON [edfi].[LocalPayroll](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_LocalPayroll_StaffUSI' AND object_id = OBJECT_ID('edfi.LocalPayroll')) +BEGIN + CREATE INDEX IX_LocalPayroll_StaffUSI ON [edfi].[LocalPayroll](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_Location_SchoolId ON [edfi].[Location]; +CREATE INDEX IX_Location_SchoolId ON [edfi].[Location](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_OpenStaffPosition_EducationOrganizationId ON [edfi].[OpenStaffPosition]; +CREATE INDEX IX_OpenStaffPosition_EducationOrganizationId ON [edfi].[OpenStaffPosition](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Parent_ParentUSI' AND object_id = OBJECT_ID('edfi.Parent')) +BEGIN + CREATE INDEX IX_Parent_ParentUSI ON [edfi].[Parent](ParentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_PostSecondaryEvent_PostSecondaryInstitutionId ON [edfi].[PostSecondaryEvent]; +CREATE INDEX IX_PostSecondaryEvent_PostSecondaryInstitutionId ON [edfi].[PostSecondaryEvent](PostSecondaryInstitutionId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_PostSecondaryEvent_StudentUSI' AND object_id = OBJECT_ID('edfi.PostSecondaryEvent')) +BEGIN + CREATE INDEX IX_PostSecondaryEvent_StudentUSI ON [edfi].[PostSecondaryEvent](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_Program_EducationOrganizationId ON [edfi].[Program]; +CREATE INDEX IX_Program_EducationOrganizationId ON [edfi].[Program](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_ReportCard_EducationOrganizationId ON [edfi].[ReportCard]; +CREATE INDEX IX_ReportCard_EducationOrganizationId ON [edfi].[ReportCard](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_ReportCard_StudentUSI' AND object_id = OBJECT_ID('edfi.ReportCard')) +BEGIN + CREATE INDEX IX_ReportCard_StudentUSI ON [edfi].[ReportCard](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_RestraintEvent_SchoolId ON [edfi].[RestraintEvent]; +CREATE INDEX IX_RestraintEvent_SchoolId ON [edfi].[RestraintEvent](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_RestraintEvent_StudentUSI' AND object_id = OBJECT_ID('edfi.RestraintEvent')) +BEGIN + CREATE INDEX IX_RestraintEvent_StudentUSI ON [edfi].[RestraintEvent](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_Section_SchoolId ON [edfi].[Section]; +CREATE INDEX IX_Section_SchoolId ON [edfi].[Section](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SectionAttendanceTakenEvent_SchoolId ON [edfi].[SectionAttendanceTakenEvent]; +CREATE INDEX IX_SectionAttendanceTakenEvent_SchoolId ON [edfi].[SectionAttendanceTakenEvent](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SectionAttendanceTakenEvent_StaffUSI' AND object_id = OBJECT_ID('edfi.SectionAttendanceTakenEvent')) +BEGIN + CREATE INDEX IX_SectionAttendanceTakenEvent_StaffUSI ON [edfi].[SectionAttendanceTakenEvent](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_Session_SchoolId ON [edfi].[Session]; +CREATE INDEX IX_Session_SchoolId ON [edfi].[Session](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Staff_StaffUSI' AND object_id = OBJECT_ID('edfi.Staff')) +BEGIN + CREATE INDEX IX_Staff_StaffUSI ON [edfi].[Staff](StaffUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffAbsenceEvent_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffAbsenceEvent')) +BEGIN + CREATE INDEX IX_StaffAbsenceEvent_StaffUSI ON [edfi].[StaffAbsenceEvent](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StaffCohortAssociation_EducationOrganizationId ON [edfi].[StaffCohortAssociation]; +CREATE INDEX IX_StaffCohortAssociation_EducationOrganizationId ON [edfi].[StaffCohortAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffCohortAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffCohortAssociation')) +BEGIN + CREATE INDEX IX_StaffCohortAssociation_StaffUSI ON [edfi].[StaffCohortAssociation](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StaffDisciplineIncidentAssociation_SchoolId ON [edfi].[StaffDisciplineIncidentAssociation]; +CREATE INDEX IX_StaffDisciplineIncidentAssociation_SchoolId ON [edfi].[StaffDisciplineIncidentAssociation](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffDisciplineIncidentAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffDisciplineIncidentAssociation')) +BEGIN + CREATE INDEX IX_StaffDisciplineIncidentAssociation_StaffUSI ON [edfi].[StaffDisciplineIncidentAssociation](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StaffEducationOrganizationAssignmentAssociation_EducationOrganizationId ON [edfi].[StaffEducationOrganizationAssignmentAssociation]; +CREATE INDEX IX_StaffEducationOrganizationAssignmentAssociation_EducationOrganizationId ON [edfi].[StaffEducationOrganizationAssignmentAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffEducationOrganizationAssignmentAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffEducationOrganizationAssignmentAssociation')) +BEGIN + CREATE INDEX IX_StaffEducationOrganizationAssignmentAssociation_StaffUSI ON [edfi].[StaffEducationOrganizationAssignmentAssociation](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StaffEducationOrganizationContactAssociation_EducationOrganizationId ON [edfi].[StaffEducationOrganizationContactAssociation]; +CREATE INDEX IX_StaffEducationOrganizationContactAssociation_EducationOrganizationId ON [edfi].[StaffEducationOrganizationContactAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffEducationOrganizationContactAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffEducationOrganizationContactAssociation')) +BEGIN + CREATE INDEX IX_StaffEducationOrganizationContactAssociation_StaffUSI ON [edfi].[StaffEducationOrganizationContactAssociation](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StaffEducationOrganizationEmploymentAssociation_EducationOrganizationId ON [edfi].[StaffEducationOrganizationEmploymentAssociation]; +CREATE INDEX IX_StaffEducationOrganizationEmploymentAssociation_EducationOrganizationId ON [edfi].[StaffEducationOrganizationEmploymentAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffEducationOrganizationEmploymentAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffEducationOrganizationEmploymentAssociation')) +BEGIN + CREATE INDEX IX_StaffEducationOrganizationEmploymentAssociation_StaffUSI ON [edfi].[StaffEducationOrganizationEmploymentAssociation](StaffUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffLeave_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffLeave')) +BEGIN + CREATE INDEX IX_StaffLeave_StaffUSI ON [edfi].[StaffLeave](StaffUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffProgramAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffProgramAssociation')) +BEGIN + CREATE INDEX IX_StaffProgramAssociation_StaffUSI ON [edfi].[StaffProgramAssociation](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StaffSchoolAssociation_SchoolId ON [edfi].[StaffSchoolAssociation]; +CREATE INDEX IX_StaffSchoolAssociation_SchoolId ON [edfi].[StaffSchoolAssociation](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffSchoolAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffSchoolAssociation')) +BEGIN + CREATE INDEX IX_StaffSchoolAssociation_StaffUSI ON [edfi].[StaffSchoolAssociation](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StaffSectionAssociation_SchoolId ON [edfi].[StaffSectionAssociation]; +CREATE INDEX IX_StaffSectionAssociation_SchoolId ON [edfi].[StaffSectionAssociation](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StaffSectionAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.StaffSectionAssociation')) +BEGIN + CREATE INDEX IX_StaffSectionAssociation_StaffUSI ON [edfi].[StaffSectionAssociation](StaffUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_Student_StudentUSI' AND object_id = OBJECT_ID('edfi.Student')) +BEGIN + CREATE INDEX IX_Student_StudentUSI ON [edfi].[Student](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentAcademicRecord_EducationOrganizationId ON [edfi].[StudentAcademicRecord]; +CREATE INDEX IX_StudentAcademicRecord_EducationOrganizationId ON [edfi].[StudentAcademicRecord](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentAcademicRecord_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentAcademicRecord')) +BEGIN + CREATE INDEX IX_StudentAcademicRecord_StudentUSI ON [edfi].[StudentAcademicRecord](StudentUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentAssessment_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentAssessment')) +BEGIN + CREATE INDEX IX_StudentAssessment_StudentUSI ON [edfi].[StudentAssessment](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentAssessmentEducationOrganizationAssociation_EducationOrganizationId ON [edfi].[StudentAssessmentEducationOrganizationAssociation]; +CREATE INDEX IX_StudentAssessmentEducationOrganizationAssociation_EducationOrganizationId ON [edfi].[StudentAssessmentEducationOrganizationAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentAssessmentEducationOrganizationAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentAssessmentEducationOrganizationAssociation')) +BEGIN + CREATE INDEX IX_StudentAssessmentEducationOrganizationAssociation_StudentUSI ON [edfi].[StudentAssessmentEducationOrganizationAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentCohortAssociation_EducationOrganizationId ON [edfi].[StudentCohortAssociation]; +CREATE INDEX IX_StudentCohortAssociation_EducationOrganizationId ON [edfi].[StudentCohortAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentCohortAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentCohortAssociation')) +BEGIN + CREATE INDEX IX_StudentCohortAssociation_StudentUSI ON [edfi].[StudentCohortAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentCompetencyObjective_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentCompetencyObjective')) +BEGIN + CREATE INDEX IX_StudentCompetencyObjective_StudentUSI ON [edfi].[StudentCompetencyObjective](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentDisciplineIncidentAssociation_SchoolId ON [edfi].[StudentDisciplineIncidentAssociation]; +CREATE INDEX IX_StudentDisciplineIncidentAssociation_SchoolId ON [edfi].[StudentDisciplineIncidentAssociation](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentDisciplineIncidentAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentDisciplineIncidentAssociation')) +BEGIN + CREATE INDEX IX_StudentDisciplineIncidentAssociation_StudentUSI ON [edfi].[StudentDisciplineIncidentAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentDisciplineIncidentBehaviorAssociation_SchoolId ON [edfi].[StudentDisciplineIncidentBehaviorAssociation]; +CREATE INDEX IX_StudentDisciplineIncidentBehaviorAssociation_SchoolId ON [edfi].[StudentDisciplineIncidentBehaviorAssociation](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentDisciplineIncidentBehaviorAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentDisciplineIncidentBehaviorAssociation')) +BEGIN + CREATE INDEX IX_StudentDisciplineIncidentBehaviorAssociation_StudentUSI ON [edfi].[StudentDisciplineIncidentBehaviorAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentDisciplineIncidentNonOffenderAssociation_SchoolId ON [edfi].[StudentDisciplineIncidentNonOffenderAssociation]; +CREATE INDEX IX_StudentDisciplineIncidentNonOffenderAssociation_SchoolId ON [edfi].[StudentDisciplineIncidentNonOffenderAssociation](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentDisciplineIncidentNonOffenderAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentDisciplineIncidentNonOffenderAssociation')) +BEGIN + CREATE INDEX IX_StudentDisciplineIncidentNonOffenderAssociation_StudentUSI ON [edfi].[StudentDisciplineIncidentNonOffenderAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentEducationOrganizationAssociation_EducationOrganizationId ON [edfi].[StudentEducationOrganizationAssociation]; +CREATE INDEX IX_StudentEducationOrganizationAssociation_EducationOrganizationId ON [edfi].[StudentEducationOrganizationAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentEducationOrganizationAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentEducationOrganizationAssociation')) +BEGIN + CREATE INDEX IX_StudentEducationOrganizationAssociation_StudentUSI ON [edfi].[StudentEducationOrganizationAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentEducationOrganizationResponsibilityAssociation_EducationOrganizationId ON [edfi].[StudentEducationOrganizationResponsibilityAssociation]; +CREATE INDEX IX_StudentEducationOrganizationResponsibilityAssociation_EducationOrganizationId ON [edfi].[StudentEducationOrganizationResponsibilityAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentEducationOrganizationResponsibilityAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentEducationOrganizationResponsibilityAssociation')) +BEGIN + CREATE INDEX IX_StudentEducationOrganizationResponsibilityAssociation_StudentUSI ON [edfi].[StudentEducationOrganizationResponsibilityAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentGradebookEntry_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentGradebookEntry')) +BEGIN + CREATE INDEX IX_StudentGradebookEntry_StudentUSI ON [edfi].[StudentGradebookEntry](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentInterventionAssociation_EducationOrganizationId ON [edfi].[StudentInterventionAssociation]; +CREATE INDEX IX_StudentInterventionAssociation_EducationOrganizationId ON [edfi].[StudentInterventionAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentInterventionAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentInterventionAssociation')) +BEGIN + CREATE INDEX IX_StudentInterventionAssociation_StudentUSI ON [edfi].[StudentInterventionAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentInterventionAttendanceEvent_EducationOrganizationId ON [edfi].[StudentInterventionAttendanceEvent]; +CREATE INDEX IX_StudentInterventionAttendanceEvent_EducationOrganizationId ON [edfi].[StudentInterventionAttendanceEvent](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentInterventionAttendanceEvent_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentInterventionAttendanceEvent')) +BEGIN + CREATE INDEX IX_StudentInterventionAttendanceEvent_StudentUSI ON [edfi].[StudentInterventionAttendanceEvent](StudentUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentLearningObjective_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentLearningObjective')) +BEGIN + CREATE INDEX IX_StudentLearningObjective_StudentUSI ON [edfi].[StudentLearningObjective](StudentUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentParentAssociation_ParentUSI' AND object_id = OBJECT_ID('edfi.StudentParentAssociation')) +BEGIN + CREATE INDEX IX_StudentParentAssociation_ParentUSI ON [edfi].[StudentParentAssociation](ParentUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentParentAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentParentAssociation')) +BEGIN + CREATE INDEX IX_StudentParentAssociation_StudentUSI ON [edfi].[StudentParentAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentProgramAttendanceEvent_EducationOrganizationId ON [edfi].[StudentProgramAttendanceEvent]; +CREATE INDEX IX_StudentProgramAttendanceEvent_EducationOrganizationId ON [edfi].[StudentProgramAttendanceEvent](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentProgramAttendanceEvent_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentProgramAttendanceEvent')) +BEGIN + CREATE INDEX IX_StudentProgramAttendanceEvent_StudentUSI ON [edfi].[StudentProgramAttendanceEvent](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentSchoolAssociation_SchoolId ON [edfi].[StudentSchoolAssociation]; +CREATE INDEX IX_StudentSchoolAssociation_SchoolId ON [edfi].[StudentSchoolAssociation](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentSchoolAssociation_EducationOrganizationId ON [edfi].[StudentSchoolAssociation]; +CREATE INDEX IX_StudentSchoolAssociation_EducationOrganizationId ON [edfi].[StudentSchoolAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentSchoolAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentSchoolAssociation')) +BEGIN + CREATE INDEX IX_StudentSchoolAssociation_StudentUSI ON [edfi].[StudentSchoolAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentSchoolAttendanceEvent_SchoolId ON [edfi].[StudentSchoolAttendanceEvent]; +CREATE INDEX IX_StudentSchoolAttendanceEvent_SchoolId ON [edfi].[StudentSchoolAttendanceEvent](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentSchoolAttendanceEvent_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentSchoolAttendanceEvent')) +BEGIN + CREATE INDEX IX_StudentSchoolAttendanceEvent_StudentUSI ON [edfi].[StudentSchoolAttendanceEvent](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentSectionAssociation_SchoolId ON [edfi].[StudentSectionAssociation]; +CREATE INDEX IX_StudentSectionAssociation_SchoolId ON [edfi].[StudentSectionAssociation](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentSectionAssociation_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentSectionAssociation')) +BEGIN + CREATE INDEX IX_StudentSectionAssociation_StudentUSI ON [edfi].[StudentSectionAssociation](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_StudentSectionAttendanceEvent_SchoolId ON [edfi].[StudentSectionAttendanceEvent]; +CREATE INDEX IX_StudentSectionAttendanceEvent_SchoolId ON [edfi].[StudentSectionAttendanceEvent](SchoolId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_StudentSectionAttendanceEvent_StudentUSI' AND object_id = OBJECT_ID('edfi.StudentSectionAttendanceEvent')) +BEGIN + CREATE INDEX IX_StudentSectionAttendanceEvent_StudentUSI ON [edfi].[StudentSectionAttendanceEvent](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_Survey_EducationOrganizationId ON [edfi].[Survey]; +CREATE INDEX IX_Survey_EducationOrganizationId ON [edfi].[Survey](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Survey_SchoolId ON [edfi].[Survey]; +CREATE INDEX IX_Survey_SchoolId ON [edfi].[Survey](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SurveyCourseAssociation_EducationOrganizationId ON [edfi].[SurveyCourseAssociation]; +CREATE INDEX IX_SurveyCourseAssociation_EducationOrganizationId ON [edfi].[SurveyCourseAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SurveyProgramAssociation_EducationOrganizationId ON [edfi].[SurveyProgramAssociation]; +CREATE INDEX IX_SurveyProgramAssociation_EducationOrganizationId ON [edfi].[SurveyProgramAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveyResponse_ParentUSI' AND object_id = OBJECT_ID('edfi.SurveyResponse')) +BEGIN + CREATE INDEX IX_SurveyResponse_ParentUSI ON [edfi].[SurveyResponse](ParentUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveyResponse_StaffUSI' AND object_id = OBJECT_ID('edfi.SurveyResponse')) +BEGIN + CREATE INDEX IX_SurveyResponse_StaffUSI ON [edfi].[SurveyResponse](StaffUSI) INCLUDE (AggregateId) +END; + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveyResponse_StudentUSI' AND object_id = OBJECT_ID('edfi.SurveyResponse')) +BEGIN + CREATE INDEX IX_SurveyResponse_StudentUSI ON [edfi].[SurveyResponse](StudentUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_SurveyResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON [edfi].[SurveyResponseEducationOrganizationTargetAssociation]; +CREATE INDEX IX_SurveyResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON [edfi].[SurveyResponseEducationOrganizationTargetAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveyResponseStaffTargetAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.SurveyResponseStaffTargetAssociation')) +BEGIN + CREATE INDEX IX_SurveyResponseStaffTargetAssociation_StaffUSI ON [edfi].[SurveyResponseStaffTargetAssociation](StaffUSI) INCLUDE (AggregateId) +END; + +DROP INDEX IF EXISTS IX_SurveySectionAssociation_SchoolId ON [edfi].[SurveySectionAssociation]; +CREATE INDEX IX_SurveySectionAssociation_SchoolId ON [edfi].[SurveySectionAssociation](SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SurveySectionResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation]; +CREATE INDEX IX_SurveySectionResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation](EducationOrganizationId) INCLUDE (AggregateId); + +IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='IX_SurveySectionResponseStaffTargetAssociation_StaffUSI' AND object_id = OBJECT_ID('edfi.SurveySectionResponseStaffTargetAssociation')) +BEGIN + CREATE INDEX IX_SurveySectionResponseStaffTargetAssociation_StaffUSI ON [edfi].[SurveySectionResponseStaffTargetAssociation](StaffUSI) INCLUDE (AggregateId) +END; diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/Changes/0230-CreateIndirectUpdateCascadeTriggers.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/Changes/0230-CreateIndirectUpdateCascadeTriggers.sql new file mode 100644 index 0000000000..0c2ab5c8e2 --- /dev/null +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/Changes/0230-CreateIndirectUpdateCascadeTriggers.sql @@ -0,0 +1,232 @@ +-- SPDX-License-Identifier: Apache-2.0 +-- Licensed to the Ed-Fi Alliance under one or more agreements. +-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +-- See the LICENSE and NOTICES files in the project root for more information. + +CREATE TRIGGER [edfi].[edfi_AssessmentSection_TR_Assessment_Update] +ON [edfi].[AssessmentSection] +AFTER UPDATE +AS +BEGIN + SET NOCOUNT ON; + + -- Check if any volatile foreign key values have changed + IF UPDATE(LocalCourseCode) + OR UPDATE(SchoolId) + OR UPDATE(SchoolYear) + OR UPDATE(SectionIdentifier) + OR UPDATE(SessionName) + BEGIN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE rt + SET rt.LastModifiedDate = GETUTCDATE() + FROM [edfi].[Assessment] rt + INNER JOIN inserted i + ON rt.AssessmentIdentifier = i.AssessmentIdentifier + AND rt.Namespace = i.Namespace; + END +END; +GO + +CREATE TRIGGER [edfi].[edfi_BellScheduleClassPeriod_TR_BellSchedule_Update] +ON [edfi].[BellScheduleClassPeriod] +AFTER UPDATE +AS +BEGIN + SET NOCOUNT ON; + + -- Check if any volatile foreign key values have changed + IF UPDATE(ClassPeriodName) + OR UPDATE(SchoolId) + BEGIN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE rt + SET rt.LastModifiedDate = GETUTCDATE() + FROM [edfi].[BellSchedule] rt + INNER JOIN inserted i + ON rt.BellScheduleName = i.BellScheduleName + AND rt.SchoolId = i.SchoolId; + END +END; +GO + +CREATE TRIGGER [edfi].[edfi_ReportCardGrade_TR_ReportCard_Update] +ON [edfi].[ReportCardGrade] +AFTER UPDATE +AS +BEGIN + SET NOCOUNT ON; + + -- Check if any volatile foreign key values have changed + IF UPDATE(BeginDate) + OR UPDATE(GradeTypeDescriptorId) + OR UPDATE(GradingPeriodDescriptorId) + OR UPDATE(GradingPeriodSequence) + OR UPDATE(GradingPeriodSchoolYear) + OR UPDATE(LocalCourseCode) + OR UPDATE(SchoolId) + OR UPDATE(SchoolYear) + OR UPDATE(SectionIdentifier) + OR UPDATE(SessionName) + OR UPDATE(StudentUSI) + BEGIN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE rt + SET rt.LastModifiedDate = GETUTCDATE() + FROM [edfi].[ReportCard] rt + INNER JOIN inserted i + ON rt.EducationOrganizationId = i.EducationOrganizationId + AND rt.GradingPeriodDescriptorId = i.GradingPeriodDescriptorId + AND rt.GradingPeriodSequence = i.GradingPeriodSequence + AND rt.GradingPeriodSchoolId = i.GradingPeriodSchoolId + AND rt.GradingPeriodSchoolYear = i.GradingPeriodSchoolYear + AND rt.StudentUSI = i.StudentUSI; + END +END; +GO + +CREATE TRIGGER [edfi].[edfi_SectionClassPeriod_TR_Section_Update] +ON [edfi].[SectionClassPeriod] +AFTER UPDATE +AS +BEGIN + SET NOCOUNT ON; + + -- Check if any volatile foreign key values have changed + IF UPDATE(ClassPeriodName) + OR UPDATE(SchoolId) + BEGIN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE rt + SET rt.LastModifiedDate = GETUTCDATE() + FROM [edfi].[Section] rt + INNER JOIN inserted i + ON rt.LocalCourseCode = i.LocalCourseCode + AND rt.SchoolId = i.SchoolId + AND rt.SchoolYear = i.SchoolYear + AND rt.SectionIdentifier = i.SectionIdentifier + AND rt.SessionName = i.SessionName; + END +END; +GO + +CREATE TRIGGER [edfi].[edfi_StudentCohortAssociationSection_TR_StudentCohortAssociation_Update] +ON [edfi].[StudentCohortAssociationSection] +AFTER UPDATE +AS +BEGIN + SET NOCOUNT ON; + + -- Check if any volatile foreign key values have changed + IF UPDATE(LocalCourseCode) + OR UPDATE(SchoolId) + OR UPDATE(SchoolYear) + OR UPDATE(SectionIdentifier) + OR UPDATE(SessionName) + BEGIN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE rt + SET rt.LastModifiedDate = GETUTCDATE() + FROM [edfi].[StudentCohortAssociation] rt + INNER JOIN inserted i + ON rt.BeginDate = i.BeginDate + AND rt.CohortIdentifier = i.CohortIdentifier + AND rt.EducationOrganizationId = i.EducationOrganizationId + AND rt.StudentUSI = i.StudentUSI; + END +END; +GO + +CREATE TRIGGER [edfi].[edfi_StudentCompetencyObjectiveStudentSectionAssociation_TR_StudentCompetencyObjective_Update] +ON [edfi].[StudentCompetencyObjectiveStudentSectionAssociation] +AFTER UPDATE +AS +BEGIN + SET NOCOUNT ON; + + -- Check if any volatile foreign key values have changed + IF UPDATE(BeginDate) + OR UPDATE(LocalCourseCode) + OR UPDATE(SchoolId) + OR UPDATE(SchoolYear) + OR UPDATE(SectionIdentifier) + OR UPDATE(SessionName) + OR UPDATE(StudentUSI) + BEGIN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE rt + SET rt.LastModifiedDate = GETUTCDATE() + FROM [edfi].[StudentCompetencyObjective] rt + INNER JOIN inserted i + ON rt.GradingPeriodDescriptorId = i.GradingPeriodDescriptorId + AND rt.GradingPeriodSequence = i.GradingPeriodSequence + AND rt.GradingPeriodSchoolId = i.GradingPeriodSchoolId + AND rt.GradingPeriodSchoolYear = i.GradingPeriodSchoolYear + AND rt.ObjectiveEducationOrganizationId = i.ObjectiveEducationOrganizationId + AND rt.Objective = i.Objective + AND rt.ObjectiveGradeLevelDescriptorId = i.ObjectiveGradeLevelDescriptorId + AND rt.StudentUSI = i.StudentUSI; + END +END; +GO + +CREATE TRIGGER [edfi].[edfi_StudentLearningObjectiveStudentSectionAssociation_TR_StudentLearningObjective_Update] +ON [edfi].[StudentLearningObjectiveStudentSectionAssociation] +AFTER UPDATE +AS +BEGIN + SET NOCOUNT ON; + + -- Check if any volatile foreign key values have changed + IF UPDATE(BeginDate) + OR UPDATE(LocalCourseCode) + OR UPDATE(SchoolId) + OR UPDATE(SchoolYear) + OR UPDATE(SectionIdentifier) + OR UPDATE(SessionName) + OR UPDATE(StudentUSI) + BEGIN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE rt + SET rt.LastModifiedDate = GETUTCDATE() + FROM [edfi].[StudentLearningObjective] rt + INNER JOIN inserted i + ON rt.GradingPeriodDescriptorId = i.GradingPeriodDescriptorId + AND rt.GradingPeriodSequence = i.GradingPeriodSequence + AND rt.GradingPeriodSchoolId = i.GradingPeriodSchoolId + AND rt.GradingPeriodSchoolYear = i.GradingPeriodSchoolYear + AND rt.LearningObjectiveId = i.LearningObjectiveId + AND rt.Namespace = i.Namespace + AND rt.StudentUSI = i.StudentUSI; + END +END; +GO + +CREATE TRIGGER [edfi].[edfi_StudentSectionAttendanceEventClassPeriod_TR_StudentSectionAttendanceEvent_Update] +ON [edfi].[StudentSectionAttendanceEventClassPeriod] +AFTER UPDATE +AS +BEGIN + SET NOCOUNT ON; + + -- Check if any volatile foreign key values have changed + IF UPDATE(ClassPeriodName) + OR UPDATE(SchoolId) + BEGIN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE rt + SET rt.LastModifiedDate = GETUTCDATE() + FROM [edfi].[StudentSectionAttendanceEvent] rt + INNER JOIN inserted i + ON rt.AttendanceEventCategoryDescriptorId = i.AttendanceEventCategoryDescriptorId + AND rt.EventDate = i.EventDate + AND rt.LocalCourseCode = i.LocalCourseCode + AND rt.SchoolId = i.SchoolId + AND rt.SchoolYear = i.SchoolYear + AND rt.SectionIdentifier = i.SectionIdentifier + AND rt.SessionName = i.SessionName + AND rt.StudentUSI = i.StudentUSI; + END +END; +GO + diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/0020-Tables.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/0020-Tables.sql index add4d947eb..77e4f4a0d5 100644 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/0020-Tables.sql +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/0020-Tables.sql @@ -34,9 +34,9 @@ CREATE TABLE edfi.AcademicWeek ( Id UUID NOT NULL, CONSTRAINT AcademicWeek_PK PRIMARY KEY (SchoolId, WeekIdentifier) ); -ALTER TABLE edfi.AcademicWeek ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AcademicWeek ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.AcademicWeek ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.AcademicWeek ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AcademicWeek ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AccommodationDescriptor -- CREATE TABLE edfi.AccommodationDescriptor ( @@ -59,9 +59,9 @@ CREATE TABLE edfi.AccountabilityRating ( Id UUID NOT NULL, CONSTRAINT AccountabilityRating_PK PRIMARY KEY (EducationOrganizationId, RatingTitle, SchoolYear) ); -ALTER TABLE edfi.AccountabilityRating ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AccountabilityRating ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.AccountabilityRating ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.AccountabilityRating ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AccountabilityRating ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AccountTypeDescriptor -- CREATE TABLE edfi.AccountTypeDescriptor ( @@ -125,9 +125,9 @@ CREATE TABLE edfi.Assessment ( Id UUID NOT NULL, CONSTRAINT Assessment_PK PRIMARY KEY (AssessmentIdentifier, Namespace) ); -ALTER TABLE edfi.Assessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Assessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Assessment ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Assessment ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Assessment ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentAcademicSubject -- CREATE TABLE edfi.AssessmentAcademicSubject ( @@ -137,7 +137,7 @@ CREATE TABLE edfi.AssessmentAcademicSubject ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentAcademicSubject_PK PRIMARY KEY (AssessmentIdentifier, Namespace, AcademicSubjectDescriptorId) ); -ALTER TABLE edfi.AssessmentAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentAssessedGradeLevel -- CREATE TABLE edfi.AssessmentAssessedGradeLevel ( @@ -147,7 +147,7 @@ CREATE TABLE edfi.AssessmentAssessedGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentAssessedGradeLevel_PK PRIMARY KEY (AssessmentIdentifier, Namespace, GradeLevelDescriptorId) ); -ALTER TABLE edfi.AssessmentAssessedGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentAssessedGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentCategoryDescriptor -- CREATE TABLE edfi.AssessmentCategoryDescriptor ( @@ -171,7 +171,7 @@ CREATE TABLE edfi.AssessmentContentStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentContentStandard_PK PRIMARY KEY (AssessmentIdentifier, Namespace) ); -ALTER TABLE edfi.AssessmentContentStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentContentStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentContentStandardAuthor -- CREATE TABLE edfi.AssessmentContentStandardAuthor ( @@ -181,7 +181,7 @@ CREATE TABLE edfi.AssessmentContentStandardAuthor ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentContentStandardAuthor_PK PRIMARY KEY (AssessmentIdentifier, Namespace, Author) ); -ALTER TABLE edfi.AssessmentContentStandardAuthor ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentContentStandardAuthor ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentIdentificationCode -- CREATE TABLE edfi.AssessmentIdentificationCode ( @@ -193,7 +193,7 @@ CREATE TABLE edfi.AssessmentIdentificationCode ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentIdentificationCode_PK PRIMARY KEY (AssessmentIdentifier, Namespace, AssessmentIdentificationSystemDescriptorId) ); -ALTER TABLE edfi.AssessmentIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentIdentificationSystemDescriptor -- CREATE TABLE edfi.AssessmentIdentificationSystemDescriptor ( @@ -218,9 +218,9 @@ CREATE TABLE edfi.AssessmentItem ( Id UUID NOT NULL, CONSTRAINT AssessmentItem_PK PRIMARY KEY (AssessmentIdentifier, IdentificationCode, Namespace) ); -ALTER TABLE edfi.AssessmentItem ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentItem ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.AssessmentItem ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.AssessmentItem ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentItem ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentItemCategoryDescriptor -- CREATE TABLE edfi.AssessmentItemCategoryDescriptor ( @@ -237,7 +237,7 @@ CREATE TABLE edfi.AssessmentItemLearningStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentItemLearningStandard_PK PRIMARY KEY (AssessmentIdentifier, IdentificationCode, Namespace, LearningStandardId) ); -ALTER TABLE edfi.AssessmentItemLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentItemLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentItemPossibleResponse -- CREATE TABLE edfi.AssessmentItemPossibleResponse ( @@ -250,7 +250,7 @@ CREATE TABLE edfi.AssessmentItemPossibleResponse ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentItemPossibleResponse_PK PRIMARY KEY (AssessmentIdentifier, IdentificationCode, Namespace, ResponseValue) ); -ALTER TABLE edfi.AssessmentItemPossibleResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentItemPossibleResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentItemResultDescriptor -- CREATE TABLE edfi.AssessmentItemResultDescriptor ( @@ -266,7 +266,7 @@ CREATE TABLE edfi.AssessmentLanguage ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentLanguage_PK PRIMARY KEY (AssessmentIdentifier, Namespace, LanguageDescriptorId) ); -ALTER TABLE edfi.AssessmentLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentPerformanceLevel -- CREATE TABLE edfi.AssessmentPerformanceLevel ( @@ -281,7 +281,7 @@ CREATE TABLE edfi.AssessmentPerformanceLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentPerformanceLevel_PK PRIMARY KEY (AssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId, PerformanceLevelDescriptorId) ); -ALTER TABLE edfi.AssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentPeriod -- CREATE TABLE edfi.AssessmentPeriod ( @@ -293,7 +293,7 @@ CREATE TABLE edfi.AssessmentPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentPeriod_PK PRIMARY KEY (AssessmentIdentifier, Namespace, AssessmentPeriodDescriptorId) ); -ALTER TABLE edfi.AssessmentPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentPeriodDescriptor -- CREATE TABLE edfi.AssessmentPeriodDescriptor ( @@ -309,7 +309,7 @@ CREATE TABLE edfi.AssessmentPlatformType ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentPlatformType_PK PRIMARY KEY (AssessmentIdentifier, Namespace, PlatformTypeDescriptorId) ); -ALTER TABLE edfi.AssessmentPlatformType ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentPlatformType ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentProgram -- CREATE TABLE edfi.AssessmentProgram ( @@ -321,7 +321,7 @@ CREATE TABLE edfi.AssessmentProgram ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentProgram_PK PRIMARY KEY (AssessmentIdentifier, Namespace, EducationOrganizationId, ProgramName, ProgramTypeDescriptorId) ); -ALTER TABLE edfi.AssessmentProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentReportingMethodDescriptor -- CREATE TABLE edfi.AssessmentReportingMethodDescriptor ( @@ -340,7 +340,7 @@ CREATE TABLE edfi.AssessmentScore ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentScore_PK PRIMARY KEY (AssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId) ); -ALTER TABLE edfi.AssessmentScore ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentScore ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentScoreRangeLearningStandard -- CREATE TABLE edfi.AssessmentScoreRangeLearningStandard ( @@ -357,9 +357,9 @@ CREATE TABLE edfi.AssessmentScoreRangeLearningStandard ( Id UUID NOT NULL, CONSTRAINT AssessmentScoreRangeLearningStandard_PK PRIMARY KEY (AssessmentIdentifier, Namespace, ScoreRangeId) ); -ALTER TABLE edfi.AssessmentScoreRangeLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentScoreRangeLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.AssessmentScoreRangeLearningStandard ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.AssessmentScoreRangeLearningStandard ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentScoreRangeLearningStandard ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentScoreRangeLearningStandardLearningStandard -- CREATE TABLE edfi.AssessmentScoreRangeLearningStandardLearningStandard ( @@ -370,7 +370,7 @@ CREATE TABLE edfi.AssessmentScoreRangeLearningStandardLearningStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentScoreRangeLearningStandardLearningStandard_PK PRIMARY KEY (AssessmentIdentifier, Namespace, ScoreRangeId, LearningStandardId) ); -ALTER TABLE edfi.AssessmentScoreRangeLearningStandardLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentScoreRangeLearningStandardLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssessmentSection -- CREATE TABLE edfi.AssessmentSection ( @@ -384,7 +384,7 @@ CREATE TABLE edfi.AssessmentSection ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT AssessmentSection_PK PRIMARY KEY (AssessmentIdentifier, Namespace, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) ); -ALTER TABLE edfi.AssessmentSection ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.AssessmentSection ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.AssignmentLateStatusDescriptor -- CREATE TABLE edfi.AssignmentLateStatusDescriptor ( @@ -415,9 +415,9 @@ CREATE TABLE edfi.BalanceSheetDimension ( Id UUID NOT NULL, CONSTRAINT BalanceSheetDimension_PK PRIMARY KEY (Code, FiscalYear) ); -ALTER TABLE edfi.BalanceSheetDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.BalanceSheetDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.BalanceSheetDimension ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.BalanceSheetDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.BalanceSheetDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.BalanceSheetDimensionReportingTag -- CREATE TABLE edfi.BalanceSheetDimensionReportingTag ( @@ -427,7 +427,7 @@ CREATE TABLE edfi.BalanceSheetDimensionReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT BalanceSheetDimensionReportingTag_PK PRIMARY KEY (Code, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.BalanceSheetDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.BalanceSheetDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.BarrierToInternetAccessInResidenceDescriptor -- CREATE TABLE edfi.BarrierToInternetAccessInResidenceDescriptor ( @@ -455,9 +455,9 @@ CREATE TABLE edfi.BellSchedule ( Id UUID NOT NULL, CONSTRAINT BellSchedule_PK PRIMARY KEY (BellScheduleName, SchoolId) ); -ALTER TABLE edfi.BellSchedule ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.BellSchedule ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.BellSchedule ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.BellSchedule ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.BellSchedule ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.BellScheduleClassPeriod -- CREATE TABLE edfi.BellScheduleClassPeriod ( @@ -467,7 +467,7 @@ CREATE TABLE edfi.BellScheduleClassPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT BellScheduleClassPeriod_PK PRIMARY KEY (BellScheduleName, SchoolId, ClassPeriodName) ); -ALTER TABLE edfi.BellScheduleClassPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.BellScheduleClassPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.BellScheduleDate -- CREATE TABLE edfi.BellScheduleDate ( @@ -477,7 +477,7 @@ CREATE TABLE edfi.BellScheduleDate ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT BellScheduleDate_PK PRIMARY KEY (BellScheduleName, SchoolId, Date) ); -ALTER TABLE edfi.BellScheduleDate ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.BellScheduleDate ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.BellScheduleGradeLevel -- CREATE TABLE edfi.BellScheduleGradeLevel ( @@ -487,7 +487,7 @@ CREATE TABLE edfi.BellScheduleGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT BellScheduleGradeLevel_PK PRIMARY KEY (BellScheduleName, SchoolId, GradeLevelDescriptorId) ); -ALTER TABLE edfi.BellScheduleGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.BellScheduleGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.Calendar -- CREATE TABLE edfi.Calendar ( @@ -501,9 +501,9 @@ CREATE TABLE edfi.Calendar ( Id UUID NOT NULL, CONSTRAINT Calendar_PK PRIMARY KEY (CalendarCode, SchoolId, SchoolYear) ); -ALTER TABLE edfi.Calendar ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Calendar ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Calendar ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Calendar ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Calendar ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CalendarDate -- CREATE TABLE edfi.CalendarDate ( @@ -517,9 +517,9 @@ CREATE TABLE edfi.CalendarDate ( Id UUID NOT NULL, CONSTRAINT CalendarDate_PK PRIMARY KEY (CalendarCode, Date, SchoolId, SchoolYear) ); -ALTER TABLE edfi.CalendarDate ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CalendarDate ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.CalendarDate ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.CalendarDate ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CalendarDate ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CalendarDateCalendarEvent -- CREATE TABLE edfi.CalendarDateCalendarEvent ( @@ -531,7 +531,7 @@ CREATE TABLE edfi.CalendarDateCalendarEvent ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CalendarDateCalendarEvent_PK PRIMARY KEY (CalendarCode, Date, SchoolId, SchoolYear, CalendarEventDescriptorId) ); -ALTER TABLE edfi.CalendarDateCalendarEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CalendarDateCalendarEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CalendarEventDescriptor -- CREATE TABLE edfi.CalendarEventDescriptor ( @@ -548,7 +548,7 @@ CREATE TABLE edfi.CalendarGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CalendarGradeLevel_PK PRIMARY KEY (CalendarCode, SchoolId, SchoolYear, GradeLevelDescriptorId) ); -ALTER TABLE edfi.CalendarGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CalendarGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CalendarTypeDescriptor -- CREATE TABLE edfi.CalendarTypeDescriptor ( @@ -595,9 +595,9 @@ CREATE TABLE edfi.ChartOfAccount ( Id UUID NOT NULL, CONSTRAINT ChartOfAccount_PK PRIMARY KEY (AccountIdentifier, EducationOrganizationId, FiscalYear) ); -ALTER TABLE edfi.ChartOfAccount ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ChartOfAccount ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.ChartOfAccount ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.ChartOfAccount ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ChartOfAccount ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ChartOfAccountReportingTag -- CREATE TABLE edfi.ChartOfAccountReportingTag ( @@ -609,7 +609,7 @@ CREATE TABLE edfi.ChartOfAccountReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ChartOfAccountReportingTag_PK PRIMARY KEY (AccountIdentifier, EducationOrganizationId, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.ChartOfAccountReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ChartOfAccountReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CitizenshipStatusDescriptor -- CREATE TABLE edfi.CitizenshipStatusDescriptor ( @@ -628,9 +628,9 @@ CREATE TABLE edfi.ClassPeriod ( Id UUID NOT NULL, CONSTRAINT ClassPeriod_PK PRIMARY KEY (ClassPeriodName, SchoolId) ); -ALTER TABLE edfi.ClassPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ClassPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.ClassPeriod ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.ClassPeriod ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ClassPeriod ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ClassPeriodMeetingTime -- CREATE TABLE edfi.ClassPeriodMeetingTime ( @@ -641,7 +641,7 @@ CREATE TABLE edfi.ClassPeriodMeetingTime ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ClassPeriodMeetingTime_PK PRIMARY KEY (ClassPeriodName, SchoolId, EndTime, StartTime) ); -ALTER TABLE edfi.ClassPeriodMeetingTime ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ClassPeriodMeetingTime ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ClassroomPositionDescriptor -- CREATE TABLE edfi.ClassroomPositionDescriptor ( @@ -663,9 +663,9 @@ CREATE TABLE edfi.Cohort ( Id UUID NOT NULL, CONSTRAINT Cohort_PK PRIMARY KEY (CohortIdentifier, EducationOrganizationId) ); -ALTER TABLE edfi.Cohort ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Cohort ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Cohort ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Cohort ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Cohort ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CohortProgram -- CREATE TABLE edfi.CohortProgram ( @@ -677,7 +677,7 @@ CREATE TABLE edfi.CohortProgram ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CohortProgram_PK PRIMARY KEY (CohortIdentifier, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId) ); -ALTER TABLE edfi.CohortProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CohortProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CohortScopeDescriptor -- CREATE TABLE edfi.CohortScopeDescriptor ( @@ -734,9 +734,9 @@ CREATE TABLE edfi.CommunityProviderLicense ( Id UUID NOT NULL, CONSTRAINT CommunityProviderLicense_PK PRIMARY KEY (CommunityProviderId, LicenseIdentifier, LicensingOrganization) ); -ALTER TABLE edfi.CommunityProviderLicense ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CommunityProviderLicense ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.CommunityProviderLicense ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.CommunityProviderLicense ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CommunityProviderLicense ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CompetencyLevelDescriptor -- CREATE TABLE edfi.CompetencyLevelDescriptor ( @@ -758,9 +758,9 @@ CREATE TABLE edfi.CompetencyObjective ( Id UUID NOT NULL, CONSTRAINT CompetencyObjective_PK PRIMARY KEY (EducationOrganizationId, Objective, ObjectiveGradeLevelDescriptorId) ); -ALTER TABLE edfi.CompetencyObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CompetencyObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.CompetencyObjective ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.CompetencyObjective ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CompetencyObjective ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ContactTypeDescriptor -- CREATE TABLE edfi.ContactTypeDescriptor ( @@ -819,9 +819,9 @@ CREATE TABLE edfi.Course ( Id UUID NOT NULL, CONSTRAINT Course_PK PRIMARY KEY (CourseCode, EducationOrganizationId) ); -ALTER TABLE edfi.Course ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Course ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Course ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Course ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Course ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseAttemptResultDescriptor -- CREATE TABLE edfi.CourseAttemptResultDescriptor ( @@ -837,7 +837,7 @@ CREATE TABLE edfi.CourseCompetencyLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseCompetencyLevel_PK PRIMARY KEY (CourseCode, EducationOrganizationId, CompetencyLevelDescriptorId) ); -ALTER TABLE edfi.CourseCompetencyLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseCompetencyLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseDefinedByDescriptor -- CREATE TABLE edfi.CourseDefinedByDescriptor ( @@ -862,7 +862,7 @@ CREATE TABLE edfi.CourseIdentificationCode ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseIdentificationCode_PK PRIMARY KEY (CourseCode, EducationOrganizationId, CourseIdentificationSystemDescriptorId) ); -ALTER TABLE edfi.CourseIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseIdentificationSystemDescriptor -- CREATE TABLE edfi.CourseIdentificationSystemDescriptor ( @@ -879,7 +879,7 @@ CREATE TABLE edfi.CourseLearningObjective ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseLearningObjective_PK PRIMARY KEY (CourseCode, EducationOrganizationId, LearningObjectiveId, Namespace) ); -ALTER TABLE edfi.CourseLearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseLearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseLearningStandard -- CREATE TABLE edfi.CourseLearningStandard ( @@ -889,7 +889,7 @@ CREATE TABLE edfi.CourseLearningStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseLearningStandard_PK PRIMARY KEY (CourseCode, EducationOrganizationId, LearningStandardId) ); -ALTER TABLE edfi.CourseLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseLevelCharacteristic -- CREATE TABLE edfi.CourseLevelCharacteristic ( @@ -899,7 +899,7 @@ CREATE TABLE edfi.CourseLevelCharacteristic ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseLevelCharacteristic_PK PRIMARY KEY (CourseCode, EducationOrganizationId, CourseLevelCharacteristicDescriptorId) ); -ALTER TABLE edfi.CourseLevelCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseLevelCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseLevelCharacteristicDescriptor -- CREATE TABLE edfi.CourseLevelCharacteristicDescriptor ( @@ -915,7 +915,7 @@ CREATE TABLE edfi.CourseOfferedGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseOfferedGradeLevel_PK PRIMARY KEY (CourseCode, EducationOrganizationId, GradeLevelDescriptorId) ); -ALTER TABLE edfi.CourseOfferedGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseOfferedGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseOffering -- CREATE TABLE edfi.CourseOffering ( @@ -933,9 +933,9 @@ CREATE TABLE edfi.CourseOffering ( Id UUID NOT NULL, CONSTRAINT CourseOffering_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SessionName) ); -ALTER TABLE edfi.CourseOffering ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseOffering ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.CourseOffering ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.CourseOffering ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseOffering ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseOfferingCourseLevelCharacteristic -- CREATE TABLE edfi.CourseOfferingCourseLevelCharacteristic ( @@ -947,7 +947,7 @@ CREATE TABLE edfi.CourseOfferingCourseLevelCharacteristic ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseOfferingCourseLevelCharacteristic_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SessionName, CourseLevelCharacteristicDescriptorId) ); -ALTER TABLE edfi.CourseOfferingCourseLevelCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseOfferingCourseLevelCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseOfferingCurriculumUsed -- CREATE TABLE edfi.CourseOfferingCurriculumUsed ( @@ -959,7 +959,7 @@ CREATE TABLE edfi.CourseOfferingCurriculumUsed ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseOfferingCurriculumUsed_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SessionName, CurriculumUsedDescriptorId) ); -ALTER TABLE edfi.CourseOfferingCurriculumUsed ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseOfferingCurriculumUsed ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseOfferingOfferedGradeLevel -- CREATE TABLE edfi.CourseOfferingOfferedGradeLevel ( @@ -971,7 +971,7 @@ CREATE TABLE edfi.CourseOfferingOfferedGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseOfferingOfferedGradeLevel_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SessionName, GradeLevelDescriptorId) ); -ALTER TABLE edfi.CourseOfferingOfferedGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseOfferingOfferedGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseRepeatCodeDescriptor -- CREATE TABLE edfi.CourseRepeatCodeDescriptor ( @@ -1012,9 +1012,9 @@ CREATE TABLE edfi.CourseTranscript ( Id UUID NOT NULL, CONSTRAINT CourseTranscript_PK PRIMARY KEY (CourseAttemptResultDescriptorId, CourseCode, CourseEducationOrganizationId, EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId) ); -ALTER TABLE edfi.CourseTranscript ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseTranscript ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.CourseTranscript ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.CourseTranscript ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseTranscript ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseTranscriptAcademicSubject -- CREATE TABLE edfi.CourseTranscriptAcademicSubject ( @@ -1029,7 +1029,7 @@ CREATE TABLE edfi.CourseTranscriptAcademicSubject ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseTranscriptAcademicSubject_PK PRIMARY KEY (CourseAttemptResultDescriptorId, CourseCode, CourseEducationOrganizationId, EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, AcademicSubjectDescriptorId) ); -ALTER TABLE edfi.CourseTranscriptAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseTranscriptAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseTranscriptAlternativeCourseIdentificationCode -- CREATE TABLE edfi.CourseTranscriptAlternativeCourseIdentificationCode ( @@ -1047,7 +1047,7 @@ CREATE TABLE edfi.CourseTranscriptAlternativeCourseIdentificationCode ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseTranscriptAlternativeCourseIdentificationCode_PK PRIMARY KEY (CourseAttemptResultDescriptorId, CourseCode, CourseEducationOrganizationId, EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, CourseIdentificationSystemDescriptorId) ); -ALTER TABLE edfi.CourseTranscriptAlternativeCourseIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseTranscriptAlternativeCourseIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseTranscriptCreditCategory -- CREATE TABLE edfi.CourseTranscriptCreditCategory ( @@ -1062,7 +1062,7 @@ CREATE TABLE edfi.CourseTranscriptCreditCategory ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseTranscriptCreditCategory_PK PRIMARY KEY (CourseAttemptResultDescriptorId, CourseCode, CourseEducationOrganizationId, EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, CreditCategoryDescriptorId) ); -ALTER TABLE edfi.CourseTranscriptCreditCategory ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseTranscriptCreditCategory ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseTranscriptEarnedAdditionalCredits -- CREATE TABLE edfi.CourseTranscriptEarnedAdditionalCredits ( @@ -1078,7 +1078,7 @@ CREATE TABLE edfi.CourseTranscriptEarnedAdditionalCredits ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseTranscriptEarnedAdditionalCredits_PK PRIMARY KEY (CourseAttemptResultDescriptorId, CourseCode, CourseEducationOrganizationId, EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, AdditionalCreditTypeDescriptorId) ); -ALTER TABLE edfi.CourseTranscriptEarnedAdditionalCredits ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseTranscriptEarnedAdditionalCredits ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CourseTranscriptPartialCourseTranscriptAwards -- CREATE TABLE edfi.CourseTranscriptPartialCourseTranscriptAwards ( @@ -1097,7 +1097,7 @@ CREATE TABLE edfi.CourseTranscriptPartialCourseTranscriptAwards ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CourseTranscriptPartialCourseTranscriptAwards_PK PRIMARY KEY (CourseAttemptResultDescriptorId, CourseCode, CourseEducationOrganizationId, EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, AwardDate) ); -ALTER TABLE edfi.CourseTranscriptPartialCourseTranscriptAwards ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CourseTranscriptPartialCourseTranscriptAwards ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.Credential -- CREATE TABLE edfi.Credential ( @@ -1117,9 +1117,9 @@ CREATE TABLE edfi.Credential ( Id UUID NOT NULL, CONSTRAINT Credential_PK PRIMARY KEY (CredentialIdentifier, StateOfIssueStateAbbreviationDescriptorId) ); -ALTER TABLE edfi.Credential ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Credential ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Credential ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Credential ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Credential ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CredentialAcademicSubject -- CREATE TABLE edfi.CredentialAcademicSubject ( @@ -1129,7 +1129,7 @@ CREATE TABLE edfi.CredentialAcademicSubject ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CredentialAcademicSubject_PK PRIMARY KEY (CredentialIdentifier, StateOfIssueStateAbbreviationDescriptorId, AcademicSubjectDescriptorId) ); -ALTER TABLE edfi.CredentialAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CredentialAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CredentialEndorsement -- CREATE TABLE edfi.CredentialEndorsement ( @@ -1139,7 +1139,7 @@ CREATE TABLE edfi.CredentialEndorsement ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CredentialEndorsement_PK PRIMARY KEY (CredentialIdentifier, StateOfIssueStateAbbreviationDescriptorId, CredentialEndorsement) ); -ALTER TABLE edfi.CredentialEndorsement ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CredentialEndorsement ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CredentialFieldDescriptor -- CREATE TABLE edfi.CredentialFieldDescriptor ( @@ -1155,7 +1155,7 @@ CREATE TABLE edfi.CredentialGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT CredentialGradeLevel_PK PRIMARY KEY (CredentialIdentifier, StateOfIssueStateAbbreviationDescriptorId, GradeLevelDescriptorId) ); -ALTER TABLE edfi.CredentialGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.CredentialGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.CredentialTypeDescriptor -- CREATE TABLE edfi.CredentialTypeDescriptor ( @@ -1211,9 +1211,9 @@ CREATE TABLE edfi.Descriptor ( CONSTRAINT Descriptor_PK PRIMARY KEY (DescriptorId), CONSTRAINT Descriptor_AK UNIQUE (Namespace, CodeValue) ); -ALTER TABLE edfi.Descriptor ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Descriptor ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Descriptor ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Descriptor ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Descriptor ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; CREATE UNIQUE INDEX UX_Descriptor_Uri ON edfi.Descriptor (Uri) INCLUDE (DescriptorId, Discriminator); -- Table edfi.DescriptorMapping -- @@ -1228,9 +1228,9 @@ CREATE TABLE edfi.DescriptorMapping ( Id UUID NOT NULL, CONSTRAINT DescriptorMapping_PK PRIMARY KEY (MappedNamespace, MappedValue, Namespace, Value) ); -ALTER TABLE edfi.DescriptorMapping ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DescriptorMapping ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.DescriptorMapping ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.DescriptorMapping ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DescriptorMapping ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DescriptorMappingModelEntity -- CREATE TABLE edfi.DescriptorMappingModelEntity ( @@ -1242,7 +1242,7 @@ CREATE TABLE edfi.DescriptorMappingModelEntity ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT DescriptorMappingModelEntity_PK PRIMARY KEY (MappedNamespace, MappedValue, Namespace, Value, ModelEntityDescriptorId) ); -ALTER TABLE edfi.DescriptorMappingModelEntity ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DescriptorMappingModelEntity ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DiagnosisDescriptor -- CREATE TABLE edfi.DiagnosisDescriptor ( @@ -1299,9 +1299,9 @@ CREATE TABLE edfi.DisciplineAction ( Id UUID NOT NULL, CONSTRAINT DisciplineAction_PK PRIMARY KEY (DisciplineActionIdentifier, DisciplineDate, StudentUSI) ); -ALTER TABLE edfi.DisciplineAction ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineAction ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.DisciplineAction ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.DisciplineAction ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineAction ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DisciplineActionDiscipline -- CREATE TABLE edfi.DisciplineActionDiscipline ( @@ -1312,7 +1312,7 @@ CREATE TABLE edfi.DisciplineActionDiscipline ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT DisciplineActionDiscipline_PK PRIMARY KEY (DisciplineActionIdentifier, DisciplineDate, StudentUSI, DisciplineDescriptorId) ); -ALTER TABLE edfi.DisciplineActionDiscipline ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineActionDiscipline ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DisciplineActionLengthDifferenceReasonDescriptor -- CREATE TABLE edfi.DisciplineActionLengthDifferenceReasonDescriptor ( @@ -1329,7 +1329,7 @@ CREATE TABLE edfi.DisciplineActionStaff ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT DisciplineActionStaff_PK PRIMARY KEY (DisciplineActionIdentifier, DisciplineDate, StudentUSI, StaffUSI) ); -ALTER TABLE edfi.DisciplineActionStaff ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineActionStaff ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DisciplineActionStudentDisciplineIncidentAssociation -- CREATE TABLE edfi.DisciplineActionStudentDisciplineIncidentAssociation ( @@ -1341,7 +1341,7 @@ CREATE TABLE edfi.DisciplineActionStudentDisciplineIncidentAssociation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT DisciplineActionStudentDisciplineIncidentAssociation_PK PRIMARY KEY (DisciplineActionIdentifier, DisciplineDate, StudentUSI, IncidentIdentifier, SchoolId) ); -ALTER TABLE edfi.DisciplineActionStudentDisciplineIncidentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineActionStudentDisciplineIncidentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DisciplineActionStudentDisciplineIncidentBehaviorAssociation -- CREATE TABLE edfi.DisciplineActionStudentDisciplineIncidentBehaviorAssociation ( @@ -1354,7 +1354,7 @@ CREATE TABLE edfi.DisciplineActionStudentDisciplineIncidentBehaviorAssociation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT DisciplineActionStudentDisciplineIncidentBehaviorAssociation_PK PRIMARY KEY (DisciplineActionIdentifier, DisciplineDate, StudentUSI, BehaviorDescriptorId, IncidentIdentifier, SchoolId) ); -ALTER TABLE edfi.DisciplineActionStudentDisciplineIncidentBehaviorAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineActionStudentDisciplineIncidentBehaviorAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DisciplineDescriptor -- CREATE TABLE edfi.DisciplineDescriptor ( @@ -1382,9 +1382,9 @@ CREATE TABLE edfi.DisciplineIncident ( Id UUID NOT NULL, CONSTRAINT DisciplineIncident_PK PRIMARY KEY (IncidentIdentifier, SchoolId) ); -ALTER TABLE edfi.DisciplineIncident ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineIncident ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.DisciplineIncident ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.DisciplineIncident ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineIncident ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DisciplineIncidentBehavior -- CREATE TABLE edfi.DisciplineIncidentBehavior ( @@ -1395,7 +1395,7 @@ CREATE TABLE edfi.DisciplineIncidentBehavior ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT DisciplineIncidentBehavior_PK PRIMARY KEY (IncidentIdentifier, SchoolId, BehaviorDescriptorId) ); -ALTER TABLE edfi.DisciplineIncidentBehavior ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineIncidentBehavior ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DisciplineIncidentExternalParticipant -- CREATE TABLE edfi.DisciplineIncidentExternalParticipant ( @@ -1407,7 +1407,7 @@ CREATE TABLE edfi.DisciplineIncidentExternalParticipant ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT DisciplineIncidentExternalParticipant_PK PRIMARY KEY (IncidentIdentifier, SchoolId, DisciplineIncidentParticipationCodeDescriptorId, FirstName, LastSurname) ); -ALTER TABLE edfi.DisciplineIncidentExternalParticipant ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineIncidentExternalParticipant ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.DisciplineIncidentParticipationCodeDescriptor -- CREATE TABLE edfi.DisciplineIncidentParticipationCodeDescriptor ( @@ -1423,7 +1423,7 @@ CREATE TABLE edfi.DisciplineIncidentWeapon ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT DisciplineIncidentWeapon_PK PRIMARY KEY (IncidentIdentifier, SchoolId, WeaponDescriptorId) ); -ALTER TABLE edfi.DisciplineIncidentWeapon ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.DisciplineIncidentWeapon ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationalEnvironmentDescriptor -- CREATE TABLE edfi.EducationalEnvironmentDescriptor ( @@ -1456,9 +1456,9 @@ CREATE TABLE edfi.EducationContent ( Id UUID NOT NULL, CONSTRAINT EducationContent_PK PRIMARY KEY (ContentIdentifier) ); -ALTER TABLE edfi.EducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.EducationContent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.EducationContent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationContent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationContentAppropriateGradeLevel -- CREATE TABLE edfi.EducationContentAppropriateGradeLevel ( @@ -1467,7 +1467,7 @@ CREATE TABLE edfi.EducationContentAppropriateGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationContentAppropriateGradeLevel_PK PRIMARY KEY (ContentIdentifier, GradeLevelDescriptorId) ); -ALTER TABLE edfi.EducationContentAppropriateGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationContentAppropriateGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationContentAppropriateSex -- CREATE TABLE edfi.EducationContentAppropriateSex ( @@ -1476,7 +1476,7 @@ CREATE TABLE edfi.EducationContentAppropriateSex ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationContentAppropriateSex_PK PRIMARY KEY (ContentIdentifier, SexDescriptorId) ); -ALTER TABLE edfi.EducationContentAppropriateSex ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationContentAppropriateSex ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationContentAuthor -- CREATE TABLE edfi.EducationContentAuthor ( @@ -1485,7 +1485,7 @@ CREATE TABLE edfi.EducationContentAuthor ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationContentAuthor_PK PRIMARY KEY (ContentIdentifier, Author) ); -ALTER TABLE edfi.EducationContentAuthor ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationContentAuthor ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationContentDerivativeSourceEducationContent -- CREATE TABLE edfi.EducationContentDerivativeSourceEducationContent ( @@ -1494,7 +1494,7 @@ CREATE TABLE edfi.EducationContentDerivativeSourceEducationContent ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationContentDerivativeSourceEducationContent_PK PRIMARY KEY (ContentIdentifier, DerivativeSourceContentIdentifier) ); -ALTER TABLE edfi.EducationContentDerivativeSourceEducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationContentDerivativeSourceEducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationContentDerivativeSourceLearningResourceMetadataURI -- CREATE TABLE edfi.EducationContentDerivativeSourceLearningResourceMetadataURI ( @@ -1503,7 +1503,7 @@ CREATE TABLE edfi.EducationContentDerivativeSourceLearningResourceMetadataURI ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationContentDerivativeSourceLearningResourceMetadataURI_PK PRIMARY KEY (ContentIdentifier, DerivativeSourceLearningResourceMetadataURI) ); -ALTER TABLE edfi.EducationContentDerivativeSourceLearningResourceMetadataURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationContentDerivativeSourceLearningResourceMetadataURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationContentDerivativeSourceURI -- CREATE TABLE edfi.EducationContentDerivativeSourceURI ( @@ -1512,7 +1512,7 @@ CREATE TABLE edfi.EducationContentDerivativeSourceURI ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationContentDerivativeSourceURI_PK PRIMARY KEY (ContentIdentifier, DerivativeSourceURI) ); -ALTER TABLE edfi.EducationContentDerivativeSourceURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationContentDerivativeSourceURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationContentLanguage -- CREATE TABLE edfi.EducationContentLanguage ( @@ -1521,7 +1521,7 @@ CREATE TABLE edfi.EducationContentLanguage ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationContentLanguage_PK PRIMARY KEY (ContentIdentifier, LanguageDescriptorId) ); -ALTER TABLE edfi.EducationContentLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationContentLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganization -- CREATE TABLE edfi.EducationOrganization ( @@ -1536,9 +1536,9 @@ CREATE TABLE edfi.EducationOrganization ( Id UUID NOT NULL, CONSTRAINT EducationOrganization_PK PRIMARY KEY (EducationOrganizationId) ); -ALTER TABLE edfi.EducationOrganization ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganization ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.EducationOrganization ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.EducationOrganization ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganization ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationAddress -- CREATE TABLE edfi.EducationOrganizationAddress ( @@ -1560,7 +1560,7 @@ CREATE TABLE edfi.EducationOrganizationAddress ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationOrganizationAddress_PK PRIMARY KEY (EducationOrganizationId, AddressTypeDescriptorId, City, PostalCode, StateAbbreviationDescriptorId, StreetNumberName) ); -ALTER TABLE edfi.EducationOrganizationAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationAddressPeriod -- CREATE TABLE edfi.EducationOrganizationAddressPeriod ( @@ -1575,7 +1575,7 @@ CREATE TABLE edfi.EducationOrganizationAddressPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationOrganizationAddressPeriod_PK PRIMARY KEY (EducationOrganizationId, AddressTypeDescriptorId, City, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, BeginDate) ); -ALTER TABLE edfi.EducationOrganizationAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationAssociationTypeDescriptor -- CREATE TABLE edfi.EducationOrganizationAssociationTypeDescriptor ( @@ -1590,7 +1590,7 @@ CREATE TABLE edfi.EducationOrganizationCategory ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationOrganizationCategory_PK PRIMARY KEY (EducationOrganizationId, EducationOrganizationCategoryDescriptorId) ); -ALTER TABLE edfi.EducationOrganizationCategory ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationCategory ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationCategoryDescriptor -- CREATE TABLE edfi.EducationOrganizationCategoryDescriptor ( @@ -1606,7 +1606,7 @@ CREATE TABLE edfi.EducationOrganizationIdentificationCode ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationOrganizationIdentificationCode_PK PRIMARY KEY (EducationOrganizationId, EducationOrganizationIdentificationSystemDescriptorId) ); -ALTER TABLE edfi.EducationOrganizationIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationIdentificationSystemDescriptor -- CREATE TABLE edfi.EducationOrganizationIdentificationSystemDescriptor ( @@ -1625,7 +1625,7 @@ CREATE TABLE edfi.EducationOrganizationIndicator ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationOrganizationIndicator_PK PRIMARY KEY (EducationOrganizationId, IndicatorDescriptorId) ); -ALTER TABLE edfi.EducationOrganizationIndicator ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationIndicator ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationIndicatorPeriod -- CREATE TABLE edfi.EducationOrganizationIndicatorPeriod ( @@ -1636,7 +1636,7 @@ CREATE TABLE edfi.EducationOrganizationIndicatorPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationOrganizationIndicatorPeriod_PK PRIMARY KEY (EducationOrganizationId, IndicatorDescriptorId, BeginDate) ); -ALTER TABLE edfi.EducationOrganizationIndicatorPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationIndicatorPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationInstitutionTelephone -- CREATE TABLE edfi.EducationOrganizationInstitutionTelephone ( @@ -1646,7 +1646,7 @@ CREATE TABLE edfi.EducationOrganizationInstitutionTelephone ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationOrganizationInstitutionTelephone_PK PRIMARY KEY (EducationOrganizationId, InstitutionTelephoneNumberTypeDescriptorId) ); -ALTER TABLE edfi.EducationOrganizationInstitutionTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationInstitutionTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationInternationalAddress -- CREATE TABLE edfi.EducationOrganizationInternationalAddress ( @@ -1664,7 +1664,7 @@ CREATE TABLE edfi.EducationOrganizationInternationalAddress ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT EducationOrganizationInternationalAddress_PK PRIMARY KEY (EducationOrganizationId, AddressTypeDescriptorId) ); -ALTER TABLE edfi.EducationOrganizationInternationalAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationInternationalAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationInterventionPrescriptionAssociation -- CREATE TABLE edfi.EducationOrganizationInterventionPrescriptionAssociation ( @@ -1679,9 +1679,9 @@ CREATE TABLE edfi.EducationOrganizationInterventionPrescriptionAssociation ( Id UUID NOT NULL, CONSTRAINT EducationOrganizationInterventionPrescriptionAssociation_PK PRIMARY KEY (EducationOrganizationId, InterventionPrescriptionEducationOrganizationId, InterventionPrescriptionIdentificationCode) ); -ALTER TABLE edfi.EducationOrganizationInterventionPrescriptionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationInterventionPrescriptionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.EducationOrganizationInterventionPrescriptionAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.EducationOrganizationInterventionPrescriptionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationInterventionPrescriptionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationNetwork -- CREATE TABLE edfi.EducationOrganizationNetwork ( @@ -1702,9 +1702,9 @@ CREATE TABLE edfi.EducationOrganizationNetworkAssociation ( Id UUID NOT NULL, CONSTRAINT EducationOrganizationNetworkAssociation_PK PRIMARY KEY (EducationOrganizationNetworkId, MemberEducationOrganizationId) ); -ALTER TABLE edfi.EducationOrganizationNetworkAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationNetworkAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.EducationOrganizationNetworkAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.EducationOrganizationNetworkAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationNetworkAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationOrganizationPeerAssociation -- CREATE TABLE edfi.EducationOrganizationPeerAssociation ( @@ -1716,9 +1716,9 @@ CREATE TABLE edfi.EducationOrganizationPeerAssociation ( Id UUID NOT NULL, CONSTRAINT EducationOrganizationPeerAssociation_PK PRIMARY KEY (EducationOrganizationId, PeerEducationOrganizationId) ); -ALTER TABLE edfi.EducationOrganizationPeerAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationPeerAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.EducationOrganizationPeerAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.EducationOrganizationPeerAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.EducationOrganizationPeerAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.EducationPlanDescriptor -- CREATE TABLE edfi.EducationPlanDescriptor ( @@ -1782,9 +1782,9 @@ CREATE TABLE edfi.FeederSchoolAssociation ( Id UUID NOT NULL, CONSTRAINT FeederSchoolAssociation_PK PRIMARY KEY (BeginDate, FeederSchoolId, SchoolId) ); -ALTER TABLE edfi.FeederSchoolAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.FeederSchoolAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.FeederSchoolAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.FeederSchoolAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.FeederSchoolAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.FinancialCollectionDescriptor -- CREATE TABLE edfi.FinancialCollectionDescriptor ( @@ -1803,9 +1803,9 @@ CREATE TABLE edfi.FunctionDimension ( Id UUID NOT NULL, CONSTRAINT FunctionDimension_PK PRIMARY KEY (Code, FiscalYear) ); -ALTER TABLE edfi.FunctionDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.FunctionDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.FunctionDimension ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.FunctionDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.FunctionDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.FunctionDimensionReportingTag -- CREATE TABLE edfi.FunctionDimensionReportingTag ( @@ -1815,7 +1815,7 @@ CREATE TABLE edfi.FunctionDimensionReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT FunctionDimensionReportingTag_PK PRIMARY KEY (Code, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.FunctionDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.FunctionDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.FundDimension -- CREATE TABLE edfi.FundDimension ( @@ -1828,9 +1828,9 @@ CREATE TABLE edfi.FundDimension ( Id UUID NOT NULL, CONSTRAINT FundDimension_PK PRIMARY KEY (Code, FiscalYear) ); -ALTER TABLE edfi.FundDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.FundDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.FundDimension ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.FundDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.FundDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.FundDimensionReportingTag -- CREATE TABLE edfi.FundDimensionReportingTag ( @@ -1840,7 +1840,7 @@ CREATE TABLE edfi.FundDimensionReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT FundDimensionReportingTag_PK PRIMARY KEY (Code, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.FundDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.FundDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GeneralStudentProgramAssociation -- CREATE TABLE edfi.GeneralStudentProgramAssociation ( @@ -1859,9 +1859,9 @@ CREATE TABLE edfi.GeneralStudentProgramAssociation ( Id UUID NOT NULL, CONSTRAINT GeneralStudentProgramAssociation_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) ); -ALTER TABLE edfi.GeneralStudentProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GeneralStudentProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.GeneralStudentProgramAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.GeneralStudentProgramAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GeneralStudentProgramAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GeneralStudentProgramAssociationParticipationStatus -- CREATE TABLE edfi.GeneralStudentProgramAssociationParticipationStatus ( @@ -1878,7 +1878,7 @@ CREATE TABLE edfi.GeneralStudentProgramAssociationParticipationStatus ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GeneralStudentProgramAssociationParticipationStatus_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) ); -ALTER TABLE edfi.GeneralStudentProgramAssociationParticipationStatus ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GeneralStudentProgramAssociationParticipationStatus ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GeneralStudentProgramAssociationProgramParticipationStatus -- CREATE TABLE edfi.GeneralStudentProgramAssociationProgramParticipationStatus ( @@ -1895,7 +1895,7 @@ CREATE TABLE edfi.GeneralStudentProgramAssociationProgramParticipationStatus ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GeneralStudentProgramAssociationProgramParticipationStatus_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, ParticipationStatusDescriptorId, StatusBeginDate) ); -ALTER TABLE edfi.GeneralStudentProgramAssociationProgramParticipationStatus ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GeneralStudentProgramAssociationProgramParticipationStatus ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.Grade -- CREATE TABLE edfi.Grade ( @@ -1922,9 +1922,9 @@ CREATE TABLE edfi.Grade ( Id UUID NOT NULL, CONSTRAINT Grade_PK PRIMARY KEY (BeginDate, GradeTypeDescriptorId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolYear, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI) ); -ALTER TABLE edfi.Grade ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Grade ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Grade ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Grade ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Grade ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GradebookEntry -- CREATE TABLE edfi.GradebookEntry ( @@ -1951,9 +1951,9 @@ CREATE TABLE edfi.GradebookEntry ( Id UUID NOT NULL, CONSTRAINT GradebookEntry_PK PRIMARY KEY (GradebookEntryIdentifier, Namespace) ); -ALTER TABLE edfi.GradebookEntry ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GradebookEntry ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.GradebookEntry ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.GradebookEntry ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GradebookEntry ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GradebookEntryLearningStandard -- CREATE TABLE edfi.GradebookEntryLearningStandard ( @@ -1963,7 +1963,7 @@ CREATE TABLE edfi.GradebookEntryLearningStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GradebookEntryLearningStandard_PK PRIMARY KEY (GradebookEntryIdentifier, Namespace, LearningStandardId) ); -ALTER TABLE edfi.GradebookEntryLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GradebookEntryLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GradebookEntryTypeDescriptor -- CREATE TABLE edfi.GradebookEntryTypeDescriptor ( @@ -1992,7 +1992,7 @@ CREATE TABLE edfi.GradeLearningStandardGrade ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GradeLearningStandardGrade_PK PRIMARY KEY (BeginDate, GradeTypeDescriptorId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolYear, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI, LearningStandardId) ); -ALTER TABLE edfi.GradeLearningStandardGrade ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GradeLearningStandardGrade ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GradeLevelDescriptor -- CREATE TABLE edfi.GradeLevelDescriptor ( @@ -2027,9 +2027,9 @@ CREATE TABLE edfi.GradingPeriod ( Id UUID NOT NULL, CONSTRAINT GradingPeriod_PK PRIMARY KEY (GradingPeriodDescriptorId, PeriodSequence, SchoolId, SchoolYear) ); -ALTER TABLE edfi.GradingPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GradingPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.GradingPeriod ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.GradingPeriod ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GradingPeriod ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GradingPeriodDescriptor -- CREATE TABLE edfi.GradingPeriodDescriptor ( @@ -2052,9 +2052,9 @@ CREATE TABLE edfi.GraduationPlan ( Id UUID NOT NULL, CONSTRAINT GraduationPlan_PK PRIMARY KEY (EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear) ); -ALTER TABLE edfi.GraduationPlan ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GraduationPlan ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.GraduationPlan ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.GraduationPlan ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GraduationPlan ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GraduationPlanCreditsByCourse -- CREATE TABLE edfi.GraduationPlanCreditsByCourse ( @@ -2069,7 +2069,7 @@ CREATE TABLE edfi.GraduationPlanCreditsByCourse ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GraduationPlanCreditsByCourse_PK PRIMARY KEY (EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear, CourseSetName) ); -ALTER TABLE edfi.GraduationPlanCreditsByCourse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GraduationPlanCreditsByCourse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GraduationPlanCreditsByCourseCourse -- CREATE TABLE edfi.GraduationPlanCreditsByCourseCourse ( @@ -2082,7 +2082,7 @@ CREATE TABLE edfi.GraduationPlanCreditsByCourseCourse ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GraduationPlanCreditsByCourseCourse_PK PRIMARY KEY (EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear, CourseSetName, CourseCode, CourseEducationOrganizationId) ); -ALTER TABLE edfi.GraduationPlanCreditsByCourseCourse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GraduationPlanCreditsByCourseCourse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GraduationPlanCreditsByCreditCategory -- CREATE TABLE edfi.GraduationPlanCreditsByCreditCategory ( @@ -2096,7 +2096,7 @@ CREATE TABLE edfi.GraduationPlanCreditsByCreditCategory ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GraduationPlanCreditsByCreditCategory_PK PRIMARY KEY (EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear, CreditCategoryDescriptorId) ); -ALTER TABLE edfi.GraduationPlanCreditsByCreditCategory ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GraduationPlanCreditsByCreditCategory ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GraduationPlanCreditsBySubject -- CREATE TABLE edfi.GraduationPlanCreditsBySubject ( @@ -2110,7 +2110,7 @@ CREATE TABLE edfi.GraduationPlanCreditsBySubject ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GraduationPlanCreditsBySubject_PK PRIMARY KEY (EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear, AcademicSubjectDescriptorId) ); -ALTER TABLE edfi.GraduationPlanCreditsBySubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GraduationPlanCreditsBySubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GraduationPlanRequiredAssessment -- CREATE TABLE edfi.GraduationPlanRequiredAssessment ( @@ -2122,7 +2122,7 @@ CREATE TABLE edfi.GraduationPlanRequiredAssessment ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GraduationPlanRequiredAssessment_PK PRIMARY KEY (EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear, AssessmentIdentifier, Namespace) ); -ALTER TABLE edfi.GraduationPlanRequiredAssessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GraduationPlanRequiredAssessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GraduationPlanRequiredAssessmentPerformanceLevel -- CREATE TABLE edfi.GraduationPlanRequiredAssessmentPerformanceLevel ( @@ -2140,7 +2140,7 @@ CREATE TABLE edfi.GraduationPlanRequiredAssessmentPerformanceLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GraduationPlanRequiredAssessmentPerformanceLevel_PK PRIMARY KEY (EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear, AssessmentIdentifier, Namespace) ); -ALTER TABLE edfi.GraduationPlanRequiredAssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GraduationPlanRequiredAssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GraduationPlanRequiredAssessmentScore -- CREATE TABLE edfi.GraduationPlanRequiredAssessmentScore ( @@ -2156,7 +2156,7 @@ CREATE TABLE edfi.GraduationPlanRequiredAssessmentScore ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT GraduationPlanRequiredAssessmentScore_PK PRIMARY KEY (EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear, AssessmentIdentifier, Namespace, AssessmentReportingMethodDescriptorId) ); -ALTER TABLE edfi.GraduationPlanRequiredAssessmentScore ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.GraduationPlanRequiredAssessmentScore ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.GraduationPlanTypeDescriptor -- CREATE TABLE edfi.GraduationPlanTypeDescriptor ( @@ -2259,9 +2259,9 @@ CREATE TABLE edfi.Intervention ( Id UUID NOT NULL, CONSTRAINT Intervention_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode) ); -ALTER TABLE edfi.Intervention ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Intervention ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Intervention ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Intervention ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Intervention ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionAppropriateGradeLevel -- CREATE TABLE edfi.InterventionAppropriateGradeLevel ( @@ -2271,7 +2271,7 @@ CREATE TABLE edfi.InterventionAppropriateGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionAppropriateGradeLevel_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, GradeLevelDescriptorId) ); -ALTER TABLE edfi.InterventionAppropriateGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionAppropriateGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionAppropriateSex -- CREATE TABLE edfi.InterventionAppropriateSex ( @@ -2281,7 +2281,7 @@ CREATE TABLE edfi.InterventionAppropriateSex ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionAppropriateSex_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, SexDescriptorId) ); -ALTER TABLE edfi.InterventionAppropriateSex ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionAppropriateSex ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionClassDescriptor -- CREATE TABLE edfi.InterventionClassDescriptor ( @@ -2297,7 +2297,7 @@ CREATE TABLE edfi.InterventionDiagnosis ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionDiagnosis_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, DiagnosisDescriptorId) ); -ALTER TABLE edfi.InterventionDiagnosis ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionDiagnosis ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionEducationContent -- CREATE TABLE edfi.InterventionEducationContent ( @@ -2307,7 +2307,7 @@ CREATE TABLE edfi.InterventionEducationContent ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionEducationContent_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, ContentIdentifier) ); -ALTER TABLE edfi.InterventionEducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionEducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionEffectivenessRatingDescriptor -- CREATE TABLE edfi.InterventionEffectivenessRatingDescriptor ( @@ -2324,7 +2324,7 @@ CREATE TABLE edfi.InterventionInterventionPrescription ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionInterventionPrescription_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, InterventionPrescriptionEducationOrganizationId, InterventionPrescriptionIdentificationCode) ); -ALTER TABLE edfi.InterventionInterventionPrescription ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionInterventionPrescription ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionLearningResourceMetadataURI -- CREATE TABLE edfi.InterventionLearningResourceMetadataURI ( @@ -2334,7 +2334,7 @@ CREATE TABLE edfi.InterventionLearningResourceMetadataURI ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionLearningResourceMetadataURI_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, LearningResourceMetadataURI) ); -ALTER TABLE edfi.InterventionLearningResourceMetadataURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionLearningResourceMetadataURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionMeetingTime -- CREATE TABLE edfi.InterventionMeetingTime ( @@ -2345,7 +2345,7 @@ CREATE TABLE edfi.InterventionMeetingTime ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionMeetingTime_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, EndTime, StartTime) ); -ALTER TABLE edfi.InterventionMeetingTime ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionMeetingTime ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionPopulationServed -- CREATE TABLE edfi.InterventionPopulationServed ( @@ -2355,7 +2355,7 @@ CREATE TABLE edfi.InterventionPopulationServed ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionPopulationServed_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, PopulationServedDescriptorId) ); -ALTER TABLE edfi.InterventionPopulationServed ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPopulationServed ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionPrescription -- CREATE TABLE edfi.InterventionPrescription ( @@ -2372,9 +2372,9 @@ CREATE TABLE edfi.InterventionPrescription ( Id UUID NOT NULL, CONSTRAINT InterventionPrescription_PK PRIMARY KEY (EducationOrganizationId, InterventionPrescriptionIdentificationCode) ); -ALTER TABLE edfi.InterventionPrescription ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPrescription ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.InterventionPrescription ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.InterventionPrescription ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPrescription ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionPrescriptionAppropriateGradeLevel -- CREATE TABLE edfi.InterventionPrescriptionAppropriateGradeLevel ( @@ -2384,7 +2384,7 @@ CREATE TABLE edfi.InterventionPrescriptionAppropriateGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionPrescriptionAppropriateGradeLevel_PK PRIMARY KEY (EducationOrganizationId, InterventionPrescriptionIdentificationCode, GradeLevelDescriptorId) ); -ALTER TABLE edfi.InterventionPrescriptionAppropriateGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPrescriptionAppropriateGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionPrescriptionAppropriateSex -- CREATE TABLE edfi.InterventionPrescriptionAppropriateSex ( @@ -2394,7 +2394,7 @@ CREATE TABLE edfi.InterventionPrescriptionAppropriateSex ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionPrescriptionAppropriateSex_PK PRIMARY KEY (EducationOrganizationId, InterventionPrescriptionIdentificationCode, SexDescriptorId) ); -ALTER TABLE edfi.InterventionPrescriptionAppropriateSex ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPrescriptionAppropriateSex ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionPrescriptionDiagnosis -- CREATE TABLE edfi.InterventionPrescriptionDiagnosis ( @@ -2404,7 +2404,7 @@ CREATE TABLE edfi.InterventionPrescriptionDiagnosis ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionPrescriptionDiagnosis_PK PRIMARY KEY (EducationOrganizationId, InterventionPrescriptionIdentificationCode, DiagnosisDescriptorId) ); -ALTER TABLE edfi.InterventionPrescriptionDiagnosis ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPrescriptionDiagnosis ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionPrescriptionEducationContent -- CREATE TABLE edfi.InterventionPrescriptionEducationContent ( @@ -2414,7 +2414,7 @@ CREATE TABLE edfi.InterventionPrescriptionEducationContent ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionPrescriptionEducationContent_PK PRIMARY KEY (EducationOrganizationId, InterventionPrescriptionIdentificationCode, ContentIdentifier) ); -ALTER TABLE edfi.InterventionPrescriptionEducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPrescriptionEducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionPrescriptionLearningResourceMetadataURI -- CREATE TABLE edfi.InterventionPrescriptionLearningResourceMetadataURI ( @@ -2424,7 +2424,7 @@ CREATE TABLE edfi.InterventionPrescriptionLearningResourceMetadataURI ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionPrescriptionLearningResourceMetadataURI_PK PRIMARY KEY (EducationOrganizationId, InterventionPrescriptionIdentificationCode, LearningResourceMetadataURI) ); -ALTER TABLE edfi.InterventionPrescriptionLearningResourceMetadataURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPrescriptionLearningResourceMetadataURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionPrescriptionPopulationServed -- CREATE TABLE edfi.InterventionPrescriptionPopulationServed ( @@ -2434,7 +2434,7 @@ CREATE TABLE edfi.InterventionPrescriptionPopulationServed ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionPrescriptionPopulationServed_PK PRIMARY KEY (EducationOrganizationId, InterventionPrescriptionIdentificationCode, PopulationServedDescriptorId) ); -ALTER TABLE edfi.InterventionPrescriptionPopulationServed ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPrescriptionPopulationServed ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionPrescriptionURI -- CREATE TABLE edfi.InterventionPrescriptionURI ( @@ -2444,7 +2444,7 @@ CREATE TABLE edfi.InterventionPrescriptionURI ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionPrescriptionURI_PK PRIMARY KEY (EducationOrganizationId, InterventionPrescriptionIdentificationCode, URI) ); -ALTER TABLE edfi.InterventionPrescriptionURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionPrescriptionURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStaff -- CREATE TABLE edfi.InterventionStaff ( @@ -2454,7 +2454,7 @@ CREATE TABLE edfi.InterventionStaff ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionStaff_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, StaffUSI) ); -ALTER TABLE edfi.InterventionStaff ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStaff ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStudy -- CREATE TABLE edfi.InterventionStudy ( @@ -2471,9 +2471,9 @@ CREATE TABLE edfi.InterventionStudy ( Id UUID NOT NULL, CONSTRAINT InterventionStudy_PK PRIMARY KEY (EducationOrganizationId, InterventionStudyIdentificationCode) ); -ALTER TABLE edfi.InterventionStudy ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudy ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.InterventionStudy ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.InterventionStudy ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudy ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStudyAppropriateGradeLevel -- CREATE TABLE edfi.InterventionStudyAppropriateGradeLevel ( @@ -2483,7 +2483,7 @@ CREATE TABLE edfi.InterventionStudyAppropriateGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionStudyAppropriateGradeLevel_PK PRIMARY KEY (EducationOrganizationId, InterventionStudyIdentificationCode, GradeLevelDescriptorId) ); -ALTER TABLE edfi.InterventionStudyAppropriateGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudyAppropriateGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStudyAppropriateSex -- CREATE TABLE edfi.InterventionStudyAppropriateSex ( @@ -2493,7 +2493,7 @@ CREATE TABLE edfi.InterventionStudyAppropriateSex ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionStudyAppropriateSex_PK PRIMARY KEY (EducationOrganizationId, InterventionStudyIdentificationCode, SexDescriptorId) ); -ALTER TABLE edfi.InterventionStudyAppropriateSex ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudyAppropriateSex ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStudyEducationContent -- CREATE TABLE edfi.InterventionStudyEducationContent ( @@ -2503,7 +2503,7 @@ CREATE TABLE edfi.InterventionStudyEducationContent ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionStudyEducationContent_PK PRIMARY KEY (EducationOrganizationId, InterventionStudyIdentificationCode, ContentIdentifier) ); -ALTER TABLE edfi.InterventionStudyEducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudyEducationContent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStudyInterventionEffectiveness -- CREATE TABLE edfi.InterventionStudyInterventionEffectiveness ( @@ -2517,7 +2517,7 @@ CREATE TABLE edfi.InterventionStudyInterventionEffectiveness ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionStudyInterventionEffectiveness_PK PRIMARY KEY (EducationOrganizationId, InterventionStudyIdentificationCode, DiagnosisDescriptorId, GradeLevelDescriptorId, PopulationServedDescriptorId) ); -ALTER TABLE edfi.InterventionStudyInterventionEffectiveness ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudyInterventionEffectiveness ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStudyLearningResourceMetadataURI -- CREATE TABLE edfi.InterventionStudyLearningResourceMetadataURI ( @@ -2527,7 +2527,7 @@ CREATE TABLE edfi.InterventionStudyLearningResourceMetadataURI ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionStudyLearningResourceMetadataURI_PK PRIMARY KEY (EducationOrganizationId, InterventionStudyIdentificationCode, LearningResourceMetadataURI) ); -ALTER TABLE edfi.InterventionStudyLearningResourceMetadataURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudyLearningResourceMetadataURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStudyPopulationServed -- CREATE TABLE edfi.InterventionStudyPopulationServed ( @@ -2537,7 +2537,7 @@ CREATE TABLE edfi.InterventionStudyPopulationServed ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionStudyPopulationServed_PK PRIMARY KEY (EducationOrganizationId, InterventionStudyIdentificationCode, PopulationServedDescriptorId) ); -ALTER TABLE edfi.InterventionStudyPopulationServed ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudyPopulationServed ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStudyStateAbbreviation -- CREATE TABLE edfi.InterventionStudyStateAbbreviation ( @@ -2547,7 +2547,7 @@ CREATE TABLE edfi.InterventionStudyStateAbbreviation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionStudyStateAbbreviation_PK PRIMARY KEY (EducationOrganizationId, InterventionStudyIdentificationCode, StateAbbreviationDescriptorId) ); -ALTER TABLE edfi.InterventionStudyStateAbbreviation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudyStateAbbreviation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionStudyURI -- CREATE TABLE edfi.InterventionStudyURI ( @@ -2557,7 +2557,7 @@ CREATE TABLE edfi.InterventionStudyURI ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionStudyURI_PK PRIMARY KEY (EducationOrganizationId, InterventionStudyIdentificationCode, URI) ); -ALTER TABLE edfi.InterventionStudyURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionStudyURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.InterventionURI -- CREATE TABLE edfi.InterventionURI ( @@ -2567,7 +2567,7 @@ CREATE TABLE edfi.InterventionURI ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT InterventionURI_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, URI) ); -ALTER TABLE edfi.InterventionURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.InterventionURI ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LanguageDescriptor -- CREATE TABLE edfi.LanguageDescriptor ( @@ -2603,9 +2603,9 @@ CREATE TABLE edfi.LearningObjective ( Id UUID NOT NULL, CONSTRAINT LearningObjective_PK PRIMARY KEY (LearningObjectiveId, Namespace) ); -ALTER TABLE edfi.LearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.LearningObjective ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.LearningObjective ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningObjective ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningObjectiveAcademicSubject -- CREATE TABLE edfi.LearningObjectiveAcademicSubject ( @@ -2615,7 +2615,7 @@ CREATE TABLE edfi.LearningObjectiveAcademicSubject ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningObjectiveAcademicSubject_PK PRIMARY KEY (LearningObjectiveId, Namespace, AcademicSubjectDescriptorId) ); -ALTER TABLE edfi.LearningObjectiveAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningObjectiveAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningObjectiveContentStandard -- CREATE TABLE edfi.LearningObjectiveContentStandard ( @@ -2633,7 +2633,7 @@ CREATE TABLE edfi.LearningObjectiveContentStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningObjectiveContentStandard_PK PRIMARY KEY (LearningObjectiveId, Namespace) ); -ALTER TABLE edfi.LearningObjectiveContentStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningObjectiveContentStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningObjectiveContentStandardAuthor -- CREATE TABLE edfi.LearningObjectiveContentStandardAuthor ( @@ -2643,7 +2643,7 @@ CREATE TABLE edfi.LearningObjectiveContentStandardAuthor ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningObjectiveContentStandardAuthor_PK PRIMARY KEY (LearningObjectiveId, Namespace, Author) ); -ALTER TABLE edfi.LearningObjectiveContentStandardAuthor ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningObjectiveContentStandardAuthor ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningObjectiveGradeLevel -- CREATE TABLE edfi.LearningObjectiveGradeLevel ( @@ -2653,7 +2653,7 @@ CREATE TABLE edfi.LearningObjectiveGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningObjectiveGradeLevel_PK PRIMARY KEY (LearningObjectiveId, Namespace, GradeLevelDescriptorId) ); -ALTER TABLE edfi.LearningObjectiveGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningObjectiveGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningObjectiveLearningStandard -- CREATE TABLE edfi.LearningObjectiveLearningStandard ( @@ -2663,7 +2663,7 @@ CREATE TABLE edfi.LearningObjectiveLearningStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningObjectiveLearningStandard_PK PRIMARY KEY (LearningObjectiveId, Namespace, LearningStandardId) ); -ALTER TABLE edfi.LearningObjectiveLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningObjectiveLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningStandard -- CREATE TABLE edfi.LearningStandard ( @@ -2683,9 +2683,9 @@ CREATE TABLE edfi.LearningStandard ( Id UUID NOT NULL, CONSTRAINT LearningStandard_PK PRIMARY KEY (LearningStandardId) ); -ALTER TABLE edfi.LearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.LearningStandard ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.LearningStandard ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandard ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningStandardAcademicSubject -- CREATE TABLE edfi.LearningStandardAcademicSubject ( @@ -2694,7 +2694,7 @@ CREATE TABLE edfi.LearningStandardAcademicSubject ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningStandardAcademicSubject_PK PRIMARY KEY (LearningStandardId, AcademicSubjectDescriptorId) ); -ALTER TABLE edfi.LearningStandardAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandardAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningStandardCategoryDescriptor -- CREATE TABLE edfi.LearningStandardCategoryDescriptor ( @@ -2717,7 +2717,7 @@ CREATE TABLE edfi.LearningStandardContentStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningStandardContentStandard_PK PRIMARY KEY (LearningStandardId) ); -ALTER TABLE edfi.LearningStandardContentStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandardContentStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningStandardContentStandardAuthor -- CREATE TABLE edfi.LearningStandardContentStandardAuthor ( @@ -2726,7 +2726,7 @@ CREATE TABLE edfi.LearningStandardContentStandardAuthor ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningStandardContentStandardAuthor_PK PRIMARY KEY (LearningStandardId, Author) ); -ALTER TABLE edfi.LearningStandardContentStandardAuthor ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandardContentStandardAuthor ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningStandardEquivalenceAssociation -- CREATE TABLE edfi.LearningStandardEquivalenceAssociation ( @@ -2742,9 +2742,9 @@ CREATE TABLE edfi.LearningStandardEquivalenceAssociation ( Id UUID NOT NULL, CONSTRAINT LearningStandardEquivalenceAssociation_PK PRIMARY KEY (Namespace, SourceLearningStandardId, TargetLearningStandardId) ); -ALTER TABLE edfi.LearningStandardEquivalenceAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandardEquivalenceAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.LearningStandardEquivalenceAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.LearningStandardEquivalenceAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandardEquivalenceAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningStandardEquivalenceStrengthDescriptor -- CREATE TABLE edfi.LearningStandardEquivalenceStrengthDescriptor ( @@ -2759,7 +2759,7 @@ CREATE TABLE edfi.LearningStandardGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningStandardGradeLevel_PK PRIMARY KEY (LearningStandardId, GradeLevelDescriptorId) ); -ALTER TABLE edfi.LearningStandardGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandardGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningStandardIdentificationCode -- CREATE TABLE edfi.LearningStandardIdentificationCode ( @@ -2769,7 +2769,7 @@ CREATE TABLE edfi.LearningStandardIdentificationCode ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningStandardIdentificationCode_PK PRIMARY KEY (LearningStandardId, ContentStandardName, IdentificationCode) ); -ALTER TABLE edfi.LearningStandardIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandardIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningStandardPrerequisiteLearningStandard -- CREATE TABLE edfi.LearningStandardPrerequisiteLearningStandard ( @@ -2778,7 +2778,7 @@ CREATE TABLE edfi.LearningStandardPrerequisiteLearningStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LearningStandardPrerequisiteLearningStandard_PK PRIMARY KEY (LearningStandardId, PrerequisiteLearningStandardId) ); -ALTER TABLE edfi.LearningStandardPrerequisiteLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LearningStandardPrerequisiteLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LearningStandardScopeDescriptor -- CREATE TABLE edfi.LearningStandardScopeDescriptor ( @@ -2824,9 +2824,9 @@ CREATE TABLE edfi.LocalAccount ( Id UUID NOT NULL, CONSTRAINT LocalAccount_PK PRIMARY KEY (AccountIdentifier, EducationOrganizationId, FiscalYear) ); -ALTER TABLE edfi.LocalAccount ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalAccount ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.LocalAccount ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.LocalAccount ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalAccount ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LocalAccountReportingTag -- CREATE TABLE edfi.LocalAccountReportingTag ( @@ -2838,7 +2838,7 @@ CREATE TABLE edfi.LocalAccountReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LocalAccountReportingTag_PK PRIMARY KEY (AccountIdentifier, EducationOrganizationId, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.LocalAccountReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalAccountReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LocalActual -- CREATE TABLE edfi.LocalActual ( @@ -2854,9 +2854,9 @@ CREATE TABLE edfi.LocalActual ( Id UUID NOT NULL, CONSTRAINT LocalActual_PK PRIMARY KEY (AccountIdentifier, AsOfDate, EducationOrganizationId, FiscalYear) ); -ALTER TABLE edfi.LocalActual ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalActual ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.LocalActual ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.LocalActual ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalActual ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LocalBudget -- CREATE TABLE edfi.LocalBudget ( @@ -2872,9 +2872,9 @@ CREATE TABLE edfi.LocalBudget ( Id UUID NOT NULL, CONSTRAINT LocalBudget_PK PRIMARY KEY (AccountIdentifier, AsOfDate, EducationOrganizationId, FiscalYear) ); -ALTER TABLE edfi.LocalBudget ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalBudget ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.LocalBudget ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.LocalBudget ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalBudget ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LocalContractedStaff -- CREATE TABLE edfi.LocalContractedStaff ( @@ -2891,9 +2891,9 @@ CREATE TABLE edfi.LocalContractedStaff ( Id UUID NOT NULL, CONSTRAINT LocalContractedStaff_PK PRIMARY KEY (AccountIdentifier, AsOfDate, EducationOrganizationId, FiscalYear, StaffUSI) ); -ALTER TABLE edfi.LocalContractedStaff ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalContractedStaff ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.LocalContractedStaff ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.LocalContractedStaff ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalContractedStaff ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LocaleDescriptor -- CREATE TABLE edfi.LocaleDescriptor ( @@ -2921,7 +2921,7 @@ CREATE TABLE edfi.LocalEducationAgencyAccountability ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LocalEducationAgencyAccountability_PK PRIMARY KEY (LocalEducationAgencyId, SchoolYear) ); -ALTER TABLE edfi.LocalEducationAgencyAccountability ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalEducationAgencyAccountability ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LocalEducationAgencyCategoryDescriptor -- CREATE TABLE edfi.LocalEducationAgencyCategoryDescriptor ( @@ -2944,7 +2944,7 @@ CREATE TABLE edfi.LocalEducationAgencyFederalFunds ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT LocalEducationAgencyFederalFunds_PK PRIMARY KEY (LocalEducationAgencyId, FiscalYear) ); -ALTER TABLE edfi.LocalEducationAgencyFederalFunds ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalEducationAgencyFederalFunds ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LocalEncumbrance -- CREATE TABLE edfi.LocalEncumbrance ( @@ -2960,9 +2960,9 @@ CREATE TABLE edfi.LocalEncumbrance ( Id UUID NOT NULL, CONSTRAINT LocalEncumbrance_PK PRIMARY KEY (AccountIdentifier, AsOfDate, EducationOrganizationId, FiscalYear) ); -ALTER TABLE edfi.LocalEncumbrance ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalEncumbrance ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.LocalEncumbrance ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.LocalEncumbrance ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalEncumbrance ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.LocalPayroll -- CREATE TABLE edfi.LocalPayroll ( @@ -2979,9 +2979,9 @@ CREATE TABLE edfi.LocalPayroll ( Id UUID NOT NULL, CONSTRAINT LocalPayroll_PK PRIMARY KEY (AccountIdentifier, AsOfDate, EducationOrganizationId, FiscalYear, StaffUSI) ); -ALTER TABLE edfi.LocalPayroll ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalPayroll ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.LocalPayroll ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.LocalPayroll ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.LocalPayroll ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.Location -- CREATE TABLE edfi.Location ( @@ -2995,9 +2995,9 @@ CREATE TABLE edfi.Location ( Id UUID NOT NULL, CONSTRAINT Location_PK PRIMARY KEY (ClassroomIdentificationCode, SchoolId) ); -ALTER TABLE edfi.Location ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Location ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Location ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Location ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Location ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.MagnetSpecialProgramEmphasisSchoolDescriptor -- CREATE TABLE edfi.MagnetSpecialProgramEmphasisSchoolDescriptor ( @@ -3064,9 +3064,9 @@ CREATE TABLE edfi.ObjectDimension ( Id UUID NOT NULL, CONSTRAINT ObjectDimension_PK PRIMARY KEY (Code, FiscalYear) ); -ALTER TABLE edfi.ObjectDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ObjectDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.ObjectDimension ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.ObjectDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ObjectDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ObjectDimensionReportingTag -- CREATE TABLE edfi.ObjectDimensionReportingTag ( @@ -3076,7 +3076,7 @@ CREATE TABLE edfi.ObjectDimensionReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ObjectDimensionReportingTag_PK PRIMARY KEY (Code, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.ObjectDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ObjectDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ObjectiveAssessment -- CREATE TABLE edfi.ObjectiveAssessment ( @@ -3095,9 +3095,9 @@ CREATE TABLE edfi.ObjectiveAssessment ( Id UUID NOT NULL, CONSTRAINT ObjectiveAssessment_PK PRIMARY KEY (AssessmentIdentifier, IdentificationCode, Namespace) ); -ALTER TABLE edfi.ObjectiveAssessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ObjectiveAssessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.ObjectiveAssessment ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.ObjectiveAssessment ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ObjectiveAssessment ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ObjectiveAssessmentAssessmentItem -- CREATE TABLE edfi.ObjectiveAssessmentAssessmentItem ( @@ -3108,7 +3108,7 @@ CREATE TABLE edfi.ObjectiveAssessmentAssessmentItem ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ObjectiveAssessmentAssessmentItem_PK PRIMARY KEY (AssessmentIdentifier, IdentificationCode, Namespace, AssessmentItemIdentificationCode) ); -ALTER TABLE edfi.ObjectiveAssessmentAssessmentItem ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ObjectiveAssessmentAssessmentItem ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ObjectiveAssessmentLearningStandard -- CREATE TABLE edfi.ObjectiveAssessmentLearningStandard ( @@ -3119,7 +3119,7 @@ CREATE TABLE edfi.ObjectiveAssessmentLearningStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ObjectiveAssessmentLearningStandard_PK PRIMARY KEY (AssessmentIdentifier, IdentificationCode, Namespace, LearningStandardId) ); -ALTER TABLE edfi.ObjectiveAssessmentLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ObjectiveAssessmentLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ObjectiveAssessmentPerformanceLevel -- CREATE TABLE edfi.ObjectiveAssessmentPerformanceLevel ( @@ -3135,7 +3135,7 @@ CREATE TABLE edfi.ObjectiveAssessmentPerformanceLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ObjectiveAssessmentPerformanceLevel_PK PRIMARY KEY (AssessmentIdentifier, IdentificationCode, Namespace, AssessmentReportingMethodDescriptorId, PerformanceLevelDescriptorId) ); -ALTER TABLE edfi.ObjectiveAssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ObjectiveAssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ObjectiveAssessmentScore -- CREATE TABLE edfi.ObjectiveAssessmentScore ( @@ -3149,7 +3149,7 @@ CREATE TABLE edfi.ObjectiveAssessmentScore ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ObjectiveAssessmentScore_PK PRIMARY KEY (AssessmentIdentifier, IdentificationCode, Namespace, AssessmentReportingMethodDescriptorId) ); -ALTER TABLE edfi.ObjectiveAssessmentScore ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ObjectiveAssessmentScore ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.OldEthnicityDescriptor -- CREATE TABLE edfi.OldEthnicityDescriptor ( @@ -3174,9 +3174,9 @@ CREATE TABLE edfi.OpenStaffPosition ( Id UUID NOT NULL, CONSTRAINT OpenStaffPosition_PK PRIMARY KEY (EducationOrganizationId, RequisitionNumber) ); -ALTER TABLE edfi.OpenStaffPosition ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.OpenStaffPosition ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.OpenStaffPosition ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.OpenStaffPosition ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.OpenStaffPosition ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.OpenStaffPositionAcademicSubject -- CREATE TABLE edfi.OpenStaffPositionAcademicSubject ( @@ -3186,7 +3186,7 @@ CREATE TABLE edfi.OpenStaffPositionAcademicSubject ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT OpenStaffPositionAcademicSubject_PK PRIMARY KEY (EducationOrganizationId, RequisitionNumber, AcademicSubjectDescriptorId) ); -ALTER TABLE edfi.OpenStaffPositionAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.OpenStaffPositionAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.OpenStaffPositionInstructionalGradeLevel -- CREATE TABLE edfi.OpenStaffPositionInstructionalGradeLevel ( @@ -3196,7 +3196,7 @@ CREATE TABLE edfi.OpenStaffPositionInstructionalGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT OpenStaffPositionInstructionalGradeLevel_PK PRIMARY KEY (EducationOrganizationId, RequisitionNumber, GradeLevelDescriptorId) ); -ALTER TABLE edfi.OpenStaffPositionInstructionalGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.OpenStaffPositionInstructionalGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.OperationalStatusDescriptor -- CREATE TABLE edfi.OperationalStatusDescriptor ( @@ -3215,9 +3215,9 @@ CREATE TABLE edfi.OperationalUnitDimension ( Id UUID NOT NULL, CONSTRAINT OperationalUnitDimension_PK PRIMARY KEY (Code, FiscalYear) ); -ALTER TABLE edfi.OperationalUnitDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.OperationalUnitDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.OperationalUnitDimension ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.OperationalUnitDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.OperationalUnitDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.OperationalUnitDimensionReportingTag -- CREATE TABLE edfi.OperationalUnitDimensionReportingTag ( @@ -3227,7 +3227,7 @@ CREATE TABLE edfi.OperationalUnitDimensionReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT OperationalUnitDimensionReportingTag_PK PRIMARY KEY (Code, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.OperationalUnitDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.OperationalUnitDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.OrganizationDepartment -- CREATE TABLE edfi.OrganizationDepartment ( @@ -3265,9 +3265,9 @@ CREATE TABLE edfi.Parent ( CONSTRAINT Parent_PK PRIMARY KEY (ParentUSI) ); CREATE UNIQUE INDEX Parent_UI_ParentUniqueId ON edfi.Parent (ParentUniqueId) INCLUDE (ParentUSI); -ALTER TABLE edfi.Parent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Parent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Parent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Parent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Parent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParentAddress -- CREATE TABLE edfi.ParentAddress ( @@ -3289,7 +3289,7 @@ CREATE TABLE edfi.ParentAddress ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ParentAddress_PK PRIMARY KEY (ParentUSI, AddressTypeDescriptorId, City, PostalCode, StateAbbreviationDescriptorId, StreetNumberName) ); -ALTER TABLE edfi.ParentAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ParentAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParentAddressPeriod -- CREATE TABLE edfi.ParentAddressPeriod ( @@ -3304,7 +3304,7 @@ CREATE TABLE edfi.ParentAddressPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ParentAddressPeriod_PK PRIMARY KEY (ParentUSI, AddressTypeDescriptorId, City, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, BeginDate) ); -ALTER TABLE edfi.ParentAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ParentAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParentElectronicMail -- CREATE TABLE edfi.ParentElectronicMail ( @@ -3316,7 +3316,7 @@ CREATE TABLE edfi.ParentElectronicMail ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ParentElectronicMail_PK PRIMARY KEY (ParentUSI, ElectronicMailAddress, ElectronicMailTypeDescriptorId) ); -ALTER TABLE edfi.ParentElectronicMail ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ParentElectronicMail ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParentInternationalAddress -- CREATE TABLE edfi.ParentInternationalAddress ( @@ -3334,7 +3334,7 @@ CREATE TABLE edfi.ParentInternationalAddress ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ParentInternationalAddress_PK PRIMARY KEY (ParentUSI, AddressTypeDescriptorId) ); -ALTER TABLE edfi.ParentInternationalAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ParentInternationalAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParentLanguage -- CREATE TABLE edfi.ParentLanguage ( @@ -3343,7 +3343,7 @@ CREATE TABLE edfi.ParentLanguage ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ParentLanguage_PK PRIMARY KEY (ParentUSI, LanguageDescriptorId) ); -ALTER TABLE edfi.ParentLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ParentLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParentLanguageUse -- CREATE TABLE edfi.ParentLanguageUse ( @@ -3353,7 +3353,7 @@ CREATE TABLE edfi.ParentLanguageUse ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ParentLanguageUse_PK PRIMARY KEY (ParentUSI, LanguageDescriptorId, LanguageUseDescriptorId) ); -ALTER TABLE edfi.ParentLanguageUse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ParentLanguageUse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParentOtherName -- CREATE TABLE edfi.ParentOtherName ( @@ -3367,7 +3367,7 @@ CREATE TABLE edfi.ParentOtherName ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ParentOtherName_PK PRIMARY KEY (ParentUSI, OtherNameTypeDescriptorId) ); -ALTER TABLE edfi.ParentOtherName ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ParentOtherName ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParentPersonalIdentificationDocument -- CREATE TABLE edfi.ParentPersonalIdentificationDocument ( @@ -3382,7 +3382,7 @@ CREATE TABLE edfi.ParentPersonalIdentificationDocument ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ParentPersonalIdentificationDocument_PK PRIMARY KEY (ParentUSI, IdentificationDocumentUseDescriptorId, PersonalInformationVerificationDescriptorId) ); -ALTER TABLE edfi.ParentPersonalIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ParentPersonalIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParentTelephone -- CREATE TABLE edfi.ParentTelephone ( @@ -3395,7 +3395,7 @@ CREATE TABLE edfi.ParentTelephone ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ParentTelephone_PK PRIMARY KEY (ParentUSI, TelephoneNumber, TelephoneNumberTypeDescriptorId) ); -ALTER TABLE edfi.ParentTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ParentTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ParticipationDescriptor -- CREATE TABLE edfi.ParticipationDescriptor ( @@ -3431,9 +3431,9 @@ CREATE TABLE edfi.Person ( Id UUID NOT NULL, CONSTRAINT Person_PK PRIMARY KEY (PersonId, SourceSystemDescriptorId) ); -ALTER TABLE edfi.Person ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Person ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Person ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Person ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Person ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.PersonalInformationVerificationDescriptor -- CREATE TABLE edfi.PersonalInformationVerificationDescriptor ( @@ -3471,9 +3471,9 @@ CREATE TABLE edfi.PostSecondaryEvent ( Id UUID NOT NULL, CONSTRAINT PostSecondaryEvent_PK PRIMARY KEY (EventDate, PostSecondaryEventCategoryDescriptorId, StudentUSI) ); -ALTER TABLE edfi.PostSecondaryEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.PostSecondaryEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.PostSecondaryEvent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.PostSecondaryEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.PostSecondaryEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.PostSecondaryEventCategoryDescriptor -- CREATE TABLE edfi.PostSecondaryEventCategoryDescriptor ( @@ -3502,7 +3502,7 @@ CREATE TABLE edfi.PostSecondaryInstitutionMediumOfInstruction ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT PostSecondaryInstitutionMediumOfInstruction_PK PRIMARY KEY (PostSecondaryInstitutionId, MediumOfInstructionDescriptorId) ); -ALTER TABLE edfi.PostSecondaryInstitutionMediumOfInstruction ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.PostSecondaryInstitutionMediumOfInstruction ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.PrimaryLearningDeviceAccessDescriptor -- CREATE TABLE edfi.PrimaryLearningDeviceAccessDescriptor ( @@ -3540,9 +3540,9 @@ CREATE TABLE edfi.Program ( Id UUID NOT NULL, CONSTRAINT Program_PK PRIMARY KEY (EducationOrganizationId, ProgramName, ProgramTypeDescriptorId) ); -ALTER TABLE edfi.Program ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Program ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Program ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Program ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Program ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProgramAssignmentDescriptor -- CREATE TABLE edfi.ProgramAssignmentDescriptor ( @@ -3559,7 +3559,7 @@ CREATE TABLE edfi.ProgramCharacteristic ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ProgramCharacteristic_PK PRIMARY KEY (EducationOrganizationId, ProgramName, ProgramTypeDescriptorId, ProgramCharacteristicDescriptorId) ); -ALTER TABLE edfi.ProgramCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProgramCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProgramCharacteristicDescriptor -- CREATE TABLE edfi.ProgramCharacteristicDescriptor ( @@ -3578,9 +3578,9 @@ CREATE TABLE edfi.ProgramDimension ( Id UUID NOT NULL, CONSTRAINT ProgramDimension_PK PRIMARY KEY (Code, FiscalYear) ); -ALTER TABLE edfi.ProgramDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProgramDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.ProgramDimension ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.ProgramDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProgramDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProgramDimensionReportingTag -- CREATE TABLE edfi.ProgramDimensionReportingTag ( @@ -3590,7 +3590,7 @@ CREATE TABLE edfi.ProgramDimensionReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ProgramDimensionReportingTag_PK PRIMARY KEY (Code, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.ProgramDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProgramDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProgramLearningObjective -- CREATE TABLE edfi.ProgramLearningObjective ( @@ -3602,7 +3602,7 @@ CREATE TABLE edfi.ProgramLearningObjective ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ProgramLearningObjective_PK PRIMARY KEY (EducationOrganizationId, ProgramName, ProgramTypeDescriptorId, LearningObjectiveId, Namespace) ); -ALTER TABLE edfi.ProgramLearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProgramLearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProgramLearningStandard -- CREATE TABLE edfi.ProgramLearningStandard ( @@ -3613,7 +3613,7 @@ CREATE TABLE edfi.ProgramLearningStandard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ProgramLearningStandard_PK PRIMARY KEY (EducationOrganizationId, ProgramName, ProgramTypeDescriptorId, LearningStandardId) ); -ALTER TABLE edfi.ProgramLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProgramLearningStandard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProgramService -- CREATE TABLE edfi.ProgramService ( @@ -3624,7 +3624,7 @@ CREATE TABLE edfi.ProgramService ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ProgramService_PK PRIMARY KEY (EducationOrganizationId, ProgramName, ProgramTypeDescriptorId, ServiceDescriptorId) ); -ALTER TABLE edfi.ProgramService ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProgramService ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProgramSponsor -- CREATE TABLE edfi.ProgramSponsor ( @@ -3635,7 +3635,7 @@ CREATE TABLE edfi.ProgramSponsor ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ProgramSponsor_PK PRIMARY KEY (EducationOrganizationId, ProgramName, ProgramTypeDescriptorId, ProgramSponsorDescriptorId) ); -ALTER TABLE edfi.ProgramSponsor ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProgramSponsor ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProgramSponsorDescriptor -- CREATE TABLE edfi.ProgramSponsorDescriptor ( @@ -3672,9 +3672,9 @@ CREATE TABLE edfi.ProjectDimension ( Id UUID NOT NULL, CONSTRAINT ProjectDimension_PK PRIMARY KEY (Code, FiscalYear) ); -ALTER TABLE edfi.ProjectDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProjectDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.ProjectDimension ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.ProjectDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProjectDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProjectDimensionReportingTag -- CREATE TABLE edfi.ProjectDimensionReportingTag ( @@ -3684,7 +3684,7 @@ CREATE TABLE edfi.ProjectDimensionReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ProjectDimensionReportingTag_PK PRIMARY KEY (Code, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.ProjectDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ProjectDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ProviderCategoryDescriptor -- CREATE TABLE edfi.ProviderCategoryDescriptor ( @@ -3771,9 +3771,9 @@ CREATE TABLE edfi.ReportCard ( Id UUID NOT NULL, CONSTRAINT ReportCard_PK PRIMARY KEY (EducationOrganizationId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, StudentUSI) ); -ALTER TABLE edfi.ReportCard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ReportCard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.ReportCard ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.ReportCard ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ReportCard ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ReportCardGrade -- CREATE TABLE edfi.ReportCardGrade ( @@ -3793,7 +3793,7 @@ CREATE TABLE edfi.ReportCardGrade ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ReportCardGrade_PK PRIMARY KEY (EducationOrganizationId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, StudentUSI, BeginDate, GradeTypeDescriptorId, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) ); -ALTER TABLE edfi.ReportCardGrade ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ReportCardGrade ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ReportCardGradePointAverage -- CREATE TABLE edfi.ReportCardGradePointAverage ( @@ -3810,7 +3810,7 @@ CREATE TABLE edfi.ReportCardGradePointAverage ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ReportCardGradePointAverage_PK PRIMARY KEY (EducationOrganizationId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, StudentUSI, GradePointAverageTypeDescriptorId) ); -ALTER TABLE edfi.ReportCardGradePointAverage ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ReportCardGradePointAverage ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ReportCardStudentCompetencyObjective -- CREATE TABLE edfi.ReportCardStudentCompetencyObjective ( @@ -3826,7 +3826,7 @@ CREATE TABLE edfi.ReportCardStudentCompetencyObjective ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ReportCardStudentCompetencyObjective_PK PRIMARY KEY (EducationOrganizationId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, StudentUSI, ObjectiveEducationOrganizationId, Objective, ObjectiveGradeLevelDescriptorId) ); -ALTER TABLE edfi.ReportCardStudentCompetencyObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ReportCardStudentCompetencyObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ReportCardStudentLearningObjective -- CREATE TABLE edfi.ReportCardStudentLearningObjective ( @@ -3841,7 +3841,7 @@ CREATE TABLE edfi.ReportCardStudentLearningObjective ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT ReportCardStudentLearningObjective_PK PRIMARY KEY (EducationOrganizationId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, StudentUSI, LearningObjectiveId, Namespace) ); -ALTER TABLE edfi.ReportCardStudentLearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.ReportCardStudentLearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.ReporterDescriptionDescriptor -- CREATE TABLE edfi.ReporterDescriptionDescriptor ( @@ -3886,9 +3886,9 @@ CREATE TABLE edfi.RestraintEvent ( Id UUID NOT NULL, CONSTRAINT RestraintEvent_PK PRIMARY KEY (RestraintEventIdentifier, SchoolId, StudentUSI) ); -ALTER TABLE edfi.RestraintEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.RestraintEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.RestraintEvent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.RestraintEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.RestraintEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.RestraintEventProgram -- CREATE TABLE edfi.RestraintEventProgram ( @@ -3901,7 +3901,7 @@ CREATE TABLE edfi.RestraintEventProgram ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT RestraintEventProgram_PK PRIMARY KEY (RestraintEventIdentifier, SchoolId, StudentUSI, EducationOrganizationId, ProgramName, ProgramTypeDescriptorId) ); -ALTER TABLE edfi.RestraintEventProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.RestraintEventProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.RestraintEventReason -- CREATE TABLE edfi.RestraintEventReason ( @@ -3912,7 +3912,7 @@ CREATE TABLE edfi.RestraintEventReason ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT RestraintEventReason_PK PRIMARY KEY (RestraintEventIdentifier, SchoolId, StudentUSI, RestraintEventReasonDescriptorId) ); -ALTER TABLE edfi.RestraintEventReason ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.RestraintEventReason ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.RestraintEventReasonDescriptor -- CREATE TABLE edfi.RestraintEventReasonDescriptor ( @@ -3954,7 +3954,7 @@ CREATE TABLE edfi.SchoolCategory ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SchoolCategory_PK PRIMARY KEY (SchoolId, SchoolCategoryDescriptorId) ); -ALTER TABLE edfi.SchoolCategory ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SchoolCategory ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SchoolCategoryDescriptor -- CREATE TABLE edfi.SchoolCategoryDescriptor ( @@ -3981,7 +3981,7 @@ CREATE TABLE edfi.SchoolGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SchoolGradeLevel_PK PRIMARY KEY (SchoolId, GradeLevelDescriptorId) ); -ALTER TABLE edfi.SchoolGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SchoolGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SchoolTypeDescriptor -- CREATE TABLE edfi.SchoolTypeDescriptor ( @@ -3999,9 +3999,9 @@ CREATE TABLE edfi.SchoolYearType ( Id UUID NOT NULL, CONSTRAINT SchoolYearType_PK PRIMARY KEY (SchoolYear) ); -ALTER TABLE edfi.SchoolYearType ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SchoolYearType ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SchoolYearType ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SchoolYearType ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SchoolYearType ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.Section -- CREATE TABLE edfi.Section ( @@ -4028,9 +4028,9 @@ CREATE TABLE edfi.Section ( Id UUID NOT NULL, CONSTRAINT Section_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) ); -ALTER TABLE edfi.Section ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Section ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Section ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Section ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Section ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SectionAttendanceTakenEvent -- CREATE TABLE edfi.SectionAttendanceTakenEvent ( @@ -4049,9 +4049,9 @@ CREATE TABLE edfi.SectionAttendanceTakenEvent ( Id UUID NOT NULL, CONSTRAINT SectionAttendanceTakenEvent_PK PRIMARY KEY (CalendarCode, Date, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) ); -ALTER TABLE edfi.SectionAttendanceTakenEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SectionAttendanceTakenEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SectionAttendanceTakenEvent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SectionAttendanceTakenEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SectionAttendanceTakenEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SectionCharacteristic -- CREATE TABLE edfi.SectionCharacteristic ( @@ -4064,7 +4064,7 @@ CREATE TABLE edfi.SectionCharacteristic ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SectionCharacteristic_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, SectionCharacteristicDescriptorId) ); -ALTER TABLE edfi.SectionCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SectionCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SectionCharacteristicDescriptor -- CREATE TABLE edfi.SectionCharacteristicDescriptor ( @@ -4083,7 +4083,7 @@ CREATE TABLE edfi.SectionClassPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SectionClassPeriod_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, ClassPeriodName) ); -ALTER TABLE edfi.SectionClassPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SectionClassPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SectionCourseLevelCharacteristic -- CREATE TABLE edfi.SectionCourseLevelCharacteristic ( @@ -4096,7 +4096,7 @@ CREATE TABLE edfi.SectionCourseLevelCharacteristic ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SectionCourseLevelCharacteristic_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, CourseLevelCharacteristicDescriptorId) ); -ALTER TABLE edfi.SectionCourseLevelCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SectionCourseLevelCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SectionOfferedGradeLevel -- CREATE TABLE edfi.SectionOfferedGradeLevel ( @@ -4109,7 +4109,7 @@ CREATE TABLE edfi.SectionOfferedGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SectionOfferedGradeLevel_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, GradeLevelDescriptorId) ); -ALTER TABLE edfi.SectionOfferedGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SectionOfferedGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SectionProgram -- CREATE TABLE edfi.SectionProgram ( @@ -4124,7 +4124,7 @@ CREATE TABLE edfi.SectionProgram ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SectionProgram_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, EducationOrganizationId, ProgramName, ProgramTypeDescriptorId) ); -ALTER TABLE edfi.SectionProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SectionProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SeparationDescriptor -- CREATE TABLE edfi.SeparationDescriptor ( @@ -4159,9 +4159,9 @@ CREATE TABLE edfi.Session ( Id UUID NOT NULL, CONSTRAINT Session_PK PRIMARY KEY (SchoolId, SchoolYear, SessionName) ); -ALTER TABLE edfi.Session ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Session ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Session ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Session ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Session ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SessionAcademicWeek -- CREATE TABLE edfi.SessionAcademicWeek ( @@ -4172,7 +4172,7 @@ CREATE TABLE edfi.SessionAcademicWeek ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SessionAcademicWeek_PK PRIMARY KEY (SchoolId, SchoolYear, SessionName, WeekIdentifier) ); -ALTER TABLE edfi.SessionAcademicWeek ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SessionAcademicWeek ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SessionGradingPeriod -- CREATE TABLE edfi.SessionGradingPeriod ( @@ -4184,7 +4184,7 @@ CREATE TABLE edfi.SessionGradingPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SessionGradingPeriod_PK PRIMARY KEY (SchoolId, SchoolYear, SessionName, GradingPeriodDescriptorId, PeriodSequence) ); -ALTER TABLE edfi.SessionGradingPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SessionGradingPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SexDescriptor -- CREATE TABLE edfi.SexDescriptor ( @@ -4203,9 +4203,9 @@ CREATE TABLE edfi.SourceDimension ( Id UUID NOT NULL, CONSTRAINT SourceDimension_PK PRIMARY KEY (Code, FiscalYear) ); -ALTER TABLE edfi.SourceDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SourceDimension ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SourceDimension ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SourceDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SourceDimension ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SourceDimensionReportingTag -- CREATE TABLE edfi.SourceDimensionReportingTag ( @@ -4215,7 +4215,7 @@ CREATE TABLE edfi.SourceDimensionReportingTag ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SourceDimensionReportingTag_PK PRIMARY KEY (Code, FiscalYear, ReportingTagDescriptorId) ); -ALTER TABLE edfi.SourceDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SourceDimensionReportingTag ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SourceSystemDescriptor -- CREATE TABLE edfi.SourceSystemDescriptor ( @@ -4264,9 +4264,9 @@ CREATE TABLE edfi.Staff ( CONSTRAINT Staff_PK PRIMARY KEY (StaffUSI) ); CREATE UNIQUE INDEX Staff_UI_StaffUniqueId ON edfi.Staff (StaffUniqueId) INCLUDE (StaffUSI); -ALTER TABLE edfi.Staff ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Staff ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Staff ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Staff ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Staff ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffAbsenceEvent -- CREATE TABLE edfi.StaffAbsenceEvent ( @@ -4281,9 +4281,9 @@ CREATE TABLE edfi.StaffAbsenceEvent ( Id UUID NOT NULL, CONSTRAINT StaffAbsenceEvent_PK PRIMARY KEY (AbsenceEventCategoryDescriptorId, EventDate, StaffUSI) ); -ALTER TABLE edfi.StaffAbsenceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffAbsenceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffAbsenceEvent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffAbsenceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffAbsenceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffAddress -- CREATE TABLE edfi.StaffAddress ( @@ -4305,7 +4305,7 @@ CREATE TABLE edfi.StaffAddress ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffAddress_PK PRIMARY KEY (StaffUSI, AddressTypeDescriptorId, City, PostalCode, StateAbbreviationDescriptorId, StreetNumberName) ); -ALTER TABLE edfi.StaffAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffAddressPeriod -- CREATE TABLE edfi.StaffAddressPeriod ( @@ -4320,7 +4320,7 @@ CREATE TABLE edfi.StaffAddressPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffAddressPeriod_PK PRIMARY KEY (StaffUSI, AddressTypeDescriptorId, City, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, BeginDate) ); -ALTER TABLE edfi.StaffAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffAncestryEthnicOrigin -- CREATE TABLE edfi.StaffAncestryEthnicOrigin ( @@ -4329,7 +4329,7 @@ CREATE TABLE edfi.StaffAncestryEthnicOrigin ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffAncestryEthnicOrigin_PK PRIMARY KEY (StaffUSI, AncestryEthnicOriginDescriptorId) ); -ALTER TABLE edfi.StaffAncestryEthnicOrigin ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffAncestryEthnicOrigin ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffClassificationDescriptor -- CREATE TABLE edfi.StaffClassificationDescriptor ( @@ -4351,9 +4351,9 @@ CREATE TABLE edfi.StaffCohortAssociation ( Id UUID NOT NULL, CONSTRAINT StaffCohortAssociation_PK PRIMARY KEY (BeginDate, CohortIdentifier, EducationOrganizationId, StaffUSI) ); -ALTER TABLE edfi.StaffCohortAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffCohortAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffCohortAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffCohortAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffCohortAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffCredential -- CREATE TABLE edfi.StaffCredential ( @@ -4363,7 +4363,7 @@ CREATE TABLE edfi.StaffCredential ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffCredential_PK PRIMARY KEY (StaffUSI, CredentialIdentifier, StateOfIssueStateAbbreviationDescriptorId) ); -ALTER TABLE edfi.StaffCredential ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffCredential ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffDisciplineIncidentAssociation -- CREATE TABLE edfi.StaffDisciplineIncidentAssociation ( @@ -4376,9 +4376,9 @@ CREATE TABLE edfi.StaffDisciplineIncidentAssociation ( Id UUID NOT NULL, CONSTRAINT StaffDisciplineIncidentAssociation_PK PRIMARY KEY (IncidentIdentifier, SchoolId, StaffUSI) ); -ALTER TABLE edfi.StaffDisciplineIncidentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffDisciplineIncidentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffDisciplineIncidentAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffDisciplineIncidentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffDisciplineIncidentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffDisciplineIncidentAssociationDisciplineIncidentPart_7fa4be -- CREATE TABLE edfi.StaffDisciplineIncidentAssociationDisciplineIncidentPart_7fa4be ( @@ -4389,7 +4389,7 @@ CREATE TABLE edfi.StaffDisciplineIncidentAssociationDisciplineIncidentPart_7fa4b CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffDisciplineIncidentAssociationDisciplineIncide_7fa4be_PK PRIMARY KEY (IncidentIdentifier, SchoolId, StaffUSI, DisciplineIncidentParticipationCodeDescriptorId) ); -ALTER TABLE edfi.StaffDisciplineIncidentAssociationDisciplineIncidentPart_7fa4be ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffDisciplineIncidentAssociationDisciplineIncidentPart_7fa4be ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffEducationOrganizationAssignmentAssociation -- CREATE TABLE edfi.StaffEducationOrganizationAssignmentAssociation ( @@ -4412,9 +4412,9 @@ CREATE TABLE edfi.StaffEducationOrganizationAssignmentAssociation ( Id UUID NOT NULL, CONSTRAINT StaffEducationOrganizationAssignmentAssociation_PK PRIMARY KEY (BeginDate, EducationOrganizationId, StaffClassificationDescriptorId, StaffUSI) ); -ALTER TABLE edfi.StaffEducationOrganizationAssignmentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffEducationOrganizationAssignmentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffEducationOrganizationAssignmentAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffEducationOrganizationAssignmentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffEducationOrganizationAssignmentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffEducationOrganizationContactAssociation -- CREATE TABLE edfi.StaffEducationOrganizationContactAssociation ( @@ -4429,9 +4429,9 @@ CREATE TABLE edfi.StaffEducationOrganizationContactAssociation ( Id UUID NOT NULL, CONSTRAINT StaffEducationOrganizationContactAssociation_PK PRIMARY KEY (ContactTitle, EducationOrganizationId, StaffUSI) ); -ALTER TABLE edfi.StaffEducationOrganizationContactAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffEducationOrganizationContactAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffEducationOrganizationContactAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffEducationOrganizationContactAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffEducationOrganizationContactAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffEducationOrganizationContactAssociationAddress -- CREATE TABLE edfi.StaffEducationOrganizationContactAssociationAddress ( @@ -4455,7 +4455,7 @@ CREATE TABLE edfi.StaffEducationOrganizationContactAssociationAddress ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffEducationOrganizationContactAssociationAddress_PK PRIMARY KEY (ContactTitle, EducationOrganizationId, StaffUSI) ); -ALTER TABLE edfi.StaffEducationOrganizationContactAssociationAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffEducationOrganizationContactAssociationAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffEducationOrganizationContactAssociationAddressPeriod -- CREATE TABLE edfi.StaffEducationOrganizationContactAssociationAddressPeriod ( @@ -4467,7 +4467,7 @@ CREATE TABLE edfi.StaffEducationOrganizationContactAssociationAddressPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffEducationOrganizationContactAssociationAddressPeriod_PK PRIMARY KEY (ContactTitle, EducationOrganizationId, StaffUSI, BeginDate) ); -ALTER TABLE edfi.StaffEducationOrganizationContactAssociationAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffEducationOrganizationContactAssociationAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffEducationOrganizationContactAssociationTelephone -- CREATE TABLE edfi.StaffEducationOrganizationContactAssociationTelephone ( @@ -4482,7 +4482,7 @@ CREATE TABLE edfi.StaffEducationOrganizationContactAssociationTelephone ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffEducationOrganizationContactAssociationTelephone_PK PRIMARY KEY (ContactTitle, EducationOrganizationId, StaffUSI, TelephoneNumber, TelephoneNumberTypeDescriptorId) ); -ALTER TABLE edfi.StaffEducationOrganizationContactAssociationTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffEducationOrganizationContactAssociationTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffEducationOrganizationEmploymentAssociation -- CREATE TABLE edfi.StaffEducationOrganizationEmploymentAssociation ( @@ -4505,9 +4505,9 @@ CREATE TABLE edfi.StaffEducationOrganizationEmploymentAssociation ( Id UUID NOT NULL, CONSTRAINT StaffEducationOrganizationEmploymentAssociation_PK PRIMARY KEY (EducationOrganizationId, EmploymentStatusDescriptorId, HireDate, StaffUSI) ); -ALTER TABLE edfi.StaffEducationOrganizationEmploymentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffEducationOrganizationEmploymentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffEducationOrganizationEmploymentAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffEducationOrganizationEmploymentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffEducationOrganizationEmploymentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffElectronicMail -- CREATE TABLE edfi.StaffElectronicMail ( @@ -4519,7 +4519,7 @@ CREATE TABLE edfi.StaffElectronicMail ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffElectronicMail_PK PRIMARY KEY (StaffUSI, ElectronicMailAddress, ElectronicMailTypeDescriptorId) ); -ALTER TABLE edfi.StaffElectronicMail ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffElectronicMail ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffIdentificationCode -- CREATE TABLE edfi.StaffIdentificationCode ( @@ -4530,7 +4530,7 @@ CREATE TABLE edfi.StaffIdentificationCode ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffIdentificationCode_PK PRIMARY KEY (StaffUSI, StaffIdentificationSystemDescriptorId) ); -ALTER TABLE edfi.StaffIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffIdentificationCode ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffIdentificationDocument -- CREATE TABLE edfi.StaffIdentificationDocument ( @@ -4545,7 +4545,7 @@ CREATE TABLE edfi.StaffIdentificationDocument ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffIdentificationDocument_PK PRIMARY KEY (StaffUSI, IdentificationDocumentUseDescriptorId, PersonalInformationVerificationDescriptorId) ); -ALTER TABLE edfi.StaffIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffIdentificationSystemDescriptor -- CREATE TABLE edfi.StaffIdentificationSystemDescriptor ( @@ -4569,7 +4569,7 @@ CREATE TABLE edfi.StaffInternationalAddress ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffInternationalAddress_PK PRIMARY KEY (StaffUSI, AddressTypeDescriptorId) ); -ALTER TABLE edfi.StaffInternationalAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffInternationalAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffLanguage -- CREATE TABLE edfi.StaffLanguage ( @@ -4578,7 +4578,7 @@ CREATE TABLE edfi.StaffLanguage ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffLanguage_PK PRIMARY KEY (StaffUSI, LanguageDescriptorId) ); -ALTER TABLE edfi.StaffLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffLanguageUse -- CREATE TABLE edfi.StaffLanguageUse ( @@ -4588,7 +4588,7 @@ CREATE TABLE edfi.StaffLanguageUse ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffLanguageUse_PK PRIMARY KEY (StaffUSI, LanguageDescriptorId, LanguageUseDescriptorId) ); -ALTER TABLE edfi.StaffLanguageUse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffLanguageUse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffLeave -- CREATE TABLE edfi.StaffLeave ( @@ -4604,9 +4604,9 @@ CREATE TABLE edfi.StaffLeave ( Id UUID NOT NULL, CONSTRAINT StaffLeave_PK PRIMARY KEY (BeginDate, StaffLeaveEventCategoryDescriptorId, StaffUSI) ); -ALTER TABLE edfi.StaffLeave ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffLeave ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffLeave ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffLeave ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffLeave ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffLeaveEventCategoryDescriptor -- CREATE TABLE edfi.StaffLeaveEventCategoryDescriptor ( @@ -4626,7 +4626,7 @@ CREATE TABLE edfi.StaffOtherName ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffOtherName_PK PRIMARY KEY (StaffUSI, OtherNameTypeDescriptorId) ); -ALTER TABLE edfi.StaffOtherName ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffOtherName ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffPersonalIdentificationDocument -- CREATE TABLE edfi.StaffPersonalIdentificationDocument ( @@ -4641,7 +4641,7 @@ CREATE TABLE edfi.StaffPersonalIdentificationDocument ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffPersonalIdentificationDocument_PK PRIMARY KEY (StaffUSI, IdentificationDocumentUseDescriptorId, PersonalInformationVerificationDescriptorId) ); -ALTER TABLE edfi.StaffPersonalIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffPersonalIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffProgramAssociation -- CREATE TABLE edfi.StaffProgramAssociation ( @@ -4658,9 +4658,9 @@ CREATE TABLE edfi.StaffProgramAssociation ( Id UUID NOT NULL, CONSTRAINT StaffProgramAssociation_PK PRIMARY KEY (BeginDate, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StaffUSI) ); -ALTER TABLE edfi.StaffProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffProgramAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffProgramAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffProgramAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffRace -- CREATE TABLE edfi.StaffRace ( @@ -4669,7 +4669,7 @@ CREATE TABLE edfi.StaffRace ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffRace_PK PRIMARY KEY (StaffUSI, RaceDescriptorId) ); -ALTER TABLE edfi.StaffRace ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffRace ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffRecognition -- CREATE TABLE edfi.StaffRecognition ( @@ -4690,7 +4690,7 @@ CREATE TABLE edfi.StaffRecognition ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffRecognition_PK PRIMARY KEY (StaffUSI, RecognitionTypeDescriptorId) ); -ALTER TABLE edfi.StaffRecognition ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffRecognition ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffSchoolAssociation -- CREATE TABLE edfi.StaffSchoolAssociation ( @@ -4705,9 +4705,9 @@ CREATE TABLE edfi.StaffSchoolAssociation ( Id UUID NOT NULL, CONSTRAINT StaffSchoolAssociation_PK PRIMARY KEY (ProgramAssignmentDescriptorId, SchoolId, StaffUSI) ); -ALTER TABLE edfi.StaffSchoolAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffSchoolAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffSchoolAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffSchoolAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffSchoolAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffSchoolAssociationAcademicSubject -- CREATE TABLE edfi.StaffSchoolAssociationAcademicSubject ( @@ -4718,7 +4718,7 @@ CREATE TABLE edfi.StaffSchoolAssociationAcademicSubject ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffSchoolAssociationAcademicSubject_PK PRIMARY KEY (ProgramAssignmentDescriptorId, SchoolId, StaffUSI, AcademicSubjectDescriptorId) ); -ALTER TABLE edfi.StaffSchoolAssociationAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffSchoolAssociationAcademicSubject ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffSchoolAssociationGradeLevel -- CREATE TABLE edfi.StaffSchoolAssociationGradeLevel ( @@ -4729,7 +4729,7 @@ CREATE TABLE edfi.StaffSchoolAssociationGradeLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffSchoolAssociationGradeLevel_PK PRIMARY KEY (ProgramAssignmentDescriptorId, SchoolId, StaffUSI, GradeLevelDescriptorId) ); -ALTER TABLE edfi.StaffSchoolAssociationGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffSchoolAssociationGradeLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffSectionAssociation -- CREATE TABLE edfi.StaffSectionAssociation ( @@ -4751,9 +4751,9 @@ CREATE TABLE edfi.StaffSectionAssociation ( Id UUID NOT NULL, CONSTRAINT StaffSectionAssociation_PK PRIMARY KEY (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StaffUSI) ); -ALTER TABLE edfi.StaffSectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffSectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StaffSectionAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StaffSectionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffSectionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffTelephone -- CREATE TABLE edfi.StaffTelephone ( @@ -4766,7 +4766,7 @@ CREATE TABLE edfi.StaffTelephone ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffTelephone_PK PRIMARY KEY (StaffUSI, TelephoneNumber, TelephoneNumberTypeDescriptorId) ); -ALTER TABLE edfi.StaffTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffTribalAffiliation -- CREATE TABLE edfi.StaffTribalAffiliation ( @@ -4775,7 +4775,7 @@ CREATE TABLE edfi.StaffTribalAffiliation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffTribalAffiliation_PK PRIMARY KEY (StaffUSI, TribalAffiliationDescriptorId) ); -ALTER TABLE edfi.StaffTribalAffiliation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffTribalAffiliation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StaffVisa -- CREATE TABLE edfi.StaffVisa ( @@ -4784,7 +4784,7 @@ CREATE TABLE edfi.StaffVisa ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StaffVisa_PK PRIMARY KEY (StaffUSI, VisaDescriptorId) ); -ALTER TABLE edfi.StaffVisa ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StaffVisa ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StateAbbreviationDescriptor -- CREATE TABLE edfi.StateAbbreviationDescriptor ( @@ -4806,7 +4806,7 @@ CREATE TABLE edfi.StateEducationAgencyAccountability ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StateEducationAgencyAccountability_PK PRIMARY KEY (StateEducationAgencyId, SchoolYear) ); -ALTER TABLE edfi.StateEducationAgencyAccountability ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StateEducationAgencyAccountability ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StateEducationAgencyFederalFunds -- CREATE TABLE edfi.StateEducationAgencyFederalFunds ( @@ -4816,7 +4816,7 @@ CREATE TABLE edfi.StateEducationAgencyFederalFunds ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StateEducationAgencyFederalFunds_PK PRIMARY KEY (StateEducationAgencyId, FiscalYear) ); -ALTER TABLE edfi.StateEducationAgencyFederalFunds ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StateEducationAgencyFederalFunds ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.Student -- CREATE TABLE edfi.Student ( @@ -4846,9 +4846,9 @@ CREATE TABLE edfi.Student ( CONSTRAINT Student_PK PRIMARY KEY (StudentUSI) ); CREATE UNIQUE INDEX Student_UI_StudentUniqueId ON edfi.Student (StudentUniqueId) INCLUDE (StudentUSI); -ALTER TABLE edfi.Student ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Student ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Student ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Student ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Student ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAcademicRecord -- CREATE TABLE edfi.StudentAcademicRecord ( @@ -4880,9 +4880,9 @@ CREATE TABLE edfi.StudentAcademicRecord ( Id UUID NOT NULL, CONSTRAINT StudentAcademicRecord_PK PRIMARY KEY (EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId) ); -ALTER TABLE edfi.StudentAcademicRecord ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAcademicRecord ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentAcademicRecord ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentAcademicRecord ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAcademicRecord ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAcademicRecordAcademicHonor -- CREATE TABLE edfi.StudentAcademicRecordAcademicHonor ( @@ -4906,7 +4906,7 @@ CREATE TABLE edfi.StudentAcademicRecordAcademicHonor ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAcademicRecordAcademicHonor_PK PRIMARY KEY (EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, AcademicHonorCategoryDescriptorId, HonorDescription) ); -ALTER TABLE edfi.StudentAcademicRecordAcademicHonor ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAcademicRecordAcademicHonor ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAcademicRecordClassRanking -- CREATE TABLE edfi.StudentAcademicRecordClassRanking ( @@ -4921,7 +4921,7 @@ CREATE TABLE edfi.StudentAcademicRecordClassRanking ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAcademicRecordClassRanking_PK PRIMARY KEY (EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId) ); -ALTER TABLE edfi.StudentAcademicRecordClassRanking ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAcademicRecordClassRanking ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAcademicRecordDiploma -- CREATE TABLE edfi.StudentAcademicRecordDiploma ( @@ -4947,7 +4947,7 @@ CREATE TABLE edfi.StudentAcademicRecordDiploma ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAcademicRecordDiploma_PK PRIMARY KEY (EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, DiplomaAwardDate, DiplomaTypeDescriptorId) ); -ALTER TABLE edfi.StudentAcademicRecordDiploma ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAcademicRecordDiploma ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAcademicRecordGradePointAverage -- CREATE TABLE edfi.StudentAcademicRecordGradePointAverage ( @@ -4962,7 +4962,7 @@ CREATE TABLE edfi.StudentAcademicRecordGradePointAverage ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAcademicRecordGradePointAverage_PK PRIMARY KEY (EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, GradePointAverageTypeDescriptorId) ); -ALTER TABLE edfi.StudentAcademicRecordGradePointAverage ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAcademicRecordGradePointAverage ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAcademicRecordRecognition -- CREATE TABLE edfi.StudentAcademicRecordRecognition ( @@ -4986,7 +4986,7 @@ CREATE TABLE edfi.StudentAcademicRecordRecognition ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAcademicRecordRecognition_PK PRIMARY KEY (EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, RecognitionTypeDescriptorId) ); -ALTER TABLE edfi.StudentAcademicRecordRecognition ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAcademicRecordRecognition ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAcademicRecordReportCard -- CREATE TABLE edfi.StudentAcademicRecordReportCard ( @@ -5001,7 +5001,7 @@ CREATE TABLE edfi.StudentAcademicRecordReportCard ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAcademicRecordReportCard_PK PRIMARY KEY (EducationOrganizationId, SchoolYear, StudentUSI, TermDescriptorId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear) ); -ALTER TABLE edfi.StudentAcademicRecordReportCard ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAcademicRecordReportCard ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessment -- CREATE TABLE edfi.StudentAssessment ( @@ -5030,9 +5030,9 @@ CREATE TABLE edfi.StudentAssessment ( Id UUID NOT NULL, CONSTRAINT StudentAssessment_PK PRIMARY KEY (AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI) ); -ALTER TABLE edfi.StudentAssessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentAssessment ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentAssessment ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessment ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessmentAccommodation -- CREATE TABLE edfi.StudentAssessmentAccommodation ( @@ -5044,7 +5044,7 @@ CREATE TABLE edfi.StudentAssessmentAccommodation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAssessmentAccommodation_PK PRIMARY KEY (AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI, AccommodationDescriptorId) ); -ALTER TABLE edfi.StudentAssessmentAccommodation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentAccommodation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessmentEducationOrganizationAssociation -- CREATE TABLE edfi.StudentAssessmentEducationOrganizationAssociation ( @@ -5061,9 +5061,9 @@ CREATE TABLE edfi.StudentAssessmentEducationOrganizationAssociation ( Id UUID NOT NULL, CONSTRAINT StudentAssessmentEducationOrganizationAssociation_PK PRIMARY KEY (AssessmentIdentifier, EducationOrganizationAssociationTypeDescriptorId, EducationOrganizationId, Namespace, StudentAssessmentIdentifier, StudentUSI) ); -ALTER TABLE edfi.StudentAssessmentEducationOrganizationAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentEducationOrganizationAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentAssessmentEducationOrganizationAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentAssessmentEducationOrganizationAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentEducationOrganizationAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessmentItem -- CREATE TABLE edfi.StudentAssessmentItem ( @@ -5082,7 +5082,7 @@ CREATE TABLE edfi.StudentAssessmentItem ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAssessmentItem_PK PRIMARY KEY (AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI, IdentificationCode) ); -ALTER TABLE edfi.StudentAssessmentItem ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentItem ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessmentPerformanceLevel -- CREATE TABLE edfi.StudentAssessmentPerformanceLevel ( @@ -5096,7 +5096,7 @@ CREATE TABLE edfi.StudentAssessmentPerformanceLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAssessmentPerformanceLevel_PK PRIMARY KEY (AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI, AssessmentReportingMethodDescriptorId, PerformanceLevelDescriptorId) ); -ALTER TABLE edfi.StudentAssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessmentPeriod -- CREATE TABLE edfi.StudentAssessmentPeriod ( @@ -5110,7 +5110,7 @@ CREATE TABLE edfi.StudentAssessmentPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAssessmentPeriod_PK PRIMARY KEY (AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI) ); -ALTER TABLE edfi.StudentAssessmentPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessmentScoreResult -- CREATE TABLE edfi.StudentAssessmentScoreResult ( @@ -5124,7 +5124,7 @@ CREATE TABLE edfi.StudentAssessmentScoreResult ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAssessmentScoreResult_PK PRIMARY KEY (AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI, AssessmentReportingMethodDescriptorId) ); -ALTER TABLE edfi.StudentAssessmentScoreResult ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentScoreResult ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessmentStudentObjectiveAssessment -- CREATE TABLE edfi.StudentAssessmentStudentObjectiveAssessment ( @@ -5139,7 +5139,7 @@ CREATE TABLE edfi.StudentAssessmentStudentObjectiveAssessment ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAssessmentStudentObjectiveAssessment_PK PRIMARY KEY (AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI, IdentificationCode) ); -ALTER TABLE edfi.StudentAssessmentStudentObjectiveAssessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentStudentObjectiveAssessment ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel -- CREATE TABLE edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( @@ -5154,7 +5154,7 @@ CREATE TABLE edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAssessmentStudentObjectiveAssessmentPerformanceLevel_PK PRIMARY KEY (AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI, IdentificationCode, AssessmentReportingMethodDescriptorId, PerformanceLevelDescriptorId) ); -ALTER TABLE edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult -- CREATE TABLE edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( @@ -5169,7 +5169,7 @@ CREATE TABLE edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentAssessmentStudentObjectiveAssessmentScoreResult_PK PRIMARY KEY (AssessmentIdentifier, Namespace, StudentAssessmentIdentifier, StudentUSI, IdentificationCode, AssessmentReportingMethodDescriptorId) ); -ALTER TABLE edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentCharacteristicDescriptor -- CREATE TABLE edfi.StudentCharacteristicDescriptor ( @@ -5190,9 +5190,9 @@ CREATE TABLE edfi.StudentCohortAssociation ( Id UUID NOT NULL, CONSTRAINT StudentCohortAssociation_PK PRIMARY KEY (BeginDate, CohortIdentifier, EducationOrganizationId, StudentUSI) ); -ALTER TABLE edfi.StudentCohortAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCohortAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentCohortAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentCohortAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCohortAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentCohortAssociationSection -- CREATE TABLE edfi.StudentCohortAssociationSection ( @@ -5208,7 +5208,7 @@ CREATE TABLE edfi.StudentCohortAssociationSection ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentCohortAssociationSection_PK PRIMARY KEY (BeginDate, CohortIdentifier, EducationOrganizationId, StudentUSI, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) ); -ALTER TABLE edfi.StudentCohortAssociationSection ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCohortAssociationSection ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentCompetencyObjective -- CREATE TABLE edfi.StudentCompetencyObjective ( @@ -5228,9 +5228,9 @@ CREATE TABLE edfi.StudentCompetencyObjective ( Id UUID NOT NULL, CONSTRAINT StudentCompetencyObjective_PK PRIMARY KEY (GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, ObjectiveEducationOrganizationId, Objective, ObjectiveGradeLevelDescriptorId, StudentUSI) ); -ALTER TABLE edfi.StudentCompetencyObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCompetencyObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentCompetencyObjective ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentCompetencyObjective ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCompetencyObjective ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentCompetencyObjectiveGeneralStudentProgramAssociation -- CREATE TABLE edfi.StudentCompetencyObjectiveGeneralStudentProgramAssociation ( @@ -5250,7 +5250,7 @@ CREATE TABLE edfi.StudentCompetencyObjectiveGeneralStudentProgramAssociation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentCompetencyObjectiveGeneralStudentProgramAssociation_PK PRIMARY KEY (GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, ObjectiveEducationOrganizationId, Objective, ObjectiveGradeLevelDescriptorId, StudentUSI, BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId) ); -ALTER TABLE edfi.StudentCompetencyObjectiveGeneralStudentProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCompetencyObjectiveGeneralStudentProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentCompetencyObjectiveStudentSectionAssociation -- CREATE TABLE edfi.StudentCompetencyObjectiveStudentSectionAssociation ( @@ -5271,7 +5271,7 @@ CREATE TABLE edfi.StudentCompetencyObjectiveStudentSectionAssociation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentCompetencyObjectiveStudentSectionAssociation_PK PRIMARY KEY (GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, ObjectiveEducationOrganizationId, Objective, ObjectiveGradeLevelDescriptorId, StudentUSI, BeginDate, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) ); -ALTER TABLE edfi.StudentCompetencyObjectiveStudentSectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCompetencyObjectiveStudentSectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentCTEProgramAssociation -- CREATE TABLE edfi.StudentCTEProgramAssociation ( @@ -5302,7 +5302,7 @@ CREATE TABLE edfi.StudentCTEProgramAssociationCTEProgram ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentCTEProgramAssociationCTEProgram_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, CareerPathwayDescriptorId) ); -ALTER TABLE edfi.StudentCTEProgramAssociationCTEProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCTEProgramAssociationCTEProgram ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentCTEProgramAssociationCTEProgramService -- CREATE TABLE edfi.StudentCTEProgramAssociationCTEProgramService ( @@ -5320,7 +5320,7 @@ CREATE TABLE edfi.StudentCTEProgramAssociationCTEProgramService ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentCTEProgramAssociationCTEProgramService_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, CTEProgramServiceDescriptorId) ); -ALTER TABLE edfi.StudentCTEProgramAssociationCTEProgramService ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCTEProgramAssociationCTEProgramService ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentCTEProgramAssociationService -- CREATE TABLE edfi.StudentCTEProgramAssociationService ( @@ -5337,7 +5337,7 @@ CREATE TABLE edfi.StudentCTEProgramAssociationService ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentCTEProgramAssociationService_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, ServiceDescriptorId) ); -ALTER TABLE edfi.StudentCTEProgramAssociationService ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentCTEProgramAssociationService ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentDisciplineIncidentAssociation -- CREATE TABLE edfi.StudentDisciplineIncidentAssociation ( @@ -5351,9 +5351,9 @@ CREATE TABLE edfi.StudentDisciplineIncidentAssociation ( Id UUID NOT NULL, CONSTRAINT StudentDisciplineIncidentAssociation_PK PRIMARY KEY (IncidentIdentifier, SchoolId, StudentUSI) ); -ALTER TABLE edfi.StudentDisciplineIncidentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentDisciplineIncidentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentDisciplineIncidentAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentDisciplineIncidentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentDisciplineIncidentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentDisciplineIncidentAssociationBehavior -- CREATE TABLE edfi.StudentDisciplineIncidentAssociationBehavior ( @@ -5365,7 +5365,7 @@ CREATE TABLE edfi.StudentDisciplineIncidentAssociationBehavior ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentDisciplineIncidentAssociationBehavior_PK PRIMARY KEY (IncidentIdentifier, SchoolId, StudentUSI, BehaviorDescriptorId) ); -ALTER TABLE edfi.StudentDisciplineIncidentAssociationBehavior ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentDisciplineIncidentAssociationBehavior ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentDisciplineIncidentBehaviorAssociation -- CREATE TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ( @@ -5380,9 +5380,9 @@ CREATE TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ( Id UUID NOT NULL, CONSTRAINT StudentDisciplineIncidentBehaviorAssociation_PK PRIMARY KEY (BehaviorDescriptorId, IncidentIdentifier, SchoolId, StudentUSI) ); -ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentDisciplineIncidentBehaviorAssociationDisciplineIn_ae6a21 -- CREATE TABLE edfi.StudentDisciplineIncidentBehaviorAssociationDisciplineIn_ae6a21 ( @@ -5394,7 +5394,7 @@ CREATE TABLE edfi.StudentDisciplineIncidentBehaviorAssociationDisciplineIn_ae6a2 CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentDisciplineIncidentBehaviorAssociationDiscip_ae6a21_PK PRIMARY KEY (BehaviorDescriptorId, IncidentIdentifier, SchoolId, StudentUSI, DisciplineIncidentParticipationCodeDescriptorId) ); -ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociationDisciplineIn_ae6a21 ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociationDisciplineIn_ae6a21 ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentDisciplineIncidentNonOffenderAssociation -- CREATE TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ( @@ -5407,9 +5407,9 @@ CREATE TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ( Id UUID NOT NULL, CONSTRAINT StudentDisciplineIncidentNonOffenderAssociation_PK PRIMARY KEY (IncidentIdentifier, SchoolId, StudentUSI) ); -ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentDisciplineIncidentNonOffenderAssociationDisciplin_4c979a -- CREATE TABLE edfi.StudentDisciplineIncidentNonOffenderAssociationDisciplin_4c979a ( @@ -5420,7 +5420,7 @@ CREATE TABLE edfi.StudentDisciplineIncidentNonOffenderAssociationDisciplin_4c979 CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentDisciplineIncidentNonOffenderAssociationDis_4c979a_PK PRIMARY KEY (IncidentIdentifier, SchoolId, StudentUSI, DisciplineIncidentParticipationCodeDescriptorId) ); -ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociationDisciplin_4c979a ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociationDisciplin_4c979a ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociation -- CREATE TABLE edfi.StudentEducationOrganizationAssociation ( @@ -5445,9 +5445,9 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociation ( Id UUID NOT NULL, CONSTRAINT StudentEducationOrganizationAssociation_PK PRIMARY KEY (EducationOrganizationId, StudentUSI) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentEducationOrganizationAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentEducationOrganizationAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationAddress -- CREATE TABLE edfi.StudentEducationOrganizationAssociationAddress ( @@ -5470,7 +5470,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationAddress ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationAddress_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, AddressTypeDescriptorId, City, PostalCode, StateAbbreviationDescriptorId, StreetNumberName) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationAddressPeriod -- CREATE TABLE edfi.StudentEducationOrganizationAssociationAddressPeriod ( @@ -5486,7 +5486,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationAddressPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationAddressPeriod_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, AddressTypeDescriptorId, City, PostalCode, StateAbbreviationDescriptorId, StreetNumberName, BeginDate) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationAddressPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationAncestryEthnicOrigin -- CREATE TABLE edfi.StudentEducationOrganizationAssociationAncestryEthnicOrigin ( @@ -5496,7 +5496,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationAncestryEthnicOrigin ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationAncestryEthnicOrigin_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, AncestryEthnicOriginDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationAncestryEthnicOrigin ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationAncestryEthnicOrigin ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationCohortYear -- CREATE TABLE edfi.StudentEducationOrganizationAssociationCohortYear ( @@ -5508,7 +5508,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationCohortYear ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationCohortYear_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, CohortYearTypeDescriptorId, SchoolYear) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationCohortYear ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationCohortYear ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationDisability -- CREATE TABLE edfi.StudentEducationOrganizationAssociationDisability ( @@ -5521,7 +5521,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationDisability ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationDisability_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, DisabilityDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationDisability ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationDisability ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationDisabilityDesignation -- CREATE TABLE edfi.StudentEducationOrganizationAssociationDisabilityDesignation ( @@ -5532,7 +5532,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationDisabilityDesignation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationDisabilityDesignation_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, DisabilityDescriptorId, DisabilityDesignationDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationDisabilityDesignation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationDisabilityDesignation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationElectronicMail -- CREATE TABLE edfi.StudentEducationOrganizationAssociationElectronicMail ( @@ -5545,7 +5545,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationElectronicMail ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationElectronicMail_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, ElectronicMailAddress, ElectronicMailTypeDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationElectronicMail ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationElectronicMail ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationInternationalAddress -- CREATE TABLE edfi.StudentEducationOrganizationAssociationInternationalAddress ( @@ -5564,7 +5564,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationInternationalAddress ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationInternationalAddress_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, AddressTypeDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationInternationalAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationInternationalAddress ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationLanguage -- CREATE TABLE edfi.StudentEducationOrganizationAssociationLanguage ( @@ -5574,7 +5574,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationLanguage ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationLanguage_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, LanguageDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationLanguage ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationLanguageUse -- CREATE TABLE edfi.StudentEducationOrganizationAssociationLanguageUse ( @@ -5585,7 +5585,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationLanguageUse ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationLanguageUse_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, LanguageDescriptorId, LanguageUseDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationLanguageUse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationLanguageUse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationProgramParticipat_810575 -- CREATE TABLE edfi.StudentEducationOrganizationAssociationProgramParticipat_810575 ( @@ -5596,7 +5596,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationProgramParticipat_81057 CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationProgramPart_810575_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, ProgramTypeDescriptorId, ProgramCharacteristicDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationProgramParticipat_810575 ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationProgramParticipat_810575 ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationProgramParticipation -- CREATE TABLE edfi.StudentEducationOrganizationAssociationProgramParticipation ( @@ -5609,7 +5609,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationProgramParticipation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationProgramParticipation_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, ProgramTypeDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationProgramParticipation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationProgramParticipation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationRace -- CREATE TABLE edfi.StudentEducationOrganizationAssociationRace ( @@ -5619,7 +5619,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationRace ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationRace_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, RaceDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationRace ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationRace ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationStudentCharacteri_a18fcf -- CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentCharacteri_a18fcf ( @@ -5631,7 +5631,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentCharacteri_a18fc CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationStudentChar_a18fcf_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, StudentCharacteristicDescriptorId, BeginDate) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentCharacteri_a18fcf ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentCharacteri_a18fcf ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationStudentCharacteristic -- CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentCharacteristic ( @@ -5642,7 +5642,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentCharacteristic ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationStudentCharacteristic_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, StudentCharacteristicDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentCharacteristic ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationStudentIdentifica_c15030 -- CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentIdentifica_c15030 ( @@ -5654,7 +5654,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentIdentifica_c1503 CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationStudentIden_c15030_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, AssigningOrganizationIdentificationCode, StudentIdentificationSystemDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentIdentifica_c15030 ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentIdentifica_c15030 ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationStudentIndicator -- CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentIndicator ( @@ -5667,7 +5667,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentIndicator ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationStudentIndicator_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, IndicatorName) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentIndicator ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentIndicator ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationStudentIndicatorPeriod -- CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentIndicatorPeriod ( @@ -5679,7 +5679,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationStudentIndicatorPeriod CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationStudentIndi_a61b72_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, IndicatorName, BeginDate) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentIndicatorPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationStudentIndicatorPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationTelephone -- CREATE TABLE edfi.StudentEducationOrganizationAssociationTelephone ( @@ -5693,7 +5693,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationTelephone ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationTelephone_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, TelephoneNumber, TelephoneNumberTypeDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationTelephone ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationAssociationTribalAffiliation -- CREATE TABLE edfi.StudentEducationOrganizationAssociationTribalAffiliation ( @@ -5703,7 +5703,7 @@ CREATE TABLE edfi.StudentEducationOrganizationAssociationTribalAffiliation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentEducationOrganizationAssociationTribalAffiliation_PK PRIMARY KEY (EducationOrganizationId, StudentUSI, TribalAffiliationDescriptorId) ); -ALTER TABLE edfi.StudentEducationOrganizationAssociationTribalAffiliation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationAssociationTribalAffiliation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentEducationOrganizationResponsibilityAssociation -- CREATE TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ( @@ -5718,9 +5718,9 @@ CREATE TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ( Id UUID NOT NULL, CONSTRAINT StudentEducationOrganizationResponsibilityAssociation_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ResponsibilityDescriptorId, StudentUSI) ); -ALTER TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentGradebookEntry -- CREATE TABLE edfi.StudentGradebookEntry ( @@ -5742,9 +5742,9 @@ CREATE TABLE edfi.StudentGradebookEntry ( Id UUID NOT NULL, CONSTRAINT StudentGradebookEntry_PK PRIMARY KEY (GradebookEntryIdentifier, Namespace, StudentUSI) ); -ALTER TABLE edfi.StudentGradebookEntry ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentGradebookEntry ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentGradebookEntry ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentGradebookEntry ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentGradebookEntry ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentHomelessProgramAssociation -- CREATE TABLE edfi.StudentHomelessProgramAssociation ( @@ -5775,7 +5775,7 @@ CREATE TABLE edfi.StudentHomelessProgramAssociationHomelessProgramService ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentHomelessProgramAssociationHomelessProgramService_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, HomelessProgramServiceDescriptorId) ); -ALTER TABLE edfi.StudentHomelessProgramAssociationHomelessProgramService ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentHomelessProgramAssociationHomelessProgramService ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentIdentificationDocument -- CREATE TABLE edfi.StudentIdentificationDocument ( @@ -5790,7 +5790,7 @@ CREATE TABLE edfi.StudentIdentificationDocument ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentIdentificationDocument_PK PRIMARY KEY (StudentUSI, IdentificationDocumentUseDescriptorId, PersonalInformationVerificationDescriptorId) ); -ALTER TABLE edfi.StudentIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentIdentificationSystemDescriptor -- CREATE TABLE edfi.StudentIdentificationSystemDescriptor ( @@ -5813,9 +5813,9 @@ CREATE TABLE edfi.StudentInterventionAssociation ( Id UUID NOT NULL, CONSTRAINT StudentInterventionAssociation_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, StudentUSI) ); -ALTER TABLE edfi.StudentInterventionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentInterventionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentInterventionAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentInterventionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentInterventionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentInterventionAssociationInterventionEffectiveness -- CREATE TABLE edfi.StudentInterventionAssociationInterventionEffectiveness ( @@ -5830,7 +5830,7 @@ CREATE TABLE edfi.StudentInterventionAssociationInterventionEffectiveness ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentInterventionAssociationInterventionEffectiveness_PK PRIMARY KEY (EducationOrganizationId, InterventionIdentificationCode, StudentUSI, DiagnosisDescriptorId, GradeLevelDescriptorId, PopulationServedDescriptorId) ); -ALTER TABLE edfi.StudentInterventionAssociationInterventionEffectiveness ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentInterventionAssociationInterventionEffectiveness ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentInterventionAttendanceEvent -- CREATE TABLE edfi.StudentInterventionAttendanceEvent ( @@ -5849,9 +5849,9 @@ CREATE TABLE edfi.StudentInterventionAttendanceEvent ( Id UUID NOT NULL, CONSTRAINT StudentInterventionAttendanceEvent_PK PRIMARY KEY (AttendanceEventCategoryDescriptorId, EducationOrganizationId, EventDate, InterventionIdentificationCode, StudentUSI) ); -ALTER TABLE edfi.StudentInterventionAttendanceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentInterventionAttendanceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentInterventionAttendanceEvent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentInterventionAttendanceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentInterventionAttendanceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentLanguageInstructionProgramAssociation -- CREATE TABLE edfi.StudentLanguageInstructionProgramAssociation ( @@ -5882,7 +5882,7 @@ CREATE TABLE edfi.StudentLanguageInstructionProgramAssociationEnglishLangu_1ac62 CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentLanguageInstructionProgramAssociationEnglis_1ac620_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, SchoolYear) ); -ALTER TABLE edfi.StudentLanguageInstructionProgramAssociationEnglishLangu_1ac620 ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentLanguageInstructionProgramAssociationEnglishLangu_1ac620 ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentLanguageInstructionProgramAssociationLanguageInst_268e07 -- CREATE TABLE edfi.StudentLanguageInstructionProgramAssociationLanguageInst_268e07 ( @@ -5899,7 +5899,7 @@ CREATE TABLE edfi.StudentLanguageInstructionProgramAssociationLanguageInst_268e0 CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentLanguageInstructionProgramAssociationLangua_268e07_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, LanguageInstructionProgramServiceDescriptorId) ); -ALTER TABLE edfi.StudentLanguageInstructionProgramAssociationLanguageInst_268e07 ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentLanguageInstructionProgramAssociationLanguageInst_268e07 ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentLearningObjective -- CREATE TABLE edfi.StudentLearningObjective ( @@ -5918,9 +5918,9 @@ CREATE TABLE edfi.StudentLearningObjective ( Id UUID NOT NULL, CONSTRAINT StudentLearningObjective_PK PRIMARY KEY (GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, LearningObjectiveId, Namespace, StudentUSI) ); -ALTER TABLE edfi.StudentLearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentLearningObjective ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentLearningObjective ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentLearningObjective ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentLearningObjective ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentLearningObjectiveGeneralStudentProgramAssociation -- CREATE TABLE edfi.StudentLearningObjectiveGeneralStudentProgramAssociation ( @@ -5939,7 +5939,7 @@ CREATE TABLE edfi.StudentLearningObjectiveGeneralStudentProgramAssociation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentLearningObjectiveGeneralStudentProgramAssociation_PK PRIMARY KEY (GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, LearningObjectiveId, Namespace, StudentUSI, BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId) ); -ALTER TABLE edfi.StudentLearningObjectiveGeneralStudentProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentLearningObjectiveGeneralStudentProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentLearningObjectiveStudentSectionAssociation -- CREATE TABLE edfi.StudentLearningObjectiveStudentSectionAssociation ( @@ -5959,7 +5959,7 @@ CREATE TABLE edfi.StudentLearningObjectiveStudentSectionAssociation ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentLearningObjectiveStudentSectionAssociation_PK PRIMARY KEY (GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolId, GradingPeriodSchoolYear, LearningObjectiveId, Namespace, StudentUSI, BeginDate, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) ); -ALTER TABLE edfi.StudentLearningObjectiveStudentSectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentLearningObjectiveStudentSectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentMigrantEducationProgramAssociation -- CREATE TABLE edfi.StudentMigrantEducationProgramAssociation ( @@ -5996,7 +5996,7 @@ CREATE TABLE edfi.StudentMigrantEducationProgramAssociationMigrantEducatio_d9dcd CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentMigrantEducationProgramAssociationMigrantEd_d9dcd7_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, MigrantEducationProgramServiceDescriptorId) ); -ALTER TABLE edfi.StudentMigrantEducationProgramAssociationMigrantEducatio_d9dcd7 ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentMigrantEducationProgramAssociationMigrantEducatio_d9dcd7 ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentNeglectedOrDelinquentProgramAssociation -- CREATE TABLE edfi.StudentNeglectedOrDelinquentProgramAssociation ( @@ -6027,7 +6027,7 @@ CREATE TABLE edfi.StudentNeglectedOrDelinquentProgramAssociationNeglectedO_52025 CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentNeglectedOrDelinquentProgramAssociationNegl_520251_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, NeglectedOrDelinquentProgramServiceDescriptorId) ); -ALTER TABLE edfi.StudentNeglectedOrDelinquentProgramAssociationNeglectedO_520251 ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentNeglectedOrDelinquentProgramAssociationNeglectedO_520251 ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentOtherName -- CREATE TABLE edfi.StudentOtherName ( @@ -6041,7 +6041,7 @@ CREATE TABLE edfi.StudentOtherName ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentOtherName_PK PRIMARY KEY (StudentUSI, OtherNameTypeDescriptorId) ); -ALTER TABLE edfi.StudentOtherName ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentOtherName ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentParentAssociation -- CREATE TABLE edfi.StudentParentAssociation ( @@ -6060,9 +6060,9 @@ CREATE TABLE edfi.StudentParentAssociation ( Id UUID NOT NULL, CONSTRAINT StudentParentAssociation_PK PRIMARY KEY (ParentUSI, StudentUSI) ); -ALTER TABLE edfi.StudentParentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentParentAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentParentAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentParentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentParentAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentParticipationCodeDescriptor -- CREATE TABLE edfi.StudentParticipationCodeDescriptor ( @@ -6083,7 +6083,7 @@ CREATE TABLE edfi.StudentPersonalIdentificationDocument ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentPersonalIdentificationDocument_PK PRIMARY KEY (StudentUSI, IdentificationDocumentUseDescriptorId, PersonalInformationVerificationDescriptorId) ); -ALTER TABLE edfi.StudentPersonalIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentPersonalIdentificationDocument ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentProgramAssociation -- CREATE TABLE edfi.StudentProgramAssociation ( @@ -6111,7 +6111,7 @@ CREATE TABLE edfi.StudentProgramAssociationService ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentProgramAssociationService_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, ServiceDescriptorId) ); -ALTER TABLE edfi.StudentProgramAssociationService ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentProgramAssociationService ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentProgramAttendanceEvent -- CREATE TABLE edfi.StudentProgramAttendanceEvent ( @@ -6132,9 +6132,9 @@ CREATE TABLE edfi.StudentProgramAttendanceEvent ( Id UUID NOT NULL, CONSTRAINT StudentProgramAttendanceEvent_PK PRIMARY KEY (AttendanceEventCategoryDescriptorId, EducationOrganizationId, EventDate, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) ); -ALTER TABLE edfi.StudentProgramAttendanceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentProgramAttendanceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentProgramAttendanceEvent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentProgramAttendanceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentProgramAttendanceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSchoolAssociation -- CREATE TABLE edfi.StudentSchoolAssociation ( @@ -6165,9 +6165,9 @@ CREATE TABLE edfi.StudentSchoolAssociation ( Id UUID NOT NULL, CONSTRAINT StudentSchoolAssociation_PK PRIMARY KEY (EntryDate, SchoolId, StudentUSI) ); -ALTER TABLE edfi.StudentSchoolAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSchoolAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentSchoolAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentSchoolAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSchoolAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSchoolAssociationAlternativeGraduationPlan -- CREATE TABLE edfi.StudentSchoolAssociationAlternativeGraduationPlan ( @@ -6180,7 +6180,7 @@ CREATE TABLE edfi.StudentSchoolAssociationAlternativeGraduationPlan ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentSchoolAssociationAlternativeGraduationPlan_PK PRIMARY KEY (EntryDate, SchoolId, StudentUSI, AlternativeEducationOrganizationId, AlternativeGraduationPlanTypeDescriptorId, AlternativeGraduationSchoolYear) ); -ALTER TABLE edfi.StudentSchoolAssociationAlternativeGraduationPlan ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSchoolAssociationAlternativeGraduationPlan ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSchoolAssociationEducationPlan -- CREATE TABLE edfi.StudentSchoolAssociationEducationPlan ( @@ -6191,7 +6191,7 @@ CREATE TABLE edfi.StudentSchoolAssociationEducationPlan ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentSchoolAssociationEducationPlan_PK PRIMARY KEY (EntryDate, SchoolId, StudentUSI, EducationPlanDescriptorId) ); -ALTER TABLE edfi.StudentSchoolAssociationEducationPlan ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSchoolAssociationEducationPlan ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSchoolAttendanceEvent -- CREATE TABLE edfi.StudentSchoolAttendanceEvent ( @@ -6213,9 +6213,9 @@ CREATE TABLE edfi.StudentSchoolAttendanceEvent ( Id UUID NOT NULL, CONSTRAINT StudentSchoolAttendanceEvent_PK PRIMARY KEY (AttendanceEventCategoryDescriptorId, EventDate, SchoolId, SchoolYear, SessionName, StudentUSI) ); -ALTER TABLE edfi.StudentSchoolAttendanceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSchoolAttendanceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentSchoolAttendanceEvent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentSchoolAttendanceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSchoolAttendanceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSchoolFoodServiceProgramAssociation -- CREATE TABLE edfi.StudentSchoolFoodServiceProgramAssociation ( @@ -6244,7 +6244,7 @@ CREATE TABLE edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServ_85a0e CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentSchoolFoodServiceProgramAssociationSchoolFo_85a0eb_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, SchoolFoodServiceProgramServiceDescriptorId) ); -ALTER TABLE edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServ_85a0eb ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSchoolFoodServiceProgramAssociationSchoolFoodServ_85a0eb ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSectionAssociation -- CREATE TABLE edfi.StudentSectionAssociation ( @@ -6266,9 +6266,9 @@ CREATE TABLE edfi.StudentSectionAssociation ( Id UUID NOT NULL, CONSTRAINT StudentSectionAssociation_PK PRIMARY KEY (BeginDate, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI) ); -ALTER TABLE edfi.StudentSectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentSectionAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentSectionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSectionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSectionAttendanceEvent -- CREATE TABLE edfi.StudentSectionAttendanceEvent ( @@ -6292,9 +6292,9 @@ CREATE TABLE edfi.StudentSectionAttendanceEvent ( Id UUID NOT NULL, CONSTRAINT StudentSectionAttendanceEvent_PK PRIMARY KEY (AttendanceEventCategoryDescriptorId, EventDate, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI) ); -ALTER TABLE edfi.StudentSectionAttendanceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSectionAttendanceEvent ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.StudentSectionAttendanceEvent ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.StudentSectionAttendanceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSectionAttendanceEvent ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSectionAttendanceEventClassPeriod -- CREATE TABLE edfi.StudentSectionAttendanceEventClassPeriod ( @@ -6310,7 +6310,7 @@ CREATE TABLE edfi.StudentSectionAttendanceEventClassPeriod ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentSectionAttendanceEventClassPeriod_PK PRIMARY KEY (AttendanceEventCategoryDescriptorId, EventDate, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI, ClassPeriodName) ); -ALTER TABLE edfi.StudentSectionAttendanceEventClassPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSectionAttendanceEventClassPeriod ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSpecialEducationProgramAssociation -- CREATE TABLE edfi.StudentSpecialEducationProgramAssociation ( @@ -6348,7 +6348,7 @@ CREATE TABLE edfi.StudentSpecialEducationProgramAssociationDisability ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentSpecialEducationProgramAssociationDisability_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, DisabilityDescriptorId) ); -ALTER TABLE edfi.StudentSpecialEducationProgramAssociationDisability ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSpecialEducationProgramAssociationDisability ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSpecialEducationProgramAssociationDisabilityDesignation -- CREATE TABLE edfi.StudentSpecialEducationProgramAssociationDisabilityDesignation ( @@ -6363,7 +6363,7 @@ CREATE TABLE edfi.StudentSpecialEducationProgramAssociationDisabilityDesignation CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentSpecialEducationProgramAssociationDisabilit_a2fd20_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, DisabilityDescriptorId, DisabilityDesignationDescriptorId) ); -ALTER TABLE edfi.StudentSpecialEducationProgramAssociationDisabilityDesignation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSpecialEducationProgramAssociationDisabilityDesignation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSpecialEducationProgramAssociationServiceProvider -- CREATE TABLE edfi.StudentSpecialEducationProgramAssociationServiceProvider ( @@ -6378,7 +6378,7 @@ CREATE TABLE edfi.StudentSpecialEducationProgramAssociationServiceProvider ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentSpecialEducationProgramAssociationServiceProvider_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, StaffUSI) ); -ALTER TABLE edfi.StudentSpecialEducationProgramAssociationServiceProvider ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSpecialEducationProgramAssociationServiceProvider ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_a51ff9 -- CREATE TABLE edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_a51ff9 ( @@ -6395,7 +6395,7 @@ CREATE TABLE edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_a51ff CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentSpecialEducationProgramAssociationSpecialEd_a51ff9_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, SpecialEducationProgramServiceDescriptorId) ); -ALTER TABLE edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_a51ff9 ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_a51ff9 ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_bcba5c -- CREATE TABLE edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_bcba5c ( @@ -6411,7 +6411,7 @@ CREATE TABLE edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_bcba5 CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentSpecialEducationProgramAssociationSpecialEd_bcba5c_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, SpecialEducationProgramServiceDescriptorId, StaffUSI) ); -ALTER TABLE edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_bcba5c ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentSpecialEducationProgramAssociationSpecialEducatio_bcba5c ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentTitleIPartAProgramAssociation -- CREATE TABLE edfi.StudentTitleIPartAProgramAssociation ( @@ -6440,7 +6440,7 @@ CREATE TABLE edfi.StudentTitleIPartAProgramAssociationService ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentTitleIPartAProgramAssociationService_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, ServiceDescriptorId) ); -ALTER TABLE edfi.StudentTitleIPartAProgramAssociationService ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentTitleIPartAProgramAssociationService ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentTitleIPartAProgramAssociationTitleIPartAProgramService -- CREATE TABLE edfi.StudentTitleIPartAProgramAssociationTitleIPartAProgramService ( @@ -6457,7 +6457,7 @@ CREATE TABLE edfi.StudentTitleIPartAProgramAssociationTitleIPartAProgramService CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentTitleIPartAProgramAssociationTitleIPartAPro_8adb29_PK PRIMARY KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI, TitleIPartAProgramServiceDescriptorId) ); -ALTER TABLE edfi.StudentTitleIPartAProgramAssociationTitleIPartAProgramService ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentTitleIPartAProgramAssociationTitleIPartAProgramService ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.StudentVisa -- CREATE TABLE edfi.StudentVisa ( @@ -6466,7 +6466,7 @@ CREATE TABLE edfi.StudentVisa ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT StudentVisa_PK PRIMARY KEY (StudentUSI, VisaDescriptorId) ); -ALTER TABLE edfi.StudentVisa ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.StudentVisa ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SubmissionStatusDescriptor -- CREATE TABLE edfi.SubmissionStatusDescriptor ( @@ -6491,9 +6491,9 @@ CREATE TABLE edfi.Survey ( Id UUID NOT NULL, CONSTRAINT Survey_PK PRIMARY KEY (Namespace, SurveyIdentifier) ); -ALTER TABLE edfi.Survey ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Survey ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.Survey ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.Survey ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.Survey ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyCategoryDescriptor -- CREATE TABLE edfi.SurveyCategoryDescriptor ( @@ -6513,9 +6513,9 @@ CREATE TABLE edfi.SurveyCourseAssociation ( Id UUID NOT NULL, CONSTRAINT SurveyCourseAssociation_PK PRIMARY KEY (CourseCode, EducationOrganizationId, Namespace, SurveyIdentifier) ); -ALTER TABLE edfi.SurveyCourseAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyCourseAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveyCourseAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveyCourseAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyCourseAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyLevelDescriptor -- CREATE TABLE edfi.SurveyLevelDescriptor ( @@ -6536,9 +6536,9 @@ CREATE TABLE edfi.SurveyProgramAssociation ( Id UUID NOT NULL, CONSTRAINT SurveyProgramAssociation_PK PRIMARY KEY (EducationOrganizationId, Namespace, ProgramName, ProgramTypeDescriptorId, SurveyIdentifier) ); -ALTER TABLE edfi.SurveyProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyProgramAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveyProgramAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveyProgramAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyProgramAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyQuestion -- CREATE TABLE edfi.SurveyQuestion ( @@ -6554,9 +6554,9 @@ CREATE TABLE edfi.SurveyQuestion ( Id UUID NOT NULL, CONSTRAINT SurveyQuestion_PK PRIMARY KEY (Namespace, QuestionCode, SurveyIdentifier) ); -ALTER TABLE edfi.SurveyQuestion ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyQuestion ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveyQuestion ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveyQuestion ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyQuestion ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyQuestionMatrix -- CREATE TABLE edfi.SurveyQuestionMatrix ( @@ -6569,7 +6569,7 @@ CREATE TABLE edfi.SurveyQuestionMatrix ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SurveyQuestionMatrix_PK PRIMARY KEY (Namespace, QuestionCode, SurveyIdentifier, MatrixElement) ); -ALTER TABLE edfi.SurveyQuestionMatrix ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyQuestionMatrix ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyQuestionResponse -- CREATE TABLE edfi.SurveyQuestionResponse ( @@ -6585,9 +6585,9 @@ CREATE TABLE edfi.SurveyQuestionResponse ( Id UUID NOT NULL, CONSTRAINT SurveyQuestionResponse_PK PRIMARY KEY (Namespace, QuestionCode, SurveyIdentifier, SurveyResponseIdentifier) ); -ALTER TABLE edfi.SurveyQuestionResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyQuestionResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveyQuestionResponse ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveyQuestionResponse ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyQuestionResponse ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyQuestionResponseChoice -- CREATE TABLE edfi.SurveyQuestionResponseChoice ( @@ -6600,7 +6600,7 @@ CREATE TABLE edfi.SurveyQuestionResponseChoice ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SurveyQuestionResponseChoice_PK PRIMARY KEY (Namespace, QuestionCode, SurveyIdentifier, SortOrder) ); -ALTER TABLE edfi.SurveyQuestionResponseChoice ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyQuestionResponseChoice ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyQuestionResponseSurveyQuestionMatrixElementResponse -- CREATE TABLE edfi.SurveyQuestionResponseSurveyQuestionMatrixElementResponse ( @@ -6617,7 +6617,7 @@ CREATE TABLE edfi.SurveyQuestionResponseSurveyQuestionMatrixElementResponse ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SurveyQuestionResponseSurveyQuestionMatrixElementResponse_PK PRIMARY KEY (Namespace, QuestionCode, SurveyIdentifier, SurveyResponseIdentifier, MatrixElement) ); -ALTER TABLE edfi.SurveyQuestionResponseSurveyQuestionMatrixElementResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyQuestionResponseSurveyQuestionMatrixElementResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyQuestionResponseValue -- CREATE TABLE edfi.SurveyQuestionResponseValue ( @@ -6631,7 +6631,7 @@ CREATE TABLE edfi.SurveyQuestionResponseValue ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SurveyQuestionResponseValue_PK PRIMARY KEY (Namespace, QuestionCode, SurveyIdentifier, SurveyResponseIdentifier, SurveyQuestionResponseValueIdentifier) ); -ALTER TABLE edfi.SurveyQuestionResponseValue ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyQuestionResponseValue ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyResponse -- CREATE TABLE edfi.SurveyResponse ( @@ -6652,9 +6652,9 @@ CREATE TABLE edfi.SurveyResponse ( Id UUID NOT NULL, CONSTRAINT SurveyResponse_PK PRIMARY KEY (Namespace, SurveyIdentifier, SurveyResponseIdentifier) ); -ALTER TABLE edfi.SurveyResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveyResponse ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveyResponse ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyResponse ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyResponseEducationOrganizationTargetAssociation -- CREATE TABLE edfi.SurveyResponseEducationOrganizationTargetAssociation ( @@ -6668,9 +6668,9 @@ CREATE TABLE edfi.SurveyResponseEducationOrganizationTargetAssociation ( Id UUID NOT NULL, CONSTRAINT SurveyResponseEducationOrganizationTargetAssociation_PK PRIMARY KEY (EducationOrganizationId, Namespace, SurveyIdentifier, SurveyResponseIdentifier) ); -ALTER TABLE edfi.SurveyResponseEducationOrganizationTargetAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyResponseEducationOrganizationTargetAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveyResponseEducationOrganizationTargetAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveyResponseEducationOrganizationTargetAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyResponseEducationOrganizationTargetAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyResponseStaffTargetAssociation -- CREATE TABLE edfi.SurveyResponseStaffTargetAssociation ( @@ -6684,9 +6684,9 @@ CREATE TABLE edfi.SurveyResponseStaffTargetAssociation ( Id UUID NOT NULL, CONSTRAINT SurveyResponseStaffTargetAssociation_PK PRIMARY KEY (Namespace, StaffUSI, SurveyIdentifier, SurveyResponseIdentifier) ); -ALTER TABLE edfi.SurveyResponseStaffTargetAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyResponseStaffTargetAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveyResponseStaffTargetAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveyResponseStaffTargetAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyResponseStaffTargetAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveyResponseSurveyLevel -- CREATE TABLE edfi.SurveyResponseSurveyLevel ( @@ -6697,7 +6697,7 @@ CREATE TABLE edfi.SurveyResponseSurveyLevel ( CreateDate TIMESTAMP NOT NULL, CONSTRAINT SurveyResponseSurveyLevel_PK PRIMARY KEY (Namespace, SurveyIdentifier, SurveyResponseIdentifier, SurveyLevelDescriptorId) ); -ALTER TABLE edfi.SurveyResponseSurveyLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveyResponseSurveyLevel ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveySection -- CREATE TABLE edfi.SurveySection ( @@ -6710,9 +6710,9 @@ CREATE TABLE edfi.SurveySection ( Id UUID NOT NULL, CONSTRAINT SurveySection_PK PRIMARY KEY (Namespace, SurveyIdentifier, SurveySectionTitle) ); -ALTER TABLE edfi.SurveySection ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySection ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveySection ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveySection ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySection ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveySectionAssociation -- CREATE TABLE edfi.SurveySectionAssociation ( @@ -6729,9 +6729,9 @@ CREATE TABLE edfi.SurveySectionAssociation ( Id UUID NOT NULL, CONSTRAINT SurveySectionAssociation_PK PRIMARY KEY (LocalCourseCode, Namespace, SchoolId, SchoolYear, SectionIdentifier, SessionName, SurveyIdentifier) ); -ALTER TABLE edfi.SurveySectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySectionAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveySectionAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveySectionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySectionAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveySectionResponse -- CREATE TABLE edfi.SurveySectionResponse ( @@ -6746,9 +6746,9 @@ CREATE TABLE edfi.SurveySectionResponse ( Id UUID NOT NULL, CONSTRAINT SurveySectionResponse_PK PRIMARY KEY (Namespace, SurveyIdentifier, SurveyResponseIdentifier, SurveySectionTitle) ); -ALTER TABLE edfi.SurveySectionResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySectionResponse ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveySectionResponse ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveySectionResponse ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySectionResponse ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveySectionResponseEducationOrganizationTargetAssociation -- CREATE TABLE edfi.SurveySectionResponseEducationOrganizationTargetAssociation ( @@ -6763,9 +6763,9 @@ CREATE TABLE edfi.SurveySectionResponseEducationOrganizationTargetAssociation ( Id UUID NOT NULL, CONSTRAINT SurveySectionResponseEducationOrganizationTargetAssociation_PK PRIMARY KEY (EducationOrganizationId, Namespace, SurveyIdentifier, SurveyResponseIdentifier, SurveySectionTitle) ); -ALTER TABLE edfi.SurveySectionResponseEducationOrganizationTargetAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySectionResponseEducationOrganizationTargetAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveySectionResponseEducationOrganizationTargetAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveySectionResponseEducationOrganizationTargetAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySectionResponseEducationOrganizationTargetAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.SurveySectionResponseStaffTargetAssociation -- CREATE TABLE edfi.SurveySectionResponseStaffTargetAssociation ( @@ -6780,9 +6780,9 @@ CREATE TABLE edfi.SurveySectionResponseStaffTargetAssociation ( Id UUID NOT NULL, CONSTRAINT SurveySectionResponseStaffTargetAssociation_PK PRIMARY KEY (Namespace, StaffUSI, SurveyIdentifier, SurveyResponseIdentifier, SurveySectionTitle) ); -ALTER TABLE edfi.SurveySectionResponseStaffTargetAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySectionResponseStaffTargetAssociation ALTER COLUMN CreateDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; ALTER TABLE edfi.SurveySectionResponseStaffTargetAssociation ALTER COLUMN Id SET DEFAULT gen_random_uuid(); -ALTER TABLE edfi.SurveySectionResponseStaffTargetAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp; +ALTER TABLE edfi.SurveySectionResponseStaffTargetAssociation ALTER COLUMN LastModifiedDate SET DEFAULT current_timestamp AT TIME ZONE 'UTC'; -- Table edfi.TeachingCredentialBasisDescriptor -- CREATE TABLE edfi.TeachingCredentialBasisDescriptor ( diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/0030-ForeignKeys.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/0030-ForeignKeys.sql index d9db059cb2..92d23d2b55 100644 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/0030-ForeignKeys.sql +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/0030-ForeignKeys.sql @@ -1232,9 +1232,6 @@ ALTER TABLE edfi.DisciplineAction ADD CONSTRAINT FK_eec7b6_Student FOREIGN KEY ( REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_eec7b6_Student -ON edfi.DisciplineAction (StudentUSI ASC); - ALTER TABLE edfi.DisciplineActionDiscipline ADD CONSTRAINT FK_73601f_DisciplineAction FOREIGN KEY (DisciplineActionIdentifier, DisciplineDate, StudentUSI) REFERENCES edfi.DisciplineAction (DisciplineActionIdentifier, DisciplineDate, StudentUSI) ON DELETE CASCADE @@ -1315,9 +1312,6 @@ ALTER TABLE edfi.DisciplineIncident ADD CONSTRAINT FK_e45c0b_Staff FOREIGN KEY ( REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_e45c0b_Staff -ON edfi.DisciplineIncident (StaffUSI ASC); - ALTER TABLE edfi.DisciplineIncidentBehavior ADD CONSTRAINT FK_cabdcb_BehaviorDescriptor FOREIGN KEY (BehaviorDescriptorId) REFERENCES edfi.BehaviorDescriptor (BehaviorDescriptorId) ; @@ -1748,9 +1742,6 @@ ALTER TABLE edfi.GeneralStudentProgramAssociation ADD CONSTRAINT FK_0516f9_Stude REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_0516f9_Student -ON edfi.GeneralStudentProgramAssociation (StudentUSI ASC); - ALTER TABLE edfi.GeneralStudentProgramAssociationParticipationStatus ADD CONSTRAINT FK_b3fd05_GeneralStudentProgramAssociation FOREIGN KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) REFERENCES edfi.GeneralStudentProgramAssociation (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) ON DELETE CASCADE @@ -2759,9 +2750,6 @@ ALTER TABLE edfi.LocalContractedStaff ADD CONSTRAINT FK_4d9b4a_Staff FOREIGN KEY REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_4d9b4a_Staff -ON edfi.LocalContractedStaff (StaffUSI ASC); - ALTER TABLE edfi.LocaleDescriptor ADD CONSTRAINT FK_be5f41_Descriptor FOREIGN KEY (LocaleDescriptorId) REFERENCES edfi.Descriptor (DescriptorId) ON DELETE CASCADE @@ -2875,9 +2863,6 @@ ALTER TABLE edfi.LocalPayroll ADD CONSTRAINT FK_46e5c2_Staff FOREIGN KEY (StaffU REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_46e5c2_Staff -ON edfi.LocalPayroll (StaffUSI ASC); - ALTER TABLE edfi.Location ADD CONSTRAINT FK_15b619_School FOREIGN KEY (SchoolId) REFERENCES edfi.School (SchoolId) ; @@ -3350,9 +3335,6 @@ ALTER TABLE edfi.PostSecondaryEvent ADD CONSTRAINT FK_b8b6d7_Student FOREIGN KEY REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_b8b6d7_Student -ON edfi.PostSecondaryEvent (StudentUSI ASC); - ALTER TABLE edfi.PostSecondaryEventCategoryDescriptor ADD CONSTRAINT FK_6829e4_Descriptor FOREIGN KEY (PostSecondaryEventCategoryDescriptorId) REFERENCES edfi.Descriptor (DescriptorId) ON DELETE CASCADE @@ -3609,9 +3591,6 @@ ALTER TABLE edfi.ReportCard ADD CONSTRAINT FK_ec1992_Student FOREIGN KEY (Studen REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_ec1992_Student -ON edfi.ReportCard (StudentUSI ASC); - ALTER TABLE edfi.ReportCardGrade ADD CONSTRAINT FK_f203d3_Grade FOREIGN KEY (BeginDate, GradeTypeDescriptorId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolYear, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI) REFERENCES edfi.Grade (BeginDate, GradeTypeDescriptorId, GradingPeriodDescriptorId, GradingPeriodSequence, GradingPeriodSchoolYear, LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName, StudentUSI) ON UPDATE CASCADE @@ -3701,9 +3680,6 @@ ALTER TABLE edfi.RestraintEvent ADD CONSTRAINT FK_3800be_Student FOREIGN KEY (St REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_3800be_Student -ON edfi.RestraintEvent (StudentUSI ASC); - ALTER TABLE edfi.RestraintEventProgram ADD CONSTRAINT FK_d3d793_Program FOREIGN KEY (EducationOrganizationId, ProgramName, ProgramTypeDescriptorId) REFERENCES edfi.Program (EducationOrganizationId, ProgramName, ProgramTypeDescriptorId) ; @@ -3932,9 +3908,6 @@ ALTER TABLE edfi.SectionAttendanceTakenEvent ADD CONSTRAINT FK_7bbbe7_Staff FORE REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_7bbbe7_Staff -ON edfi.SectionAttendanceTakenEvent (StaffUSI ASC); - ALTER TABLE edfi.SectionCharacteristic ADD CONSTRAINT FK_1587d8_Section FOREIGN KEY (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) REFERENCES edfi.Section (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) ON DELETE CASCADE @@ -4143,9 +4116,6 @@ ALTER TABLE edfi.StaffAbsenceEvent ADD CONSTRAINT FK_b13bbd_Staff FOREIGN KEY (S REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_b13bbd_Staff -ON edfi.StaffAbsenceEvent (StaffUSI ASC); - ALTER TABLE edfi.StaffAddress ADD CONSTRAINT FK_c0e4a3_AddressTypeDescriptor FOREIGN KEY (AddressTypeDescriptorId) REFERENCES edfi.AddressTypeDescriptor (AddressTypeDescriptorId) ; @@ -4205,9 +4175,6 @@ ALTER TABLE edfi.StaffCohortAssociation ADD CONSTRAINT FK_170747_Staff FOREIGN K REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_170747_Staff -ON edfi.StaffCohortAssociation (StaffUSI ASC); - ALTER TABLE edfi.StaffCredential ADD CONSTRAINT FK_f3917b_Credential FOREIGN KEY (CredentialIdentifier, StateOfIssueStateAbbreviationDescriptorId) REFERENCES edfi.Credential (CredentialIdentifier, StateOfIssueStateAbbreviationDescriptorId) ; @@ -4231,9 +4198,6 @@ ALTER TABLE edfi.StaffDisciplineIncidentAssociation ADD CONSTRAINT FK_af86db_Sta REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_af86db_Staff -ON edfi.StaffDisciplineIncidentAssociation (StaffUSI ASC); - ALTER TABLE edfi.StaffDisciplineIncidentAssociationDisciplineIncidentPart_7fa4be ADD CONSTRAINT FK_7fa4be_DisciplineIncidentParticipationCodeDescriptor FOREIGN KEY (DisciplineIncidentParticipationCodeDescriptorId) REFERENCES edfi.DisciplineIncidentParticipationCodeDescriptor (DisciplineIncidentParticipationCodeDescriptorId) ; @@ -4261,9 +4225,6 @@ ALTER TABLE edfi.StaffEducationOrganizationAssignmentAssociation ADD CONSTRAINT REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_b9be24_Staff -ON edfi.StaffEducationOrganizationAssignmentAssociation (StaffUSI ASC); - ALTER TABLE edfi.StaffEducationOrganizationAssignmentAssociation ADD CONSTRAINT FK_b9be24_StaffClassificationDescriptor FOREIGN KEY (StaffClassificationDescriptorId) REFERENCES edfi.StaffClassificationDescriptor (StaffClassificationDescriptorId) ; @@ -4293,9 +4254,6 @@ ALTER TABLE edfi.StaffEducationOrganizationContactAssociation ADD CONSTRAINT FK_ REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_735dd8_Staff -ON edfi.StaffEducationOrganizationContactAssociation (StaffUSI ASC); - ALTER TABLE edfi.StaffEducationOrganizationContactAssociationAddress ADD CONSTRAINT FK_893629_AddressTypeDescriptor FOREIGN KEY (AddressTypeDescriptorId) REFERENCES edfi.AddressTypeDescriptor (AddressTypeDescriptorId) ; @@ -4375,9 +4333,6 @@ ALTER TABLE edfi.StaffEducationOrganizationEmploymentAssociation ADD CONSTRAINT REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_4e79b9_Staff -ON edfi.StaffEducationOrganizationEmploymentAssociation (StaffUSI ASC); - ALTER TABLE edfi.StaffElectronicMail ADD CONSTRAINT FK_d93663_ElectronicMailTypeDescriptor FOREIGN KEY (ElectronicMailTypeDescriptorId) REFERENCES edfi.ElectronicMailTypeDescriptor (ElectronicMailTypeDescriptorId) ; @@ -4480,9 +4435,6 @@ ALTER TABLE edfi.StaffLeave ADD CONSTRAINT FK_debd4f_Staff FOREIGN KEY (StaffUSI REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_debd4f_Staff -ON edfi.StaffLeave (StaffUSI ASC); - ALTER TABLE edfi.StaffLeave ADD CONSTRAINT FK_debd4f_StaffLeaveEventCategoryDescriptor FOREIGN KEY (StaffLeaveEventCategoryDescriptorId) REFERENCES edfi.StaffLeaveEventCategoryDescriptor (StaffLeaveEventCategoryDescriptorId) ; @@ -4544,9 +4496,6 @@ ALTER TABLE edfi.StaffProgramAssociation ADD CONSTRAINT FK_a9c0d9_Staff FOREIGN REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_a9c0d9_Staff -ON edfi.StaffProgramAssociation (StaffUSI ASC); - ALTER TABLE edfi.StaffRace ADD CONSTRAINT FK_696d9a_RaceDescriptor FOREIGN KEY (RaceDescriptorId) REFERENCES edfi.RaceDescriptor (RaceDescriptorId) ; @@ -4607,9 +4556,6 @@ ALTER TABLE edfi.StaffSchoolAssociation ADD CONSTRAINT FK_ce2080_Staff FOREIGN K REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_ce2080_Staff -ON edfi.StaffSchoolAssociation (StaffUSI ASC); - ALTER TABLE edfi.StaffSchoolAssociationAcademicSubject ADD CONSTRAINT FK_d891fb_AcademicSubjectDescriptor FOREIGN KEY (AcademicSubjectDescriptorId) REFERENCES edfi.AcademicSubjectDescriptor (AcademicSubjectDescriptorId) ; @@ -4653,9 +4599,6 @@ ALTER TABLE edfi.StaffSectionAssociation ADD CONSTRAINT FK_515cb5_Staff FOREIGN REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_515cb5_Staff -ON edfi.StaffSectionAssociation (StaffUSI ASC); - ALTER TABLE edfi.StaffTelephone ADD CONSTRAINT FK_4de15a_Staff FOREIGN KEY (StaffUSI) REFERENCES edfi.Staff (StaffUSI) ON DELETE CASCADE @@ -4797,9 +4740,6 @@ ALTER TABLE edfi.StudentAcademicRecord ADD CONSTRAINT FK_0ff8d6_Student FOREIGN REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_0ff8d6_Student -ON edfi.StudentAcademicRecord (StudentUSI ASC); - ALTER TABLE edfi.StudentAcademicRecord ADD CONSTRAINT FK_0ff8d6_TermDescriptor FOREIGN KEY (TermDescriptorId) REFERENCES edfi.TermDescriptor (TermDescriptorId) ; @@ -4974,9 +4914,6 @@ ALTER TABLE edfi.StudentAssessment ADD CONSTRAINT FK_ee3b2a_Student FOREIGN KEY REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_ee3b2a_Student -ON edfi.StudentAssessment (StudentUSI ASC); - ALTER TABLE edfi.StudentAssessmentAccommodation ADD CONSTRAINT FK_de959d_AccommodationDescriptor FOREIGN KEY (AccommodationDescriptorId) REFERENCES edfi.AccommodationDescriptor (AccommodationDescriptorId) ; @@ -5156,9 +5093,6 @@ ALTER TABLE edfi.StudentCohortAssociation ADD CONSTRAINT FK_369ddc_Student FOREI REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_369ddc_Student -ON edfi.StudentCohortAssociation (StudentUSI ASC); - ALTER TABLE edfi.StudentCohortAssociationSection ADD CONSTRAINT FK_d2362d_Section FOREIGN KEY (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) REFERENCES edfi.Section (LocalCourseCode, SchoolId, SchoolYear, SectionIdentifier, SessionName) ON UPDATE CASCADE @@ -5197,9 +5131,6 @@ ALTER TABLE edfi.StudentCompetencyObjective ADD CONSTRAINT FK_395c07_Student FOR REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_395c07_Student -ON edfi.StudentCompetencyObjective (StudentUSI ASC); - ALTER TABLE edfi.StudentCompetencyObjectiveGeneralStudentProgramAssociation ADD CONSTRAINT FK_005337_GeneralStudentProgramAssociation FOREIGN KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) REFERENCES edfi.GeneralStudentProgramAssociation (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) ; @@ -5284,9 +5215,6 @@ ALTER TABLE edfi.StudentDisciplineIncidentAssociation ADD CONSTRAINT FK_679174_S REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_679174_Student -ON edfi.StudentDisciplineIncidentAssociation (StudentUSI ASC); - ALTER TABLE edfi.StudentDisciplineIncidentAssociation ADD CONSTRAINT FK_679174_StudentParticipationCodeDescriptor FOREIGN KEY (StudentParticipationCodeDescriptorId) REFERENCES edfi.StudentParticipationCodeDescriptor (StudentParticipationCodeDescriptorId) ; @@ -5324,9 +5252,6 @@ ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ADD CONSTRAINT FK_ REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_f4934f_Student -ON edfi.StudentDisciplineIncidentBehaviorAssociation (StudentUSI ASC); - ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociationDisciplineIn_ae6a21 ADD CONSTRAINT FK_ae6a21_DisciplineIncidentParticipationCodeDescriptor FOREIGN KEY (DisciplineIncidentParticipationCodeDescriptorId) REFERENCES edfi.DisciplineIncidentParticipationCodeDescriptor (DisciplineIncidentParticipationCodeDescriptorId) ; @@ -5350,9 +5275,6 @@ ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ADD CONSTRAINT REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_4b43da_Student -ON edfi.StudentDisciplineIncidentNonOffenderAssociation (StudentUSI ASC); - ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociationDisciplin_4c979a ADD CONSTRAINT FK_4c979a_DisciplineIncidentParticipationCodeDescriptor FOREIGN KEY (DisciplineIncidentParticipationCodeDescriptorId) REFERENCES edfi.DisciplineIncidentParticipationCodeDescriptor (DisciplineIncidentParticipationCodeDescriptorId) ; @@ -5436,9 +5358,6 @@ ALTER TABLE edfi.StudentEducationOrganizationAssociation ADD CONSTRAINT FK_8e125 REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_8e1257_Student -ON edfi.StudentEducationOrganizationAssociation (StudentUSI ASC); - ALTER TABLE edfi.StudentEducationOrganizationAssociationAddress ADD CONSTRAINT FK_f9e163_AddressTypeDescriptor FOREIGN KEY (AddressTypeDescriptorId) REFERENCES edfi.AddressTypeDescriptor (AddressTypeDescriptorId) ; @@ -5708,9 +5627,6 @@ ALTER TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ADD CONST REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_42aa64_Student -ON edfi.StudentEducationOrganizationResponsibilityAssociation (StudentUSI ASC); - ALTER TABLE edfi.StudentGradebookEntry ADD CONSTRAINT FK_c2efaa_AssignmentLateStatusDescriptor FOREIGN KEY (AssignmentLateStatusDescriptorId) REFERENCES edfi.AssignmentLateStatusDescriptor (AssignmentLateStatusDescriptorId) ; @@ -5737,9 +5653,6 @@ ALTER TABLE edfi.StudentGradebookEntry ADD CONSTRAINT FK_c2efaa_Student FOREIGN REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_c2efaa_Student -ON edfi.StudentGradebookEntry (StudentUSI ASC); - ALTER TABLE edfi.StudentGradebookEntry ADD CONSTRAINT FK_c2efaa_SubmissionStatusDescriptor FOREIGN KEY (SubmissionStatusDescriptorId) REFERENCES edfi.SubmissionStatusDescriptor (SubmissionStatusDescriptorId) ; @@ -5820,9 +5733,6 @@ ALTER TABLE edfi.StudentInterventionAssociation ADD CONSTRAINT FK_25cb9c_Student REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_25cb9c_Student -ON edfi.StudentInterventionAssociation (StudentUSI ASC); - ALTER TABLE edfi.StudentInterventionAssociationInterventionEffectiveness ADD CONSTRAINT FK_29e870_DiagnosisDescriptor FOREIGN KEY (DiagnosisDescriptorId) REFERENCES edfi.DiagnosisDescriptor (DiagnosisDescriptorId) ; @@ -5881,9 +5791,6 @@ ALTER TABLE edfi.StudentInterventionAttendanceEvent ADD CONSTRAINT FK_631023_Stu REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_631023_Student -ON edfi.StudentInterventionAttendanceEvent (StudentUSI ASC); - ALTER TABLE edfi.StudentLanguageInstructionProgramAssociation ADD CONSTRAINT FK_92de5d_GeneralStudentProgramAssociation FOREIGN KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) REFERENCES edfi.GeneralStudentProgramAssociation (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) ON DELETE CASCADE @@ -5966,9 +5873,6 @@ ALTER TABLE edfi.StudentLearningObjective ADD CONSTRAINT FK_baaa9d_Student FOREI REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_baaa9d_Student -ON edfi.StudentLearningObjective (StudentUSI ASC); - ALTER TABLE edfi.StudentLearningObjectiveGeneralStudentProgramAssociation ADD CONSTRAINT FK_1c30e0_GeneralStudentProgramAssociation FOREIGN KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) REFERENCES edfi.GeneralStudentProgramAssociation (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) ; @@ -6166,9 +6070,6 @@ ALTER TABLE edfi.StudentProgramAttendanceEvent ADD CONSTRAINT FK_317aeb_Student REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_317aeb_Student -ON edfi.StudentProgramAttendanceEvent (StudentUSI ASC); - ALTER TABLE edfi.StudentSchoolAssociation ADD CONSTRAINT FK_857b52_Calendar FOREIGN KEY (CalendarCode, SchoolId, SchoolYear) REFERENCES edfi.Calendar (CalendarCode, SchoolId, SchoolYear) ; @@ -6240,9 +6141,6 @@ ALTER TABLE edfi.StudentSchoolAssociation ADD CONSTRAINT FK_857b52_Student FOREI REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_857b52_Student -ON edfi.StudentSchoolAssociation (StudentUSI ASC); - ALTER TABLE edfi.StudentSchoolAssociationAlternativeGraduationPlan ADD CONSTRAINT FK_70e978_GraduationPlan FOREIGN KEY (AlternativeEducationOrganizationId, AlternativeGraduationPlanTypeDescriptorId, AlternativeGraduationSchoolYear) REFERENCES edfi.GraduationPlan (EducationOrganizationId, GraduationPlanTypeDescriptorId, GraduationSchoolYear) ; @@ -6299,9 +6197,6 @@ ALTER TABLE edfi.StudentSchoolAttendanceEvent ADD CONSTRAINT FK_78fd7f_Student F REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_78fd7f_Student -ON edfi.StudentSchoolAttendanceEvent (StudentUSI ASC); - ALTER TABLE edfi.StudentSchoolFoodServiceProgramAssociation ADD CONSTRAINT FK_82e1e5_GeneralStudentProgramAssociation FOREIGN KEY (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) REFERENCES edfi.GeneralStudentProgramAssociation (BeginDate, EducationOrganizationId, ProgramEducationOrganizationId, ProgramName, ProgramTypeDescriptorId, StudentUSI) ON DELETE CASCADE @@ -6345,9 +6240,6 @@ ALTER TABLE edfi.StudentSectionAssociation ADD CONSTRAINT FK_39aa3c_Student FORE REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_39aa3c_Student -ON edfi.StudentSectionAssociation (StudentUSI ASC); - ALTER TABLE edfi.StudentSectionAttendanceEvent ADD CONSTRAINT FK_61b087_AttendanceEventCategoryDescriptor FOREIGN KEY (AttendanceEventCategoryDescriptorId) REFERENCES edfi.AttendanceEventCategoryDescriptor (AttendanceEventCategoryDescriptorId) ; @@ -6374,9 +6266,6 @@ ALTER TABLE edfi.StudentSectionAttendanceEvent ADD CONSTRAINT FK_61b087_Student REFERENCES edfi.Student (StudentUSI) ; -CREATE INDEX FK_61b087_Student -ON edfi.StudentSectionAttendanceEvent (StudentUSI ASC); - ALTER TABLE edfi.StudentSectionAttendanceEventClassPeriod ADD CONSTRAINT FK_80c6c1_ClassPeriod FOREIGN KEY (ClassPeriodName, SchoolId) REFERENCES edfi.ClassPeriod (ClassPeriodName, SchoolId) ON UPDATE CASCADE @@ -6685,9 +6574,6 @@ ALTER TABLE edfi.SurveyResponseStaffTargetAssociation ADD CONSTRAINT FK_f9457e_S REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_f9457e_Staff -ON edfi.SurveyResponseStaffTargetAssociation (StaffUSI ASC); - ALTER TABLE edfi.SurveyResponseStaffTargetAssociation ADD CONSTRAINT FK_f9457e_SurveyResponse FOREIGN KEY (Namespace, SurveyIdentifier, SurveyResponseIdentifier) REFERENCES edfi.SurveyResponse (Namespace, SurveyIdentifier, SurveyResponseIdentifier) ; @@ -6758,9 +6644,6 @@ ALTER TABLE edfi.SurveySectionResponseStaffTargetAssociation ADD CONSTRAINT FK_3 REFERENCES edfi.Staff (StaffUSI) ; -CREATE INDEX FK_39073d_Staff -ON edfi.SurveySectionResponseStaffTargetAssociation (StaffUSI ASC); - ALTER TABLE edfi.SurveySectionResponseStaffTargetAssociation ADD CONSTRAINT FK_39073d_SurveySectionResponse FOREIGN KEY (Namespace, SurveyIdentifier, SurveyResponseIdentifier, SurveySectionTitle) REFERENCES edfi.SurveySectionResponse (Namespace, SurveyIdentifier, SurveyResponseIdentifier, SurveySectionTitle) ; diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1460-AggregateIdColumns.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1460-AggregateIdColumns.sql new file mode 100644 index 0000000000..ff834b337b --- /dev/null +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1460-AggregateIdColumns.sql @@ -0,0 +1,555 @@ +-- SPDX-License-Identifier: Apache-2.0 +-- Licensed to the Ed-Fi Alliance under one or more agreements. +-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +-- See the LICENSE and NOTICES files in the project root for more information. + + +CREATE SEQUENCE edfi.AcademicWeek_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.AcademicWeek ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.AcademicWeek_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_AcademicWeek_aggid ON edfi.AcademicWeek (AggregateId); + + +CREATE SEQUENCE edfi.AccountabilityRating_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.AccountabilityRating ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.AccountabilityRating_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_AccountabilityRating_aggid ON edfi.AccountabilityRating (AggregateId); + + +CREATE SEQUENCE edfi.Assessment_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Assessment ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Assessment_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Assessment_aggid ON edfi.Assessment (AggregateId); + + +CREATE SEQUENCE edfi.AssessmentItem_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.AssessmentItem ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.AssessmentItem_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_AssessmentItem_aggid ON edfi.AssessmentItem (AggregateId); + + +CREATE SEQUENCE edfi.AssessmentScoreRangeLearningStandard_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.AssessmentScoreRangeLearningStandard ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.AssessmentScoreRangeLearningStandard_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_AssessmentScoreRangeLearningStandard_aggid ON edfi.AssessmentScoreRangeLearningStandard (AggregateId); + + +CREATE SEQUENCE edfi.BalanceSheetDimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.BalanceSheetDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.BalanceSheetDimension_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_BalanceSheetDimension_aggid ON edfi.BalanceSheetDimension (AggregateId); + + +CREATE SEQUENCE edfi.BellSchedule_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.BellSchedule ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.BellSchedule_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_BellSchedule_aggid ON edfi.BellSchedule (AggregateId); + + +CREATE SEQUENCE edfi.Calendar_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Calendar ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Calendar_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Calendar_aggid ON edfi.Calendar (AggregateId); + + +CREATE SEQUENCE edfi.CalendarDate_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.CalendarDate ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.CalendarDate_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_CalendarDate_aggid ON edfi.CalendarDate (AggregateId); + + +CREATE SEQUENCE edfi.ChartOfAccount_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.ChartOfAccount ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.ChartOfAccount_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_ChartOfAccount_aggid ON edfi.ChartOfAccount (AggregateId); + + +CREATE SEQUENCE edfi.ClassPeriod_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.ClassPeriod ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.ClassPeriod_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_ClassPeriod_aggid ON edfi.ClassPeriod (AggregateId); + + +CREATE SEQUENCE edfi.Cohort_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Cohort ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Cohort_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Cohort_aggid ON edfi.Cohort (AggregateId); + + +CREATE SEQUENCE edfi.CommunityProviderLicense_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.CommunityProviderLicense ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.CommunityProviderLicense_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_CommunityProviderLicense_aggid ON edfi.CommunityProviderLicense (AggregateId); + + +CREATE SEQUENCE edfi.CompetencyObjective_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.CompetencyObjective ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.CompetencyObjective_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_CompetencyObjective_aggid ON edfi.CompetencyObjective (AggregateId); + + +CREATE SEQUENCE edfi.Course_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Course ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Course_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Course_aggid ON edfi.Course (AggregateId); + + +CREATE SEQUENCE edfi.CourseOffering_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.CourseOffering ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.CourseOffering_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_CourseOffering_aggid ON edfi.CourseOffering (AggregateId); + + +CREATE SEQUENCE edfi.CourseTranscript_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.CourseTranscript ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.CourseTranscript_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_CourseTranscript_aggid ON edfi.CourseTranscript (AggregateId); + + +CREATE SEQUENCE edfi.Credential_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Credential ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Credential_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Credential_aggid ON edfi.Credential (AggregateId); + + +CREATE SEQUENCE edfi.Descriptor_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Descriptor ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Descriptor_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Descriptor_aggid ON edfi.Descriptor (AggregateId); + + +CREATE SEQUENCE edfi.DescriptorMapping_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.DescriptorMapping ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.DescriptorMapping_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_DescriptorMapping_aggid ON edfi.DescriptorMapping (AggregateId); + + +CREATE SEQUENCE edfi.DisciplineAction_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.DisciplineAction ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.DisciplineAction_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_DisciplineAction_aggid ON edfi.DisciplineAction (AggregateId); + + +CREATE SEQUENCE edfi.DisciplineIncident_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.DisciplineIncident ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.DisciplineIncident_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_DisciplineIncident_aggid ON edfi.DisciplineIncident (AggregateId); + + +CREATE SEQUENCE edfi.EducationContent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.EducationContent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.EducationContent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_EducationContent_aggid ON edfi.EducationContent (AggregateId); + + +CREATE SEQUENCE edfi.EducationOrganization_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.EducationOrganization ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.EducationOrganization_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_EducationOrganization_aggid ON edfi.EducationOrganization (AggregateId); + + +CREATE SEQUENCE edfi.EducationOrganizationInterventionPrescriptionAs_e670ae_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.EducationOrganizationInterventionPrescriptionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.EducationOrganizationInterventionPrescriptionAs_e670ae_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_EducationOrganizationInterventionPrescriptionAs_e670ae_aggid ON edfi.EducationOrganizationInterventionPrescriptionAssociation (AggregateId); + + +CREATE SEQUENCE edfi.EducationOrganizationNetworkAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.EducationOrganizationNetworkAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.EducationOrganizationNetworkAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_EducationOrganizationNetworkAssociation_aggid ON edfi.EducationOrganizationNetworkAssociation (AggregateId); + + +CREATE SEQUENCE edfi.EducationOrganizationPeerAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.EducationOrganizationPeerAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.EducationOrganizationPeerAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_EducationOrganizationPeerAssociation_aggid ON edfi.EducationOrganizationPeerAssociation (AggregateId); + + +CREATE SEQUENCE edfi.FeederSchoolAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.FeederSchoolAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.FeederSchoolAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_FeederSchoolAssociation_aggid ON edfi.FeederSchoolAssociation (AggregateId); + + +CREATE SEQUENCE edfi.FunctionDimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.FunctionDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.FunctionDimension_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_FunctionDimension_aggid ON edfi.FunctionDimension (AggregateId); + + +CREATE SEQUENCE edfi.FundDimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.FundDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.FundDimension_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_FundDimension_aggid ON edfi.FundDimension (AggregateId); + + +CREATE SEQUENCE edfi.GeneralStudentProgramAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.GeneralStudentProgramAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.GeneralStudentProgramAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_GeneralStudentProgramAssociation_aggid ON edfi.GeneralStudentProgramAssociation (AggregateId); + + +CREATE SEQUENCE edfi.Grade_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Grade ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Grade_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Grade_aggid ON edfi.Grade (AggregateId); + + +CREATE SEQUENCE edfi.GradebookEntry_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.GradebookEntry ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.GradebookEntry_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_GradebookEntry_aggid ON edfi.GradebookEntry (AggregateId); + + +CREATE SEQUENCE edfi.GradingPeriod_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.GradingPeriod ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.GradingPeriod_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_GradingPeriod_aggid ON edfi.GradingPeriod (AggregateId); + + +CREATE SEQUENCE edfi.GraduationPlan_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.GraduationPlan ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.GraduationPlan_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_GraduationPlan_aggid ON edfi.GraduationPlan (AggregateId); + + +CREATE SEQUENCE edfi.Intervention_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Intervention ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Intervention_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Intervention_aggid ON edfi.Intervention (AggregateId); + + +CREATE SEQUENCE edfi.InterventionPrescription_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.InterventionPrescription ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.InterventionPrescription_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_InterventionPrescription_aggid ON edfi.InterventionPrescription (AggregateId); + + +CREATE SEQUENCE edfi.InterventionStudy_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.InterventionStudy ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.InterventionStudy_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_InterventionStudy_aggid ON edfi.InterventionStudy (AggregateId); + + +CREATE SEQUENCE edfi.LearningObjective_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.LearningObjective ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.LearningObjective_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_LearningObjective_aggid ON edfi.LearningObjective (AggregateId); + + +CREATE SEQUENCE edfi.LearningStandard_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.LearningStandard ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.LearningStandard_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_LearningStandard_aggid ON edfi.LearningStandard (AggregateId); + + +CREATE SEQUENCE edfi.LearningStandardEquivalenceAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.LearningStandardEquivalenceAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.LearningStandardEquivalenceAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_LearningStandardEquivalenceAssociation_aggid ON edfi.LearningStandardEquivalenceAssociation (AggregateId); + + +CREATE SEQUENCE edfi.LocalAccount_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.LocalAccount ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.LocalAccount_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_LocalAccount_aggid ON edfi.LocalAccount (AggregateId); + + +CREATE SEQUENCE edfi.LocalActual_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.LocalActual ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.LocalActual_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_LocalActual_aggid ON edfi.LocalActual (AggregateId); + + +CREATE SEQUENCE edfi.LocalBudget_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.LocalBudget ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.LocalBudget_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_LocalBudget_aggid ON edfi.LocalBudget (AggregateId); + + +CREATE SEQUENCE edfi.LocalContractedStaff_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.LocalContractedStaff ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.LocalContractedStaff_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_LocalContractedStaff_aggid ON edfi.LocalContractedStaff (AggregateId); + + +CREATE SEQUENCE edfi.LocalEncumbrance_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.LocalEncumbrance ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.LocalEncumbrance_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_LocalEncumbrance_aggid ON edfi.LocalEncumbrance (AggregateId); + + +CREATE SEQUENCE edfi.LocalPayroll_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.LocalPayroll ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.LocalPayroll_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_LocalPayroll_aggid ON edfi.LocalPayroll (AggregateId); + + +CREATE SEQUENCE edfi.Location_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Location ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Location_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Location_aggid ON edfi.Location (AggregateId); + + +CREATE SEQUENCE edfi.ObjectDimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.ObjectDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.ObjectDimension_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_ObjectDimension_aggid ON edfi.ObjectDimension (AggregateId); + + +CREATE SEQUENCE edfi.ObjectiveAssessment_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.ObjectiveAssessment ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.ObjectiveAssessment_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_ObjectiveAssessment_aggid ON edfi.ObjectiveAssessment (AggregateId); + + +CREATE SEQUENCE edfi.OpenStaffPosition_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.OpenStaffPosition ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.OpenStaffPosition_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_OpenStaffPosition_aggid ON edfi.OpenStaffPosition (AggregateId); + + +CREATE SEQUENCE edfi.OperationalUnitDimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.OperationalUnitDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.OperationalUnitDimension_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_OperationalUnitDimension_aggid ON edfi.OperationalUnitDimension (AggregateId); + + +CREATE SEQUENCE edfi.Parent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Parent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Parent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Parent_aggid ON edfi.Parent (AggregateId); + + +CREATE SEQUENCE edfi.Person_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Person ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Person_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Person_aggid ON edfi.Person (AggregateId); + + +CREATE SEQUENCE edfi.PostSecondaryEvent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.PostSecondaryEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.PostSecondaryEvent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_PostSecondaryEvent_aggid ON edfi.PostSecondaryEvent (AggregateId); + + +CREATE SEQUENCE edfi.Program_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Program ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Program_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Program_aggid ON edfi.Program (AggregateId); + + +CREATE SEQUENCE edfi.ProgramDimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.ProgramDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.ProgramDimension_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_ProgramDimension_aggid ON edfi.ProgramDimension (AggregateId); + + +CREATE SEQUENCE edfi.ProjectDimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.ProjectDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.ProjectDimension_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_ProjectDimension_aggid ON edfi.ProjectDimension (AggregateId); + + +CREATE SEQUENCE edfi.ReportCard_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.ReportCard ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.ReportCard_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_ReportCard_aggid ON edfi.ReportCard (AggregateId); + + +CREATE SEQUENCE edfi.RestraintEvent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.RestraintEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.RestraintEvent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_RestraintEvent_aggid ON edfi.RestraintEvent (AggregateId); + + +CREATE SEQUENCE edfi.SchoolYearType_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SchoolYearType ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SchoolYearType_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SchoolYearType_aggid ON edfi.SchoolYearType (AggregateId); + + +CREATE SEQUENCE edfi.Section_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Section ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Section_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Section_aggid ON edfi.Section (AggregateId); + + +CREATE SEQUENCE edfi.SectionAttendanceTakenEvent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SectionAttendanceTakenEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SectionAttendanceTakenEvent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SectionAttendanceTakenEvent_aggid ON edfi.SectionAttendanceTakenEvent (AggregateId); + + +CREATE SEQUENCE edfi.Session_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Session ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Session_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Session_aggid ON edfi.Session (AggregateId); + + +CREATE SEQUENCE edfi.SourceDimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SourceDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SourceDimension_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SourceDimension_aggid ON edfi.SourceDimension (AggregateId); + + +CREATE SEQUENCE edfi.Staff_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Staff ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Staff_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Staff_aggid ON edfi.Staff (AggregateId); + + +CREATE SEQUENCE edfi.StaffAbsenceEvent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffAbsenceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffAbsenceEvent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffAbsenceEvent_aggid ON edfi.StaffAbsenceEvent (AggregateId); + + +CREATE SEQUENCE edfi.StaffCohortAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffCohortAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffCohortAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffCohortAssociation_aggid ON edfi.StaffCohortAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StaffDisciplineIncidentAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffDisciplineIncidentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffDisciplineIncidentAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffDisciplineIncidentAssociation_aggid ON edfi.StaffDisciplineIncidentAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StaffEducationOrganizationAssignmentAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffEducationOrganizationAssignmentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffEducationOrganizationAssignmentAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffEducationOrganizationAssignmentAssociation_aggid ON edfi.StaffEducationOrganizationAssignmentAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StaffEducationOrganizationContactAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffEducationOrganizationContactAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffEducationOrganizationContactAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffEducationOrganizationContactAssociation_aggid ON edfi.StaffEducationOrganizationContactAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StaffEducationOrganizationEmploymentAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffEducationOrganizationEmploymentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffEducationOrganizationEmploymentAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffEducationOrganizationEmploymentAssociation_aggid ON edfi.StaffEducationOrganizationEmploymentAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StaffLeave_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffLeave ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffLeave_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffLeave_aggid ON edfi.StaffLeave (AggregateId); + + +CREATE SEQUENCE edfi.StaffProgramAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffProgramAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffProgramAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffProgramAssociation_aggid ON edfi.StaffProgramAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StaffSchoolAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffSchoolAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffSchoolAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffSchoolAssociation_aggid ON edfi.StaffSchoolAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StaffSectionAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StaffSectionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StaffSectionAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StaffSectionAssociation_aggid ON edfi.StaffSectionAssociation (AggregateId); + + +CREATE SEQUENCE edfi.Student_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Student ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Student_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Student_aggid ON edfi.Student (AggregateId); + + +CREATE SEQUENCE edfi.StudentAcademicRecord_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentAcademicRecord ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentAcademicRecord_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentAcademicRecord_aggid ON edfi.StudentAcademicRecord (AggregateId); + + +CREATE SEQUENCE edfi.StudentAssessment_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentAssessment ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentAssessment_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentAssessment_aggid ON edfi.StudentAssessment (AggregateId); + + +CREATE SEQUENCE edfi.StudentAssessmentEducationOrganizationAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentAssessmentEducationOrganizationAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentAssessmentEducationOrganizationAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentAssessmentEducationOrganizationAssociation_aggid ON edfi.StudentAssessmentEducationOrganizationAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentCohortAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentCohortAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentCohortAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentCohortAssociation_aggid ON edfi.StudentCohortAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentCompetencyObjective_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentCompetencyObjective ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentCompetencyObjective_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentCompetencyObjective_aggid ON edfi.StudentCompetencyObjective (AggregateId); + + +CREATE SEQUENCE edfi.StudentDisciplineIncidentAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentDisciplineIncidentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentDisciplineIncidentAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentDisciplineIncidentAssociation_aggid ON edfi.StudentDisciplineIncidentAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentDisciplineIncidentBehaviorAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentDisciplineIncidentBehaviorAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentDisciplineIncidentBehaviorAssociation_aggid ON edfi.StudentDisciplineIncidentBehaviorAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentDisciplineIncidentNonOffenderAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentDisciplineIncidentNonOffenderAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentDisciplineIncidentNonOffenderAssociation_aggid ON edfi.StudentDisciplineIncidentNonOffenderAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentEducationOrganizationAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentEducationOrganizationAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentEducationOrganizationAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentEducationOrganizationAssociation_aggid ON edfi.StudentEducationOrganizationAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentEducationOrganizationResponsibilityAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentEducationOrganizationResponsibilityAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentEducationOrganizationResponsibilityAssociation_aggid ON edfi.StudentEducationOrganizationResponsibilityAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentGradebookEntry_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentGradebookEntry ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentGradebookEntry_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentGradebookEntry_aggid ON edfi.StudentGradebookEntry (AggregateId); + + +CREATE SEQUENCE edfi.StudentInterventionAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentInterventionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentInterventionAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentInterventionAssociation_aggid ON edfi.StudentInterventionAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentInterventionAttendanceEvent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentInterventionAttendanceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentInterventionAttendanceEvent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentInterventionAttendanceEvent_aggid ON edfi.StudentInterventionAttendanceEvent (AggregateId); + + +CREATE SEQUENCE edfi.StudentLearningObjective_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentLearningObjective ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentLearningObjective_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentLearningObjective_aggid ON edfi.StudentLearningObjective (AggregateId); + + +CREATE SEQUENCE edfi.StudentParentAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentParentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentParentAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentParentAssociation_aggid ON edfi.StudentParentAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentProgramAttendanceEvent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentProgramAttendanceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentProgramAttendanceEvent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentProgramAttendanceEvent_aggid ON edfi.StudentProgramAttendanceEvent (AggregateId); + + +CREATE SEQUENCE edfi.StudentSchoolAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentSchoolAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentSchoolAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentSchoolAssociation_aggid ON edfi.StudentSchoolAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentSchoolAttendanceEvent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentSchoolAttendanceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentSchoolAttendanceEvent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentSchoolAttendanceEvent_aggid ON edfi.StudentSchoolAttendanceEvent (AggregateId); + + +CREATE SEQUENCE edfi.StudentSectionAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentSectionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentSectionAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentSectionAssociation_aggid ON edfi.StudentSectionAssociation (AggregateId); + + +CREATE SEQUENCE edfi.StudentSectionAttendanceEvent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.StudentSectionAttendanceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.StudentSectionAttendanceEvent_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_StudentSectionAttendanceEvent_aggid ON edfi.StudentSectionAttendanceEvent (AggregateId); + + +CREATE SEQUENCE edfi.Survey_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.Survey ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.Survey_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_Survey_aggid ON edfi.Survey (AggregateId); + + +CREATE SEQUENCE edfi.SurveyCourseAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveyCourseAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveyCourseAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveyCourseAssociation_aggid ON edfi.SurveyCourseAssociation (AggregateId); + + +CREATE SEQUENCE edfi.SurveyProgramAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveyProgramAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveyProgramAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveyProgramAssociation_aggid ON edfi.SurveyProgramAssociation (AggregateId); + + +CREATE SEQUENCE edfi.SurveyQuestion_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveyQuestion ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveyQuestion_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveyQuestion_aggid ON edfi.SurveyQuestion (AggregateId); + + +CREATE SEQUENCE edfi.SurveyQuestionResponse_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveyQuestionResponse ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveyQuestionResponse_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveyQuestionResponse_aggid ON edfi.SurveyQuestionResponse (AggregateId); + + +CREATE SEQUENCE edfi.SurveyResponse_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveyResponse ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveyResponse_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveyResponse_aggid ON edfi.SurveyResponse (AggregateId); + + +CREATE SEQUENCE edfi.SurveyResponseEducationOrganizationTargetAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveyResponseEducationOrganizationTargetAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveyResponseEducationOrganizationTargetAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveyResponseEducationOrganizationTargetAssociation_aggid ON edfi.SurveyResponseEducationOrganizationTargetAssociation (AggregateId); + + +CREATE SEQUENCE edfi.SurveyResponseStaffTargetAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveyResponseStaffTargetAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveyResponseStaffTargetAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveyResponseStaffTargetAssociation_aggid ON edfi.SurveyResponseStaffTargetAssociation (AggregateId); + + +CREATE SEQUENCE edfi.SurveySection_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveySection ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveySection_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveySection_aggid ON edfi.SurveySection (AggregateId); + + +CREATE SEQUENCE edfi.SurveySectionAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveySectionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveySectionAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveySectionAssociation_aggid ON edfi.SurveySectionAssociation (AggregateId); + + +CREATE SEQUENCE edfi.SurveySectionResponse_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveySectionResponse ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveySectionResponse_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveySectionResponse_aggid ON edfi.SurveySectionResponse (AggregateId); + + +CREATE SEQUENCE edfi.SurveySectionResponseEducationOrganizationTarge_730be1_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveySectionResponseEducationOrganizationTargetAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveySectionResponseEducationOrganizationTarge_730be1_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveySectionResponseEducationOrganizationTarge_730be1_aggid ON edfi.SurveySectionResponseEducationOrganizationTargetAssociation (AggregateId); + + +CREATE SEQUENCE edfi.SurveySectionResponseStaffTargetAssociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; +ALTER TABLE edfi.SurveySectionResponseStaffTargetAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.SurveySectionResponseStaffTargetAssociation_aggseq'), ADD COLUMN AggregateData bytea; +CREATE INDEX ix_SurveySectionResponseStaffTargetAssociation_aggid ON edfi.SurveySectionResponseStaffTargetAssociation (AggregateId); + diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1465-UpdateIndex-EdOrgIdsRelationship-AuthPerformance.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1465-UpdateIndex-EdOrgIdsRelationship-AuthPerformance.sql new file mode 100644 index 0000000000..398a331fe2 --- /dev/null +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1465-UpdateIndex-EdOrgIdsRelationship-AuthPerformance.sql @@ -0,0 +1,327 @@ +-- SPDX-License-Identifier: Apache-2.0 +-- Licensed to the Ed-Fi Alliance under one or more agreements. +-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +-- See the LICENSE and NOTICES files in the project root for more information. + + +DROP INDEX IF EXISTS IX_AcademicWeek_SchoolId; +CREATE INDEX IF NOT EXISTS IX_AcademicWeek_SchoolId ON edfi.AcademicWeek(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_AccountabilityRating_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_AccountabilityRating_EducationOrganizationId ON edfi.AccountabilityRating(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Assessment_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_Assessment_EducationOrganizationId ON edfi.Assessment(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_BellSchedule_SchoolId; +CREATE INDEX IF NOT EXISTS IX_BellSchedule_SchoolId ON edfi.BellSchedule(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Calendar_SchoolId; +CREATE INDEX IF NOT EXISTS IX_Calendar_SchoolId ON edfi.Calendar(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CalendarDate_SchoolId; +CREATE INDEX IF NOT EXISTS IX_CalendarDate_SchoolId ON edfi.CalendarDate(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_ChartOfAccount_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_ChartOfAccount_EducationOrganizationId ON edfi.ChartOfAccount(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_ClassPeriod_SchoolId; +CREATE INDEX IF NOT EXISTS IX_ClassPeriod_SchoolId ON edfi.ClassPeriod(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Cohort_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_Cohort_EducationOrganizationId ON edfi.Cohort(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CommunityProviderLicense_CommunityProviderId; +CREATE INDEX IF NOT EXISTS IX_CommunityProviderLicense_CommunityProviderId ON edfi.CommunityProviderLicense(CommunityProviderId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CompetencyObjective_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_CompetencyObjective_EducationOrganizationId ON edfi.CompetencyObjective(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Course_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_Course_EducationOrganizationId ON edfi.Course(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CourseOffering_SchoolId; +CREATE INDEX IF NOT EXISTS IX_CourseOffering_SchoolId ON edfi.CourseOffering(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CourseOffering_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_CourseOffering_EducationOrganizationId ON edfi.CourseOffering(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_CourseTranscript_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_CourseTranscript_EducationOrganizationId ON edfi.CourseTranscript(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_CourseTranscript_StudentUSI ON edfi.CourseTranscript(StudentUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_DisciplineAction_StudentUSI ON edfi.DisciplineAction(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_DisciplineIncident_SchoolId; +CREATE INDEX IF NOT EXISTS IX_DisciplineIncident_SchoolId ON edfi.DisciplineIncident(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_DisciplineIncident_StaffUSI ON edfi.DisciplineIncident(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_EducationOrganization_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_EducationOrganization_EducationOrganizationId ON edfi.EducationOrganization(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_EducationOrganizationInterventionPrescriptionAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_EducationOrganizationInterventionPrescriptionAssociation_EducationOrganizationId ON edfi.EducationOrganizationInterventionPrescriptionAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_EducationOrganizationNetworkAssociation_EducationOrganizationNetworkId; +CREATE INDEX IF NOT EXISTS IX_EducationOrganizationNetworkAssociation_EducationOrganizationNetworkId ON edfi.EducationOrganizationNetworkAssociation(EducationOrganizationNetworkId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_EducationOrganizationPeerAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_EducationOrganizationPeerAssociation_EducationOrganizationId ON edfi.EducationOrganizationPeerAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_FeederSchoolAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_FeederSchoolAssociation_SchoolId ON edfi.FeederSchoolAssociation(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_GeneralStudentProgramAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_GeneralStudentProgramAssociation_EducationOrganizationId ON edfi.GeneralStudentProgramAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_GeneralStudentProgramAssociation_StudentUSI ON edfi.GeneralStudentProgramAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Grade_SchoolId; +CREATE INDEX IF NOT EXISTS IX_Grade_SchoolId ON edfi.Grade(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_Grade_StudentUSI ON edfi.Grade(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_GradebookEntry_SchoolId; +CREATE INDEX IF NOT EXISTS IX_GradebookEntry_SchoolId ON edfi.GradebookEntry(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_GradingPeriod_SchoolId; +CREATE INDEX IF NOT EXISTS IX_GradingPeriod_SchoolId ON edfi.GradingPeriod(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_GraduationPlan_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_GraduationPlan_EducationOrganizationId ON edfi.GraduationPlan(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Intervention_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_Intervention_EducationOrganizationId ON edfi.Intervention(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_InterventionPrescription_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_InterventionPrescription_EducationOrganizationId ON edfi.InterventionPrescription(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_InterventionStudy_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_InterventionStudy_EducationOrganizationId ON edfi.InterventionStudy(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalAccount_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_LocalAccount_EducationOrganizationId ON edfi.LocalAccount(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalActual_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_LocalActual_EducationOrganizationId ON edfi.LocalActual(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalBudget_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_LocalBudget_EducationOrganizationId ON edfi.LocalBudget(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalContractedStaff_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_LocalContractedStaff_EducationOrganizationId ON edfi.LocalContractedStaff(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_LocalContractedStaff_StaffUSI ON edfi.LocalContractedStaff(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalEncumbrance_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_LocalEncumbrance_EducationOrganizationId ON edfi.LocalEncumbrance(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_LocalPayroll_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_LocalPayroll_EducationOrganizationId ON edfi.LocalPayroll(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_LocalPayroll_StaffUSI ON edfi.LocalPayroll(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Location_SchoolId; +CREATE INDEX IF NOT EXISTS IX_Location_SchoolId ON edfi.Location(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_OpenStaffPosition_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_OpenStaffPosition_EducationOrganizationId ON edfi.OpenStaffPosition(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_Parent_ParentUSI ON edfi.Parent(ParentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_PostSecondaryEvent_PostSecondaryInstitutionId; +CREATE INDEX IF NOT EXISTS IX_PostSecondaryEvent_PostSecondaryInstitutionId ON edfi.PostSecondaryEvent(PostSecondaryInstitutionId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_PostSecondaryEvent_StudentUSI ON edfi.PostSecondaryEvent(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Program_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_Program_EducationOrganizationId ON edfi.Program(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_ReportCard_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_ReportCard_EducationOrganizationId ON edfi.ReportCard(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_ReportCard_StudentUSI ON edfi.ReportCard(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_RestraintEvent_SchoolId; +CREATE INDEX IF NOT EXISTS IX_RestraintEvent_SchoolId ON edfi.RestraintEvent(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_RestraintEvent_StudentUSI ON edfi.RestraintEvent(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Section_SchoolId; +CREATE INDEX IF NOT EXISTS IX_Section_SchoolId ON edfi.Section(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SectionAttendanceTakenEvent_SchoolId; +CREATE INDEX IF NOT EXISTS IX_SectionAttendanceTakenEvent_SchoolId ON edfi.SectionAttendanceTakenEvent(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_SectionAttendanceTakenEvent_StaffUSI ON edfi.SectionAttendanceTakenEvent(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Session_SchoolId; +CREATE INDEX IF NOT EXISTS IX_Session_SchoolId ON edfi.Session(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_Staff_StaffUSI ON edfi.Staff(StaffUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffAbsenceEvent_StaffUSI ON edfi.StaffAbsenceEvent(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StaffCohortAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StaffCohortAssociation_EducationOrganizationId ON edfi.StaffCohortAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffCohortAssociation_StaffUSI ON edfi.StaffCohortAssociation(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StaffDisciplineIncidentAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StaffDisciplineIncidentAssociation_SchoolId ON edfi.StaffDisciplineIncidentAssociation(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffDisciplineIncidentAssociation_StaffUSI ON edfi.StaffDisciplineIncidentAssociation(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StaffEducationOrganizationAssignmentAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StaffEducationOrganizationAssignmentAssociation_EducationOrganizationId ON edfi.StaffEducationOrganizationAssignmentAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffEducationOrganizationAssignmentAssociation_StaffUSI ON edfi.StaffEducationOrganizationAssignmentAssociation(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StaffEducationOrganizationContactAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StaffEducationOrganizationContactAssociation_EducationOrganizationId ON edfi.StaffEducationOrganizationContactAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffEducationOrganizationContactAssociation_StaffUSI ON edfi.StaffEducationOrganizationContactAssociation(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StaffEducationOrganizationEmploymentAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StaffEducationOrganizationEmploymentAssociation_EducationOrganizationId ON edfi.StaffEducationOrganizationEmploymentAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffEducationOrganizationEmploymentAssociation_StaffUSI ON edfi.StaffEducationOrganizationEmploymentAssociation(StaffUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffLeave_StaffUSI ON edfi.StaffLeave(StaffUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffProgramAssociation_StaffUSI ON edfi.StaffProgramAssociation(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StaffSchoolAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StaffSchoolAssociation_SchoolId ON edfi.StaffSchoolAssociation(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffSchoolAssociation_StaffUSI ON edfi.StaffSchoolAssociation(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StaffSectionAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StaffSectionAssociation_SchoolId ON edfi.StaffSectionAssociation(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StaffSectionAssociation_StaffUSI ON edfi.StaffSectionAssociation(StaffUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_Student_StudentUSI ON edfi.Student(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentAcademicRecord_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StudentAcademicRecord_EducationOrganizationId ON edfi.StudentAcademicRecord(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentAcademicRecord_StudentUSI ON edfi.StudentAcademicRecord(StudentUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentAssessment_StudentUSI ON edfi.StudentAssessment(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentAssessmentEducationOrganizationAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StudentAssessmentEducationOrganizationAssociation_EducationOrganizationId ON edfi.StudentAssessmentEducationOrganizationAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentAssessmentEducationOrganizationAssociation_StudentUSI ON edfi.StudentAssessmentEducationOrganizationAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentCohortAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StudentCohortAssociation_EducationOrganizationId ON edfi.StudentCohortAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentCohortAssociation_StudentUSI ON edfi.StudentCohortAssociation(StudentUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentCompetencyObjective_StudentUSI ON edfi.StudentCompetencyObjective(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentDisciplineIncidentAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StudentDisciplineIncidentAssociation_SchoolId ON edfi.StudentDisciplineIncidentAssociation(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentDisciplineIncidentAssociation_StudentUSI ON edfi.StudentDisciplineIncidentAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentDisciplineIncidentBehaviorAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StudentDisciplineIncidentBehaviorAssociation_SchoolId ON edfi.StudentDisciplineIncidentBehaviorAssociation(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentDisciplineIncidentBehaviorAssociation_StudentUSI ON edfi.StudentDisciplineIncidentBehaviorAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentDisciplineIncidentNonOffenderAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StudentDisciplineIncidentNonOffenderAssociation_SchoolId ON edfi.StudentDisciplineIncidentNonOffenderAssociation(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentDisciplineIncidentNonOffenderAssociation_StudentUSI ON edfi.StudentDisciplineIncidentNonOffenderAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentEducationOrganizationAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StudentEducationOrganizationAssociation_EducationOrganizationId ON edfi.StudentEducationOrganizationAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentEducationOrganizationAssociation_StudentUSI ON edfi.StudentEducationOrganizationAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentEducationOrganizationResponsibilityAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StudentEducationOrganizationResponsibilityAssociation_EducationOrganizationId ON edfi.StudentEducationOrganizationResponsibilityAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentEducationOrganizationResponsibilityAssociation_StudentUSI ON edfi.StudentEducationOrganizationResponsibilityAssociation(StudentUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentGradebookEntry_StudentUSI ON edfi.StudentGradebookEntry(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentInterventionAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StudentInterventionAssociation_EducationOrganizationId ON edfi.StudentInterventionAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentInterventionAssociation_StudentUSI ON edfi.StudentInterventionAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentInterventionAttendanceEvent_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StudentInterventionAttendanceEvent_EducationOrganizationId ON edfi.StudentInterventionAttendanceEvent(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentInterventionAttendanceEvent_StudentUSI ON edfi.StudentInterventionAttendanceEvent(StudentUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentLearningObjective_StudentUSI ON edfi.StudentLearningObjective(StudentUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentParentAssociation_ParentUSI ON edfi.StudentParentAssociation(ParentUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentParentAssociation_StudentUSI ON edfi.StudentParentAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentProgramAttendanceEvent_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StudentProgramAttendanceEvent_EducationOrganizationId ON edfi.StudentProgramAttendanceEvent(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentProgramAttendanceEvent_StudentUSI ON edfi.StudentProgramAttendanceEvent(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentSchoolAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StudentSchoolAssociation_SchoolId ON edfi.StudentSchoolAssociation(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentSchoolAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_StudentSchoolAssociation_EducationOrganizationId ON edfi.StudentSchoolAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentSchoolAssociation_StudentUSI ON edfi.StudentSchoolAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentSchoolAttendanceEvent_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StudentSchoolAttendanceEvent_SchoolId ON edfi.StudentSchoolAttendanceEvent(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentSchoolAttendanceEvent_StudentUSI ON edfi.StudentSchoolAttendanceEvent(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentSectionAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StudentSectionAssociation_SchoolId ON edfi.StudentSectionAssociation(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentSectionAssociation_StudentUSI ON edfi.StudentSectionAssociation(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_StudentSectionAttendanceEvent_SchoolId; +CREATE INDEX IF NOT EXISTS IX_StudentSectionAttendanceEvent_SchoolId ON edfi.StudentSectionAttendanceEvent(SchoolId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_StudentSectionAttendanceEvent_StudentUSI ON edfi.StudentSectionAttendanceEvent(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Survey_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_Survey_EducationOrganizationId ON edfi.Survey(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_Survey_SchoolId; +CREATE INDEX IF NOT EXISTS IX_Survey_SchoolId ON edfi.Survey(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SurveyCourseAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_SurveyCourseAssociation_EducationOrganizationId ON edfi.SurveyCourseAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SurveyProgramAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_SurveyProgramAssociation_EducationOrganizationId ON edfi.SurveyProgramAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_SurveyResponse_ParentUSI ON edfi.SurveyResponse(ParentUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_SurveyResponse_StaffUSI ON edfi.SurveyResponse(StaffUSI) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_SurveyResponse_StudentUSI ON edfi.SurveyResponse(StudentUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SurveyResponseEducationOrganizationTargetAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_SurveyResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON edfi.SurveyResponseEducationOrganizationTargetAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_SurveyResponseStaffTargetAssociation_StaffUSI ON edfi.SurveyResponseStaffTargetAssociation(StaffUSI) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SurveySectionAssociation_SchoolId; +CREATE INDEX IF NOT EXISTS IX_SurveySectionAssociation_SchoolId ON edfi.SurveySectionAssociation(SchoolId) INCLUDE (AggregateId); + +DROP INDEX IF EXISTS IX_SurveySectionResponseEducationOrganizationTargetAssociation_EducationOrganizationId; +CREATE INDEX IF NOT EXISTS IX_SurveySectionResponseEducationOrganizationTargetAssociation_EducationOrganizationId ON edfi.SurveySectionResponseEducationOrganizationTargetAssociation(EducationOrganizationId) INCLUDE (AggregateId); + +CREATE INDEX IF NOT EXISTS IX_SurveySectionResponseStaffTargetAssociation_StaffUSI ON edfi.SurveySectionResponseStaffTargetAssociation(StaffUSI) INCLUDE (AggregateId); diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/Changes/0230-CreateIndirectUpdateCascadeTriggers.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/Changes/0230-CreateIndirectUpdateCascadeTriggers.sql new file mode 100644 index 0000000000..1e82f54862 --- /dev/null +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/Changes/0230-CreateIndirectUpdateCascadeTriggers.sql @@ -0,0 +1,232 @@ +-- SPDX-License-Identifier: Apache-2.0 +-- Licensed to the Ed-Fi Alliance under one or more agreements. +-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. +-- See the LICENSE and NOTICES files in the project root for more information. + +CREATE OR REPLACE FUNCTION edfi.update_Assessment_lastmodifieddate() +RETURNS TRIGGER AS $$ +BEGIN + -- Check if any volatile foreign key values have changed + IF NEW.LocalCourseCode IS DISTINCT FROM OLD.LocalCourseCode + OR NEW.SchoolId IS DISTINCT FROM OLD.SchoolId + OR NEW.SchoolYear IS DISTINCT FROM OLD.SchoolYear + OR NEW.SectionIdentifier IS DISTINCT FROM OLD.SectionIdentifier + OR NEW.SessionName IS DISTINCT FROM OLD.SessionName + THEN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE edfi.Assessment rt + SET LastModifiedDate = NOW() + WHERE rt.AssessmentIdentifier = NEW.AssessmentIdentifier + AND rt.Namespace = NEW.Namespace; + END IF; + RETURN NEW; +END; +$$ LANGUAGE plpgsql; + +CREATE TRIGGER trg_edfi_AssessmentSection_afterupdate +AFTER UPDATE ON edfi.AssessmentSection +FOR EACH ROW +EXECUTE FUNCTION edfi.update_Assessment_lastmodifieddate(); + +CREATE OR REPLACE FUNCTION edfi.update_BellSchedule_lastmodifieddate() +RETURNS TRIGGER AS $$ +BEGIN + -- Check if any volatile foreign key values have changed + IF NEW.ClassPeriodName IS DISTINCT FROM OLD.ClassPeriodName + OR NEW.SchoolId IS DISTINCT FROM OLD.SchoolId + THEN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE edfi.BellSchedule rt + SET LastModifiedDate = NOW() + WHERE rt.BellScheduleName = NEW.BellScheduleName + AND rt.SchoolId = NEW.SchoolId; + END IF; + RETURN NEW; +END; +$$ LANGUAGE plpgsql; + +CREATE TRIGGER trg_edfi_BellScheduleClassPeriod_afterupdate +AFTER UPDATE ON edfi.BellScheduleClassPeriod +FOR EACH ROW +EXECUTE FUNCTION edfi.update_BellSchedule_lastmodifieddate(); + +CREATE OR REPLACE FUNCTION edfi.update_ReportCard_lastmodifieddate() +RETURNS TRIGGER AS $$ +BEGIN + -- Check if any volatile foreign key values have changed + IF NEW.BeginDate IS DISTINCT FROM OLD.BeginDate + OR NEW.GradeTypeDescriptorId IS DISTINCT FROM OLD.GradeTypeDescriptorId + OR NEW.GradingPeriodDescriptorId IS DISTINCT FROM OLD.GradingPeriodDescriptorId + OR NEW.GradingPeriodSequence IS DISTINCT FROM OLD.GradingPeriodSequence + OR NEW.GradingPeriodSchoolYear IS DISTINCT FROM OLD.GradingPeriodSchoolYear + OR NEW.LocalCourseCode IS DISTINCT FROM OLD.LocalCourseCode + OR NEW.SchoolId IS DISTINCT FROM OLD.SchoolId + OR NEW.SchoolYear IS DISTINCT FROM OLD.SchoolYear + OR NEW.SectionIdentifier IS DISTINCT FROM OLD.SectionIdentifier + OR NEW.SessionName IS DISTINCT FROM OLD.SessionName + OR NEW.StudentUSI IS DISTINCT FROM OLD.StudentUSI + THEN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE edfi.ReportCard rt + SET LastModifiedDate = NOW() + WHERE rt.EducationOrganizationId = NEW.EducationOrganizationId + AND rt.GradingPeriodDescriptorId = NEW.GradingPeriodDescriptorId + AND rt.GradingPeriodSequence = NEW.GradingPeriodSequence + AND rt.GradingPeriodSchoolId = NEW.GradingPeriodSchoolId + AND rt.GradingPeriodSchoolYear = NEW.GradingPeriodSchoolYear + AND rt.StudentUSI = NEW.StudentUSI; + END IF; + RETURN NEW; +END; +$$ LANGUAGE plpgsql; + +CREATE TRIGGER trg_edfi_ReportCardGrade_afterupdate +AFTER UPDATE ON edfi.ReportCardGrade +FOR EACH ROW +EXECUTE FUNCTION edfi.update_ReportCard_lastmodifieddate(); + +CREATE OR REPLACE FUNCTION edfi.update_Section_lastmodifieddate() +RETURNS TRIGGER AS $$ +BEGIN + -- Check if any volatile foreign key values have changed + IF NEW.ClassPeriodName IS DISTINCT FROM OLD.ClassPeriodName + OR NEW.SchoolId IS DISTINCT FROM OLD.SchoolId + THEN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE edfi.Section rt + SET LastModifiedDate = NOW() + WHERE rt.LocalCourseCode = NEW.LocalCourseCode + AND rt.SchoolId = NEW.SchoolId + AND rt.SchoolYear = NEW.SchoolYear + AND rt.SectionIdentifier = NEW.SectionIdentifier + AND rt.SessionName = NEW.SessionName; + END IF; + RETURN NEW; +END; +$$ LANGUAGE plpgsql; + +CREATE TRIGGER trg_edfi_SectionClassPeriod_afterupdate +AFTER UPDATE ON edfi.SectionClassPeriod +FOR EACH ROW +EXECUTE FUNCTION edfi.update_Section_lastmodifieddate(); + +CREATE OR REPLACE FUNCTION edfi.update_StudentCohortAssociation_lastmodifieddate() +RETURNS TRIGGER AS $$ +BEGIN + -- Check if any volatile foreign key values have changed + IF NEW.LocalCourseCode IS DISTINCT FROM OLD.LocalCourseCode + OR NEW.SchoolId IS DISTINCT FROM OLD.SchoolId + OR NEW.SchoolYear IS DISTINCT FROM OLD.SchoolYear + OR NEW.SectionIdentifier IS DISTINCT FROM OLD.SectionIdentifier + OR NEW.SessionName IS DISTINCT FROM OLD.SessionName + THEN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE edfi.StudentCohortAssociation rt + SET LastModifiedDate = NOW() + WHERE rt.BeginDate = NEW.BeginDate + AND rt.CohortIdentifier = NEW.CohortIdentifier + AND rt.EducationOrganizationId = NEW.EducationOrganizationId + AND rt.StudentUSI = NEW.StudentUSI; + END IF; + RETURN NEW; +END; +$$ LANGUAGE plpgsql; + +CREATE TRIGGER trg_edfi_StudentCohortAssociationSection_afterupdate +AFTER UPDATE ON edfi.StudentCohortAssociationSection +FOR EACH ROW +EXECUTE FUNCTION edfi.update_StudentCohortAssociation_lastmodifieddate(); + +CREATE OR REPLACE FUNCTION edfi.update_StudentCompetencyObjective_lastmodifieddate() +RETURNS TRIGGER AS $$ +BEGIN + -- Check if any volatile foreign key values have changed + IF NEW.BeginDate IS DISTINCT FROM OLD.BeginDate + OR NEW.LocalCourseCode IS DISTINCT FROM OLD.LocalCourseCode + OR NEW.SchoolId IS DISTINCT FROM OLD.SchoolId + OR NEW.SchoolYear IS DISTINCT FROM OLD.SchoolYear + OR NEW.SectionIdentifier IS DISTINCT FROM OLD.SectionIdentifier + OR NEW.SessionName IS DISTINCT FROM OLD.SessionName + OR NEW.StudentUSI IS DISTINCT FROM OLD.StudentUSI + THEN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE edfi.StudentCompetencyObjective rt + SET LastModifiedDate = NOW() + WHERE rt.GradingPeriodDescriptorId = NEW.GradingPeriodDescriptorId + AND rt.GradingPeriodSequence = NEW.GradingPeriodSequence + AND rt.GradingPeriodSchoolId = NEW.GradingPeriodSchoolId + AND rt.GradingPeriodSchoolYear = NEW.GradingPeriodSchoolYear + AND rt.ObjectiveEducationOrganizationId = NEW.ObjectiveEducationOrganizationId + AND rt.Objective = NEW.Objective + AND rt.ObjectiveGradeLevelDescriptorId = NEW.ObjectiveGradeLevelDescriptorId + AND rt.StudentUSI = NEW.StudentUSI; + END IF; + RETURN NEW; +END; +$$ LANGUAGE plpgsql; + +CREATE TRIGGER trg_edfi_StudentCompetencyObjectiveStudentSectionAssociation_afterupdate +AFTER UPDATE ON edfi.StudentCompetencyObjectiveStudentSectionAssociation +FOR EACH ROW +EXECUTE FUNCTION edfi.update_StudentCompetencyObjective_lastmodifieddate(); + +CREATE OR REPLACE FUNCTION edfi.update_StudentLearningObjective_lastmodifieddate() +RETURNS TRIGGER AS $$ +BEGIN + -- Check if any volatile foreign key values have changed + IF NEW.BeginDate IS DISTINCT FROM OLD.BeginDate + OR NEW.LocalCourseCode IS DISTINCT FROM OLD.LocalCourseCode + OR NEW.SchoolId IS DISTINCT FROM OLD.SchoolId + OR NEW.SchoolYear IS DISTINCT FROM OLD.SchoolYear + OR NEW.SectionIdentifier IS DISTINCT FROM OLD.SectionIdentifier + OR NEW.SessionName IS DISTINCT FROM OLD.SessionName + OR NEW.StudentUSI IS DISTINCT FROM OLD.StudentUSI + THEN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE edfi.StudentLearningObjective rt + SET LastModifiedDate = NOW() + WHERE rt.GradingPeriodDescriptorId = NEW.GradingPeriodDescriptorId + AND rt.GradingPeriodSequence = NEW.GradingPeriodSequence + AND rt.GradingPeriodSchoolId = NEW.GradingPeriodSchoolId + AND rt.GradingPeriodSchoolYear = NEW.GradingPeriodSchoolYear + AND rt.LearningObjectiveId = NEW.LearningObjectiveId + AND rt.Namespace = NEW.Namespace + AND rt.StudentUSI = NEW.StudentUSI; + END IF; + RETURN NEW; +END; +$$ LANGUAGE plpgsql; + +CREATE TRIGGER trg_edfi_StudentLearningObjectiveStudentSectionAssociation_afterupdate +AFTER UPDATE ON edfi.StudentLearningObjectiveStudentSectionAssociation +FOR EACH ROW +EXECUTE FUNCTION edfi.update_StudentLearningObjective_lastmodifieddate(); + +CREATE OR REPLACE FUNCTION edfi.update_StudentSectionAttendanceEvent_lastmodifieddate() +RETURNS TRIGGER AS $$ +BEGIN + -- Check if any volatile foreign key values have changed + IF NEW.ClassPeriodName IS DISTINCT FROM OLD.ClassPeriodName + OR NEW.SchoolId IS DISTINCT FROM OLD.SchoolId + THEN + -- Update the LastModifiedDate in the root table to the current UTC time + UPDATE edfi.StudentSectionAttendanceEvent rt + SET LastModifiedDate = NOW() + WHERE rt.AttendanceEventCategoryDescriptorId = NEW.AttendanceEventCategoryDescriptorId + AND rt.EventDate = NEW.EventDate + AND rt.LocalCourseCode = NEW.LocalCourseCode + AND rt.SchoolId = NEW.SchoolId + AND rt.SchoolYear = NEW.SchoolYear + AND rt.SectionIdentifier = NEW.SectionIdentifier + AND rt.SessionName = NEW.SessionName + AND rt.StudentUSI = NEW.StudentUSI; + END IF; + RETURN NEW; +END; +$$ LANGUAGE plpgsql; + +CREATE TRIGGER trg_edfi_StudentSectionAttendanceEventClassPeriod_afterupdate +AFTER UPDATE ON edfi.StudentSectionAttendanceEventClassPeriod +FOR EACH ROW +EXECUTE FUNCTION edfi.update_StudentSectionAttendanceEvent_lastmodifieddate(); + diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/Schemas/Interchange-Descriptors.xsd b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/Schemas/Interchange-Descriptors.xsd index ccb361b1be..2b673e007a 100644 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/Schemas/Interchange-Descriptors.xsd +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/Schemas/Interchange-Descriptors.xsd @@ -33,6 +33,7 @@ The Descriptor interchange is used to describe metadata about the descriptors an + @@ -59,7 +60,6 @@ The Descriptor interchange is used to describe metadata about the descriptors an - @@ -71,11 +71,11 @@ The Descriptor interchange is used to describe metadata about the descriptors an - + @@ -83,10 +83,10 @@ The Descriptor interchange is used to describe metadata about the descriptors an - + @@ -114,8 +114,8 @@ The Descriptor interchange is used to describe metadata about the descriptors an - + @@ -135,9 +135,9 @@ The Descriptor interchange is used to describe metadata about the descriptors an - + From 158a6d7b9f05c52f635f1826fbc4bb5f91471dc2 Mon Sep 17 00:00:00 2001 From: "m.semalaiappan" Date: Thu, 21 Nov 2024 17:19:57 -0600 Subject: [PATCH 2/2] extra 1470-Add-AggregateId-columns.sql Removed --- .../Ods/1470-Add-AggregateId-columns.sql | 444 ------------------ .../Ods/1470-Add-AggregateId-columns.sql | 444 ------------------ 2 files changed, 888 deletions(-) delete mode 100644 Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1470-Add-AggregateId-columns.sql delete mode 100644 Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1470-Add-AggregateId-columns.sql diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1470-Add-AggregateId-columns.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1470-Add-AggregateId-columns.sql deleted file mode 100644 index 23be854c41..0000000000 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Structure/Ods/1470-Add-AggregateId-columns.sql +++ /dev/null @@ -1,444 +0,0 @@ --- SPDX-License-Identifier: Apache-2.0 --- Licensed to the Ed-Fi Alliance under one or more agreements. --- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. --- See the LICENSE and NOTICES files in the project root for more information. - -CREATE SEQUENCE [edfi].[AcademicWeek_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[AcademicWeek] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[AcademicWeek_AggSeq]; -CREATE INDEX [IX_AcademicWeek_AggregateId] ON [edfi].[AcademicWeek] (AggregateId); - -CREATE SEQUENCE [edfi].[AccountabilityRating_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[AccountabilityRating] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[AccountabilityRating_AggSeq]; -CREATE INDEX [IX_AccountabilityRating_AggregateId] ON [edfi].[AccountabilityRating] (AggregateId); - -CREATE SEQUENCE [edfi].[Assessment_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Assessment] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Assessment_AggSeq]; -CREATE INDEX [IX_Assessment_AggregateId] ON [edfi].[Assessment] (AggregateId); - -CREATE SEQUENCE [edfi].[AssessmentItem_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[AssessmentItem] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[AssessmentItem_AggSeq]; -CREATE INDEX [IX_AssessmentItem_AggregateId] ON [edfi].[AssessmentItem] (AggregateId); - -CREATE SEQUENCE [edfi].[AssessmentScoreRangeLearningStandard_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[AssessmentScoreRangeLearningStandard] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[AssessmentScoreRangeLearningStandard_AggSeq]; -CREATE INDEX [IX_AssessmentScoreRangeLearningStandard_AggregateId] ON [edfi].[AssessmentScoreRangeLearningStandard] (AggregateId); - -CREATE SEQUENCE [edfi].[BalanceSheetDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[BalanceSheetDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[BalanceSheetDimension_AggSeq]; -CREATE INDEX [IX_BalanceSheetDimension_AggregateId] ON [edfi].[BalanceSheetDimension] (AggregateId); - -CREATE SEQUENCE [edfi].[BellSchedule_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[BellSchedule] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[BellSchedule_AggSeq]; -CREATE INDEX [IX_BellSchedule_AggregateId] ON [edfi].[BellSchedule] (AggregateId); - -CREATE SEQUENCE [edfi].[Calendar_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Calendar] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Calendar_AggSeq]; -CREATE INDEX [IX_Calendar_AggregateId] ON [edfi].[Calendar] (AggregateId); - -CREATE SEQUENCE [edfi].[CalendarDate_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[CalendarDate] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CalendarDate_AggSeq]; -CREATE INDEX [IX_CalendarDate_AggregateId] ON [edfi].[CalendarDate] (AggregateId); - -CREATE SEQUENCE [edfi].[ChartOfAccount_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[ChartOfAccount] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ChartOfAccount_AggSeq]; -CREATE INDEX [IX_ChartOfAccount_AggregateId] ON [edfi].[ChartOfAccount] (AggregateId); - -CREATE SEQUENCE [edfi].[ClassPeriod_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[ClassPeriod] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ClassPeriod_AggSeq]; -CREATE INDEX [IX_ClassPeriod_AggregateId] ON [edfi].[ClassPeriod] (AggregateId); - -CREATE SEQUENCE [edfi].[Cohort_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Cohort] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Cohort_AggSeq]; -CREATE INDEX [IX_Cohort_AggregateId] ON [edfi].[Cohort] (AggregateId); - -CREATE SEQUENCE [edfi].[CommunityProviderLicense_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[CommunityProviderLicense] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CommunityProviderLicense_AggSeq]; -CREATE INDEX [IX_CommunityProviderLicense_AggregateId] ON [edfi].[CommunityProviderLicense] (AggregateId); - -CREATE SEQUENCE [edfi].[CompetencyObjective_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[CompetencyObjective] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CompetencyObjective_AggSeq]; -CREATE INDEX [IX_CompetencyObjective_AggregateId] ON [edfi].[CompetencyObjective] (AggregateId); - -CREATE SEQUENCE [edfi].[Course_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Course] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Course_AggSeq]; -CREATE INDEX [IX_Course_AggregateId] ON [edfi].[Course] (AggregateId); - -CREATE SEQUENCE [edfi].[CourseOffering_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[CourseOffering] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CourseOffering_AggSeq]; -CREATE INDEX [IX_CourseOffering_AggregateId] ON [edfi].[CourseOffering] (AggregateId); - -CREATE SEQUENCE [edfi].[CourseTranscript_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[CourseTranscript] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[CourseTranscript_AggSeq]; -CREATE INDEX [IX_CourseTranscript_AggregateId] ON [edfi].[CourseTranscript] (AggregateId); - -CREATE SEQUENCE [edfi].[Credential_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Credential] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Credential_AggSeq]; -CREATE INDEX [IX_Credential_AggregateId] ON [edfi].[Credential] (AggregateId); - -CREATE SEQUENCE [edfi].[Descriptor_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Descriptor] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Descriptor_AggSeq]; -CREATE INDEX [IX_Descriptor_AggregateId] ON [edfi].[Descriptor] (AggregateId); - -CREATE SEQUENCE [edfi].[DescriptorMapping_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[DescriptorMapping] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[DescriptorMapping_AggSeq]; -CREATE INDEX [IX_DescriptorMapping_AggregateId] ON [edfi].[DescriptorMapping] (AggregateId); - -CREATE SEQUENCE [edfi].[DisciplineAction_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[DisciplineAction] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[DisciplineAction_AggSeq]; -CREATE INDEX [IX_DisciplineAction_AggregateId] ON [edfi].[DisciplineAction] (AggregateId); - -CREATE SEQUENCE [edfi].[DisciplineIncident_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[DisciplineIncident] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[DisciplineIncident_AggSeq]; -CREATE INDEX [IX_DisciplineIncident_AggregateId] ON [edfi].[DisciplineIncident] (AggregateId); - -CREATE SEQUENCE [edfi].[EducationContent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[EducationContent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationContent_AggSeq]; -CREATE INDEX [IX_EducationContent_AggregateId] ON [edfi].[EducationContent] (AggregateId); - -CREATE SEQUENCE [edfi].[EducationOrganization_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[EducationOrganization] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationOrganization_AggSeq]; -CREATE INDEX [IX_EducationOrganization_AggregateId] ON [edfi].[EducationOrganization] (AggregateId); - -CREATE SEQUENCE [edfi].[EducationOrganizationInterventionPrescriptionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[EducationOrganizationInterventionPrescriptionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationOrganizationInterventionPrescriptionAssociation_AggSeq]; -CREATE INDEX [IX_EducationOrganizationInterventionPrescriptionAssociation_AggregateId] ON [edfi].[EducationOrganizationInterventionPrescriptionAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[EducationOrganizationNetworkAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[EducationOrganizationNetworkAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationOrganizationNetworkAssociation_AggSeq]; -CREATE INDEX [IX_EducationOrganizationNetworkAssociation_AggregateId] ON [edfi].[EducationOrganizationNetworkAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[EducationOrganizationPeerAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[EducationOrganizationPeerAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[EducationOrganizationPeerAssociation_AggSeq]; -CREATE INDEX [IX_EducationOrganizationPeerAssociation_AggregateId] ON [edfi].[EducationOrganizationPeerAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[FeederSchoolAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[FeederSchoolAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[FeederSchoolAssociation_AggSeq]; -CREATE INDEX [IX_FeederSchoolAssociation_AggregateId] ON [edfi].[FeederSchoolAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[FunctionDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[FunctionDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[FunctionDimension_AggSeq]; -CREATE INDEX [IX_FunctionDimension_AggregateId] ON [edfi].[FunctionDimension] (AggregateId); - -CREATE SEQUENCE [edfi].[FundDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[FundDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[FundDimension_AggSeq]; -CREATE INDEX [IX_FundDimension_AggregateId] ON [edfi].[FundDimension] (AggregateId); - -CREATE SEQUENCE [edfi].[GeneralStudentProgramAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[GeneralStudentProgramAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[GeneralStudentProgramAssociation_AggSeq]; -CREATE INDEX [IX_GeneralStudentProgramAssociation_AggregateId] ON [edfi].[GeneralStudentProgramAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[Grade_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Grade] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Grade_AggSeq]; -CREATE INDEX [IX_Grade_AggregateId] ON [edfi].[Grade] (AggregateId); - -CREATE SEQUENCE [edfi].[GradebookEntry_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[GradebookEntry] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[GradebookEntry_AggSeq]; -CREATE INDEX [IX_GradebookEntry_AggregateId] ON [edfi].[GradebookEntry] (AggregateId); - -CREATE SEQUENCE [edfi].[GradingPeriod_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[GradingPeriod] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[GradingPeriod_AggSeq]; -CREATE INDEX [IX_GradingPeriod_AggregateId] ON [edfi].[GradingPeriod] (AggregateId); - -CREATE SEQUENCE [edfi].[GraduationPlan_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[GraduationPlan] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[GraduationPlan_AggSeq]; -CREATE INDEX [IX_GraduationPlan_AggregateId] ON [edfi].[GraduationPlan] (AggregateId); - -CREATE SEQUENCE [edfi].[Intervention_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Intervention] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Intervention_AggSeq]; -CREATE INDEX [IX_Intervention_AggregateId] ON [edfi].[Intervention] (AggregateId); - -CREATE SEQUENCE [edfi].[InterventionPrescription_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[InterventionPrescription] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[InterventionPrescription_AggSeq]; -CREATE INDEX [IX_InterventionPrescription_AggregateId] ON [edfi].[InterventionPrescription] (AggregateId); - -CREATE SEQUENCE [edfi].[InterventionStudy_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[InterventionStudy] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[InterventionStudy_AggSeq]; -CREATE INDEX [IX_InterventionStudy_AggregateId] ON [edfi].[InterventionStudy] (AggregateId); - -CREATE SEQUENCE [edfi].[LearningObjective_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[LearningObjective] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LearningObjective_AggSeq]; -CREATE INDEX [IX_LearningObjective_AggregateId] ON [edfi].[LearningObjective] (AggregateId); - -CREATE SEQUENCE [edfi].[LearningStandard_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[LearningStandard] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LearningStandard_AggSeq]; -CREATE INDEX [IX_LearningStandard_AggregateId] ON [edfi].[LearningStandard] (AggregateId); - -CREATE SEQUENCE [edfi].[LearningStandardEquivalenceAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[LearningStandardEquivalenceAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LearningStandardEquivalenceAssociation_AggSeq]; -CREATE INDEX [IX_LearningStandardEquivalenceAssociation_AggregateId] ON [edfi].[LearningStandardEquivalenceAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[LocalAccount_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[LocalAccount] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalAccount_AggSeq]; -CREATE INDEX [IX_LocalAccount_AggregateId] ON [edfi].[LocalAccount] (AggregateId); - -CREATE SEQUENCE [edfi].[LocalActual_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[LocalActual] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalActual_AggSeq]; -CREATE INDEX [IX_LocalActual_AggregateId] ON [edfi].[LocalActual] (AggregateId); - -CREATE SEQUENCE [edfi].[LocalBudget_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[LocalBudget] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalBudget_AggSeq]; -CREATE INDEX [IX_LocalBudget_AggregateId] ON [edfi].[LocalBudget] (AggregateId); - -CREATE SEQUENCE [edfi].[LocalContractedStaff_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[LocalContractedStaff] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalContractedStaff_AggSeq]; -CREATE INDEX [IX_LocalContractedStaff_AggregateId] ON [edfi].[LocalContractedStaff] (AggregateId); - -CREATE SEQUENCE [edfi].[LocalEncumbrance_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[LocalEncumbrance] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalEncumbrance_AggSeq]; -CREATE INDEX [IX_LocalEncumbrance_AggregateId] ON [edfi].[LocalEncumbrance] (AggregateId); - -CREATE SEQUENCE [edfi].[LocalPayroll_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[LocalPayroll] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[LocalPayroll_AggSeq]; -CREATE INDEX [IX_LocalPayroll_AggregateId] ON [edfi].[LocalPayroll] (AggregateId); - -CREATE SEQUENCE [edfi].[Location_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Location] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Location_AggSeq]; -CREATE INDEX [IX_Location_AggregateId] ON [edfi].[Location] (AggregateId); - -CREATE SEQUENCE [edfi].[ObjectDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[ObjectDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ObjectDimension_AggSeq]; -CREATE INDEX [IX_ObjectDimension_AggregateId] ON [edfi].[ObjectDimension] (AggregateId); - -CREATE SEQUENCE [edfi].[ObjectiveAssessment_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[ObjectiveAssessment] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ObjectiveAssessment_AggSeq]; -CREATE INDEX [IX_ObjectiveAssessment_AggregateId] ON [edfi].[ObjectiveAssessment] (AggregateId); - -CREATE SEQUENCE [edfi].[OpenStaffPosition_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[OpenStaffPosition] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[OpenStaffPosition_AggSeq]; -CREATE INDEX [IX_OpenStaffPosition_AggregateId] ON [edfi].[OpenStaffPosition] (AggregateId); - -CREATE SEQUENCE [edfi].[OperationalUnitDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[OperationalUnitDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[OperationalUnitDimension_AggSeq]; -CREATE INDEX [IX_OperationalUnitDimension_AggregateId] ON [edfi].[OperationalUnitDimension] (AggregateId); - -CREATE SEQUENCE [edfi].[Parent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Parent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Parent_AggSeq]; -CREATE INDEX [IX_Parent_AggregateId] ON [edfi].[Parent] (AggregateId); - -CREATE SEQUENCE [edfi].[Person_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Person] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Person_AggSeq]; -CREATE INDEX [IX_Person_AggregateId] ON [edfi].[Person] (AggregateId); - -CREATE SEQUENCE [edfi].[PostSecondaryEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[PostSecondaryEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[PostSecondaryEvent_AggSeq]; -CREATE INDEX [IX_PostSecondaryEvent_AggregateId] ON [edfi].[PostSecondaryEvent] (AggregateId); - -CREATE SEQUENCE [edfi].[Program_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Program] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Program_AggSeq]; -CREATE INDEX [IX_Program_AggregateId] ON [edfi].[Program] (AggregateId); - -CREATE SEQUENCE [edfi].[ProgramDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[ProgramDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ProgramDimension_AggSeq]; -CREATE INDEX [IX_ProgramDimension_AggregateId] ON [edfi].[ProgramDimension] (AggregateId); - -CREATE SEQUENCE [edfi].[ProjectDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[ProjectDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ProjectDimension_AggSeq]; -CREATE INDEX [IX_ProjectDimension_AggregateId] ON [edfi].[ProjectDimension] (AggregateId); - -CREATE SEQUENCE [edfi].[ReportCard_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[ReportCard] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[ReportCard_AggSeq]; -CREATE INDEX [IX_ReportCard_AggregateId] ON [edfi].[ReportCard] (AggregateId); - -CREATE SEQUENCE [edfi].[RestraintEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[RestraintEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[RestraintEvent_AggSeq]; -CREATE INDEX [IX_RestraintEvent_AggregateId] ON [edfi].[RestraintEvent] (AggregateId); - -CREATE SEQUENCE [edfi].[SchoolYearType_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SchoolYearType] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SchoolYearType_AggSeq]; -CREATE INDEX [IX_SchoolYearType_AggregateId] ON [edfi].[SchoolYearType] (AggregateId); - -CREATE SEQUENCE [edfi].[Section_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Section] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Section_AggSeq]; -CREATE INDEX [IX_Section_AggregateId] ON [edfi].[Section] (AggregateId); - -CREATE SEQUENCE [edfi].[SectionAttendanceTakenEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SectionAttendanceTakenEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SectionAttendanceTakenEvent_AggSeq]; -CREATE INDEX [IX_SectionAttendanceTakenEvent_AggregateId] ON [edfi].[SectionAttendanceTakenEvent] (AggregateId); - -CREATE SEQUENCE [edfi].[Session_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Session] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Session_AggSeq]; -CREATE INDEX [IX_Session_AggregateId] ON [edfi].[Session] (AggregateId); - -CREATE SEQUENCE [edfi].[SourceDimension_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SourceDimension] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SourceDimension_AggSeq]; -CREATE INDEX [IX_SourceDimension_AggregateId] ON [edfi].[SourceDimension] (AggregateId); - -CREATE SEQUENCE [edfi].[Staff_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Staff] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Staff_AggSeq]; -CREATE INDEX [IX_Staff_AggregateId] ON [edfi].[Staff] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffAbsenceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffAbsenceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffAbsenceEvent_AggSeq]; -CREATE INDEX [IX_StaffAbsenceEvent_AggregateId] ON [edfi].[StaffAbsenceEvent] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffCohortAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffCohortAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffCohortAssociation_AggSeq]; -CREATE INDEX [IX_StaffCohortAssociation_AggregateId] ON [edfi].[StaffCohortAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffDisciplineIncidentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffDisciplineIncidentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffDisciplineIncidentAssociation_AggSeq]; -CREATE INDEX [IX_StaffDisciplineIncidentAssociation_AggregateId] ON [edfi].[StaffDisciplineIncidentAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffEducationOrganizationAssignmentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffEducationOrganizationAssignmentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffEducationOrganizationAssignmentAssociation_AggSeq]; -CREATE INDEX [IX_StaffEducationOrganizationAssignmentAssociation_AggregateId] ON [edfi].[StaffEducationOrganizationAssignmentAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffEducationOrganizationContactAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffEducationOrganizationContactAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffEducationOrganizationContactAssociation_AggSeq]; -CREATE INDEX [IX_StaffEducationOrganizationContactAssociation_AggregateId] ON [edfi].[StaffEducationOrganizationContactAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffEducationOrganizationEmploymentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffEducationOrganizationEmploymentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffEducationOrganizationEmploymentAssociation_AggSeq]; -CREATE INDEX [IX_StaffEducationOrganizationEmploymentAssociation_AggregateId] ON [edfi].[StaffEducationOrganizationEmploymentAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffLeave_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffLeave] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffLeave_AggSeq]; -CREATE INDEX [IX_StaffLeave_AggregateId] ON [edfi].[StaffLeave] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffProgramAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffProgramAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffProgramAssociation_AggSeq]; -CREATE INDEX [IX_StaffProgramAssociation_AggregateId] ON [edfi].[StaffProgramAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffSchoolAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffSchoolAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffSchoolAssociation_AggSeq]; -CREATE INDEX [IX_StaffSchoolAssociation_AggregateId] ON [edfi].[StaffSchoolAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StaffSectionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StaffSectionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StaffSectionAssociation_AggSeq]; -CREATE INDEX [IX_StaffSectionAssociation_AggregateId] ON [edfi].[StaffSectionAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[Student_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Student] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Student_AggSeq]; -CREATE INDEX [IX_Student_AggregateId] ON [edfi].[Student] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentAcademicRecord_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentAcademicRecord] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentAcademicRecord_AggSeq]; -CREATE INDEX [IX_StudentAcademicRecord_AggregateId] ON [edfi].[StudentAcademicRecord] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentAssessment_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentAssessment] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentAssessment_AggSeq]; -CREATE INDEX [IX_StudentAssessment_AggregateId] ON [edfi].[StudentAssessment] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentAssessmentEducationOrganizationAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentAssessmentEducationOrganizationAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentAssessmentEducationOrganizationAssociation_AggSeq]; -CREATE INDEX [IX_StudentAssessmentEducationOrganizationAssociation_AggregateId] ON [edfi].[StudentAssessmentEducationOrganizationAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentCohortAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentCohortAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentCohortAssociation_AggSeq]; -CREATE INDEX [IX_StudentCohortAssociation_AggregateId] ON [edfi].[StudentCohortAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentCompetencyObjective_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentCompetencyObjective] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentCompetencyObjective_AggSeq]; -CREATE INDEX [IX_StudentCompetencyObjective_AggregateId] ON [edfi].[StudentCompetencyObjective] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentDisciplineIncidentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentDisciplineIncidentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentDisciplineIncidentAssociation_AggSeq]; -CREATE INDEX [IX_StudentDisciplineIncidentAssociation_AggregateId] ON [edfi].[StudentDisciplineIncidentAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentDisciplineIncidentBehaviorAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentDisciplineIncidentBehaviorAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentDisciplineIncidentBehaviorAssociation_AggSeq]; -CREATE INDEX [IX_StudentDisciplineIncidentBehaviorAssociation_AggregateId] ON [edfi].[StudentDisciplineIncidentBehaviorAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentDisciplineIncidentNonOffenderAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentDisciplineIncidentNonOffenderAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentDisciplineIncidentNonOffenderAssociation_AggSeq]; -CREATE INDEX [IX_StudentDisciplineIncidentNonOffenderAssociation_AggregateId] ON [edfi].[StudentDisciplineIncidentNonOffenderAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentEducationOrganizationAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentEducationOrganizationAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentEducationOrganizationAssociation_AggSeq]; -CREATE INDEX [IX_StudentEducationOrganizationAssociation_AggregateId] ON [edfi].[StudentEducationOrganizationAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentEducationOrganizationResponsibilityAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentEducationOrganizationResponsibilityAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentEducationOrganizationResponsibilityAssociation_AggSeq]; -CREATE INDEX [IX_StudentEducationOrganizationResponsibilityAssociation_AggregateId] ON [edfi].[StudentEducationOrganizationResponsibilityAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentGradebookEntry_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentGradebookEntry] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentGradebookEntry_AggSeq]; -CREATE INDEX [IX_StudentGradebookEntry_AggregateId] ON [edfi].[StudentGradebookEntry] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentInterventionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentInterventionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentInterventionAssociation_AggSeq]; -CREATE INDEX [IX_StudentInterventionAssociation_AggregateId] ON [edfi].[StudentInterventionAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentInterventionAttendanceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentInterventionAttendanceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentInterventionAttendanceEvent_AggSeq]; -CREATE INDEX [IX_StudentInterventionAttendanceEvent_AggregateId] ON [edfi].[StudentInterventionAttendanceEvent] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentLearningObjective_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentLearningObjective] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentLearningObjective_AggSeq]; -CREATE INDEX [IX_StudentLearningObjective_AggregateId] ON [edfi].[StudentLearningObjective] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentParentAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentParentAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentParentAssociation_AggSeq]; -CREATE INDEX [IX_StudentParentAssociation_AggregateId] ON [edfi].[StudentParentAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentProgramAttendanceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentProgramAttendanceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentProgramAttendanceEvent_AggSeq]; -CREATE INDEX [IX_StudentProgramAttendanceEvent_AggregateId] ON [edfi].[StudentProgramAttendanceEvent] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentSchoolAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentSchoolAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentSchoolAssociation_AggSeq]; -CREATE INDEX [IX_StudentSchoolAssociation_AggregateId] ON [edfi].[StudentSchoolAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentSchoolAttendanceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentSchoolAttendanceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentSchoolAttendanceEvent_AggSeq]; -CREATE INDEX [IX_StudentSchoolAttendanceEvent_AggregateId] ON [edfi].[StudentSchoolAttendanceEvent] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentSectionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentSectionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentSectionAssociation_AggSeq]; -CREATE INDEX [IX_StudentSectionAssociation_AggregateId] ON [edfi].[StudentSectionAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[StudentSectionAttendanceEvent_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[StudentSectionAttendanceEvent] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[StudentSectionAttendanceEvent_AggSeq]; -CREATE INDEX [IX_StudentSectionAttendanceEvent_AggregateId] ON [edfi].[StudentSectionAttendanceEvent] (AggregateId); - -CREATE SEQUENCE [edfi].[Survey_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[Survey] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[Survey_AggSeq]; -CREATE INDEX [IX_Survey_AggregateId] ON [edfi].[Survey] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveyCourseAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveyCourseAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyCourseAssociation_AggSeq]; -CREATE INDEX [IX_SurveyCourseAssociation_AggregateId] ON [edfi].[SurveyCourseAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveyProgramAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveyProgramAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyProgramAssociation_AggSeq]; -CREATE INDEX [IX_SurveyProgramAssociation_AggregateId] ON [edfi].[SurveyProgramAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveyQuestion_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveyQuestion] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyQuestion_AggSeq]; -CREATE INDEX [IX_SurveyQuestion_AggregateId] ON [edfi].[SurveyQuestion] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveyQuestionResponse_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveyQuestionResponse] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyQuestionResponse_AggSeq]; -CREATE INDEX [IX_SurveyQuestionResponse_AggregateId] ON [edfi].[SurveyQuestionResponse] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveyResponse_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveyResponse] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyResponse_AggSeq]; -CREATE INDEX [IX_SurveyResponse_AggregateId] ON [edfi].[SurveyResponse] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveyResponseEducationOrganizationTargetAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveyResponseEducationOrganizationTargetAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyResponseEducationOrganizationTargetAssociation_AggSeq]; -CREATE INDEX [IX_SurveyResponseEducationOrganizationTargetAssociation_AggregateId] ON [edfi].[SurveyResponseEducationOrganizationTargetAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveyResponseStaffTargetAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveyResponseStaffTargetAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveyResponseStaffTargetAssociation_AggSeq]; -CREATE INDEX [IX_SurveyResponseStaffTargetAssociation_AggregateId] ON [edfi].[SurveyResponseStaffTargetAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveySection_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveySection] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySection_AggSeq]; -CREATE INDEX [IX_SurveySection_AggregateId] ON [edfi].[SurveySection] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveySectionAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveySectionAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySectionAssociation_AggSeq]; -CREATE INDEX [IX_SurveySectionAssociation_AggregateId] ON [edfi].[SurveySectionAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveySectionResponse_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveySectionResponse] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySectionResponse_AggSeq]; -CREATE INDEX [IX_SurveySectionResponse_AggregateId] ON [edfi].[SurveySectionResponse] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation_AggSeq]; -CREATE INDEX [IX_SurveySectionResponseEducationOrganizationTargetAssociation_AggregateId] ON [edfi].[SurveySectionResponseEducationOrganizationTargetAssociation] (AggregateId); - -CREATE SEQUENCE [edfi].[SurveySectionResponseStaffTargetAssociation_AggSeq] START WITH -2147483648 INCREMENT BY 1; -ALTER TABLE [edfi].[SurveySectionResponseStaffTargetAssociation] ADD AggregateId int NOT NULL DEFAULT NEXT VALUE FOR [edfi].[SurveySectionResponseStaffTargetAssociation_AggSeq]; -CREATE INDEX [IX_SurveySectionResponseStaffTargetAssociation_AggregateId] ON [edfi].[SurveySectionResponseStaffTargetAssociation] (AggregateId); diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1470-Add-AggregateId-columns.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1470-Add-AggregateId-columns.sql deleted file mode 100644 index b1dda5dd03..0000000000 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Structure/Ods/1470-Add-AggregateId-columns.sql +++ /dev/null @@ -1,444 +0,0 @@ --- SPDX-License-Identifier: Apache-2.0 --- Licensed to the Ed-Fi Alliance under one or more agreements. --- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. --- See the LICENSE and NOTICES files in the project root for more information. - -CREATE SEQUENCE edfi.academicweek_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.AcademicWeek ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.academicweek_aggseq'); -CREATE INDEX ix_academicweek_aggid ON edfi.AcademicWeek (AggregateId); - -CREATE SEQUENCE edfi.accountabilityrating_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.AccountabilityRating ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.accountabilityrating_aggseq'); -CREATE INDEX ix_accountabilityrating_aggid ON edfi.AccountabilityRating (AggregateId); - -CREATE SEQUENCE edfi.assessment_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Assessment ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.assessment_aggseq'); -CREATE INDEX ix_assessment_aggid ON edfi.Assessment (AggregateId); - -CREATE SEQUENCE edfi.assessmentitem_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.AssessmentItem ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.assessmentitem_aggseq'); -CREATE INDEX ix_assessmentitem_aggid ON edfi.AssessmentItem (AggregateId); - -CREATE SEQUENCE edfi.assessmentscorerangelearningstandard_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.AssessmentScoreRangeLearningStandard ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.assessmentscorerangelearningstandard_aggseq'); -CREATE INDEX ix_assessmentscorerangelearningstandard_aggid ON edfi.AssessmentScoreRangeLearningStandard (AggregateId); - -CREATE SEQUENCE edfi.balancesheetdimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.BalanceSheetDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.balancesheetdimension_aggseq'); -CREATE INDEX ix_balancesheetdimension_aggid ON edfi.BalanceSheetDimension (AggregateId); - -CREATE SEQUENCE edfi.bellschedule_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.BellSchedule ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.bellschedule_aggseq'); -CREATE INDEX ix_bellschedule_aggid ON edfi.BellSchedule (AggregateId); - -CREATE SEQUENCE edfi.calendar_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Calendar ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.calendar_aggseq'); -CREATE INDEX ix_calendar_aggid ON edfi.Calendar (AggregateId); - -CREATE SEQUENCE edfi.calendardate_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.CalendarDate ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.calendardate_aggseq'); -CREATE INDEX ix_calendardate_aggid ON edfi.CalendarDate (AggregateId); - -CREATE SEQUENCE edfi.chartofaccount_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.ChartOfAccount ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.chartofaccount_aggseq'); -CREATE INDEX ix_chartofaccount_aggid ON edfi.ChartOfAccount (AggregateId); - -CREATE SEQUENCE edfi.classperiod_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.ClassPeriod ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.classperiod_aggseq'); -CREATE INDEX ix_classperiod_aggid ON edfi.ClassPeriod (AggregateId); - -CREATE SEQUENCE edfi.cohort_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Cohort ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.cohort_aggseq'); -CREATE INDEX ix_cohort_aggid ON edfi.Cohort (AggregateId); - -CREATE SEQUENCE edfi.communityproviderlicense_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.CommunityProviderLicense ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.communityproviderlicense_aggseq'); -CREATE INDEX ix_communityproviderlicense_aggid ON edfi.CommunityProviderLicense (AggregateId); - -CREATE SEQUENCE edfi.competencyobjective_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.CompetencyObjective ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.competencyobjective_aggseq'); -CREATE INDEX ix_competencyobjective_aggid ON edfi.CompetencyObjective (AggregateId); - -CREATE SEQUENCE edfi.course_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Course ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.course_aggseq'); -CREATE INDEX ix_course_aggid ON edfi.Course (AggregateId); - -CREATE SEQUENCE edfi.courseoffering_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.CourseOffering ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.courseoffering_aggseq'); -CREATE INDEX ix_courseoffering_aggid ON edfi.CourseOffering (AggregateId); - -CREATE SEQUENCE edfi.coursetranscript_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.CourseTranscript ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.coursetranscript_aggseq'); -CREATE INDEX ix_coursetranscript_aggid ON edfi.CourseTranscript (AggregateId); - -CREATE SEQUENCE edfi.credential_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Credential ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.credential_aggseq'); -CREATE INDEX ix_credential_aggid ON edfi.Credential (AggregateId); - -CREATE SEQUENCE edfi.descriptor_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Descriptor ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.descriptor_aggseq'); -CREATE INDEX ix_descriptor_aggid ON edfi.Descriptor (AggregateId); - -CREATE SEQUENCE edfi.descriptormapping_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.DescriptorMapping ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.descriptormapping_aggseq'); -CREATE INDEX ix_descriptormapping_aggid ON edfi.DescriptorMapping (AggregateId); - -CREATE SEQUENCE edfi.disciplineaction_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.DisciplineAction ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.disciplineaction_aggseq'); -CREATE INDEX ix_disciplineaction_aggid ON edfi.DisciplineAction (AggregateId); - -CREATE SEQUENCE edfi.disciplineincident_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.DisciplineIncident ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.disciplineincident_aggseq'); -CREATE INDEX ix_disciplineincident_aggid ON edfi.DisciplineIncident (AggregateId); - -CREATE SEQUENCE edfi.educationcontent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.EducationContent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.educationcontent_aggseq'); -CREATE INDEX ix_educationcontent_aggid ON edfi.EducationContent (AggregateId); - -CREATE SEQUENCE edfi.educationorganization_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.EducationOrganization ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.educationorganization_aggseq'); -CREATE INDEX ix_educationorganization_aggid ON edfi.EducationOrganization (AggregateId); - -CREATE SEQUENCE edfi.educationorganizationinterventionprescriptionassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.EducationOrganizationInterventionPrescriptionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.educationorganizationinterventionprescriptionassociation_aggseq'); -CREATE INDEX ix_educationorganizationinterventionprescriptionassociation_aggid ON edfi.EducationOrganizationInterventionPrescriptionAssociation (AggregateId); - -CREATE SEQUENCE edfi.educationorganizationnetworkassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.EducationOrganizationNetworkAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.educationorganizationnetworkassociation_aggseq'); -CREATE INDEX ix_educationorganizationnetworkassociation_aggid ON edfi.EducationOrganizationNetworkAssociation (AggregateId); - -CREATE SEQUENCE edfi.educationorganizationpeerassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.EducationOrganizationPeerAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.educationorganizationpeerassociation_aggseq'); -CREATE INDEX ix_educationorganizationpeerassociation_aggid ON edfi.EducationOrganizationPeerAssociation (AggregateId); - -CREATE SEQUENCE edfi.feederschoolassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.FeederSchoolAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.feederschoolassociation_aggseq'); -CREATE INDEX ix_feederschoolassociation_aggid ON edfi.FeederSchoolAssociation (AggregateId); - -CREATE SEQUENCE edfi.functiondimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.FunctionDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.functiondimension_aggseq'); -CREATE INDEX ix_functiondimension_aggid ON edfi.FunctionDimension (AggregateId); - -CREATE SEQUENCE edfi.funddimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.FundDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.funddimension_aggseq'); -CREATE INDEX ix_funddimension_aggid ON edfi.FundDimension (AggregateId); - -CREATE SEQUENCE edfi.generalstudentprogramassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.GeneralStudentProgramAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.generalstudentprogramassociation_aggseq'); -CREATE INDEX ix_generalstudentprogramassociation_aggid ON edfi.GeneralStudentProgramAssociation (AggregateId); - -CREATE SEQUENCE edfi.grade_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Grade ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.grade_aggseq'); -CREATE INDEX ix_grade_aggid ON edfi.Grade (AggregateId); - -CREATE SEQUENCE edfi.gradebookentry_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.GradebookEntry ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.gradebookentry_aggseq'); -CREATE INDEX ix_gradebookentry_aggid ON edfi.GradebookEntry (AggregateId); - -CREATE SEQUENCE edfi.gradingperiod_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.GradingPeriod ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.gradingperiod_aggseq'); -CREATE INDEX ix_gradingperiod_aggid ON edfi.GradingPeriod (AggregateId); - -CREATE SEQUENCE edfi.graduationplan_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.GraduationPlan ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.graduationplan_aggseq'); -CREATE INDEX ix_graduationplan_aggid ON edfi.GraduationPlan (AggregateId); - -CREATE SEQUENCE edfi.intervention_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Intervention ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.intervention_aggseq'); -CREATE INDEX ix_intervention_aggid ON edfi.Intervention (AggregateId); - -CREATE SEQUENCE edfi.interventionprescription_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.InterventionPrescription ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.interventionprescription_aggseq'); -CREATE INDEX ix_interventionprescription_aggid ON edfi.InterventionPrescription (AggregateId); - -CREATE SEQUENCE edfi.interventionstudy_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.InterventionStudy ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.interventionstudy_aggseq'); -CREATE INDEX ix_interventionstudy_aggid ON edfi.InterventionStudy (AggregateId); - -CREATE SEQUENCE edfi.learningobjective_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.LearningObjective ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.learningobjective_aggseq'); -CREATE INDEX ix_learningobjective_aggid ON edfi.LearningObjective (AggregateId); - -CREATE SEQUENCE edfi.learningstandard_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.LearningStandard ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.learningstandard_aggseq'); -CREATE INDEX ix_learningstandard_aggid ON edfi.LearningStandard (AggregateId); - -CREATE SEQUENCE edfi.learningstandardequivalenceassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.LearningStandardEquivalenceAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.learningstandardequivalenceassociation_aggseq'); -CREATE INDEX ix_learningstandardequivalenceassociation_aggid ON edfi.LearningStandardEquivalenceAssociation (AggregateId); - -CREATE SEQUENCE edfi.localaccount_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.LocalAccount ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.localaccount_aggseq'); -CREATE INDEX ix_localaccount_aggid ON edfi.LocalAccount (AggregateId); - -CREATE SEQUENCE edfi.localactual_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.LocalActual ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.localactual_aggseq'); -CREATE INDEX ix_localactual_aggid ON edfi.LocalActual (AggregateId); - -CREATE SEQUENCE edfi.localbudget_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.LocalBudget ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.localbudget_aggseq'); -CREATE INDEX ix_localbudget_aggid ON edfi.LocalBudget (AggregateId); - -CREATE SEQUENCE edfi.localcontractedstaff_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.LocalContractedStaff ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.localcontractedstaff_aggseq'); -CREATE INDEX ix_localcontractedstaff_aggid ON edfi.LocalContractedStaff (AggregateId); - -CREATE SEQUENCE edfi.localencumbrance_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.LocalEncumbrance ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.localencumbrance_aggseq'); -CREATE INDEX ix_localencumbrance_aggid ON edfi.LocalEncumbrance (AggregateId); - -CREATE SEQUENCE edfi.localpayroll_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.LocalPayroll ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.localpayroll_aggseq'); -CREATE INDEX ix_localpayroll_aggid ON edfi.LocalPayroll (AggregateId); - -CREATE SEQUENCE edfi.location_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Location ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.location_aggseq'); -CREATE INDEX ix_location_aggid ON edfi.Location (AggregateId); - -CREATE SEQUENCE edfi.objectdimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.ObjectDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.objectdimension_aggseq'); -CREATE INDEX ix_objectdimension_aggid ON edfi.ObjectDimension (AggregateId); - -CREATE SEQUENCE edfi.objectiveassessment_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.ObjectiveAssessment ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.objectiveassessment_aggseq'); -CREATE INDEX ix_objectiveassessment_aggid ON edfi.ObjectiveAssessment (AggregateId); - -CREATE SEQUENCE edfi.openstaffposition_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.OpenStaffPosition ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.openstaffposition_aggseq'); -CREATE INDEX ix_openstaffposition_aggid ON edfi.OpenStaffPosition (AggregateId); - -CREATE SEQUENCE edfi.operationalunitdimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.OperationalUnitDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.operationalunitdimension_aggseq'); -CREATE INDEX ix_operationalunitdimension_aggid ON edfi.OperationalUnitDimension (AggregateId); - -CREATE SEQUENCE edfi.parent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Parent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.parent_aggseq'); -CREATE INDEX ix_parent_aggid ON edfi.Parent (AggregateId); - -CREATE SEQUENCE edfi.person_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Person ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.person_aggseq'); -CREATE INDEX ix_person_aggid ON edfi.Person (AggregateId); - -CREATE SEQUENCE edfi.postsecondaryevent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.PostSecondaryEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.postsecondaryevent_aggseq'); -CREATE INDEX ix_postsecondaryevent_aggid ON edfi.PostSecondaryEvent (AggregateId); - -CREATE SEQUENCE edfi.program_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Program ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.program_aggseq'); -CREATE INDEX ix_program_aggid ON edfi.Program (AggregateId); - -CREATE SEQUENCE edfi.programdimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.ProgramDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.programdimension_aggseq'); -CREATE INDEX ix_programdimension_aggid ON edfi.ProgramDimension (AggregateId); - -CREATE SEQUENCE edfi.projectdimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.ProjectDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.projectdimension_aggseq'); -CREATE INDEX ix_projectdimension_aggid ON edfi.ProjectDimension (AggregateId); - -CREATE SEQUENCE edfi.reportcard_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.ReportCard ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.reportcard_aggseq'); -CREATE INDEX ix_reportcard_aggid ON edfi.ReportCard (AggregateId); - -CREATE SEQUENCE edfi.restraintevent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.RestraintEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.restraintevent_aggseq'); -CREATE INDEX ix_restraintevent_aggid ON edfi.RestraintEvent (AggregateId); - -CREATE SEQUENCE edfi.schoolyeartype_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SchoolYearType ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.schoolyeartype_aggseq'); -CREATE INDEX ix_schoolyeartype_aggid ON edfi.SchoolYearType (AggregateId); - -CREATE SEQUENCE edfi.section_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Section ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.section_aggseq'); -CREATE INDEX ix_section_aggid ON edfi.Section (AggregateId); - -CREATE SEQUENCE edfi.sectionattendancetakenevent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SectionAttendanceTakenEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.sectionattendancetakenevent_aggseq'); -CREATE INDEX ix_sectionattendancetakenevent_aggid ON edfi.SectionAttendanceTakenEvent (AggregateId); - -CREATE SEQUENCE edfi.session_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Session ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.session_aggseq'); -CREATE INDEX ix_session_aggid ON edfi.Session (AggregateId); - -CREATE SEQUENCE edfi.sourcedimension_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SourceDimension ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.sourcedimension_aggseq'); -CREATE INDEX ix_sourcedimension_aggid ON edfi.SourceDimension (AggregateId); - -CREATE SEQUENCE edfi.staff_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Staff ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staff_aggseq'); -CREATE INDEX ix_staff_aggid ON edfi.Staff (AggregateId); - -CREATE SEQUENCE edfi.staffabsenceevent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffAbsenceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffabsenceevent_aggseq'); -CREATE INDEX ix_staffabsenceevent_aggid ON edfi.StaffAbsenceEvent (AggregateId); - -CREATE SEQUENCE edfi.staffcohortassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffCohortAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffcohortassociation_aggseq'); -CREATE INDEX ix_staffcohortassociation_aggid ON edfi.StaffCohortAssociation (AggregateId); - -CREATE SEQUENCE edfi.staffdisciplineincidentassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffDisciplineIncidentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffdisciplineincidentassociation_aggseq'); -CREATE INDEX ix_staffdisciplineincidentassociation_aggid ON edfi.StaffDisciplineIncidentAssociation (AggregateId); - -CREATE SEQUENCE edfi.staffeducationorganizationassignmentassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffEducationOrganizationAssignmentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffeducationorganizationassignmentassociation_aggseq'); -CREATE INDEX ix_staffeducationorganizationassignmentassociation_aggid ON edfi.StaffEducationOrganizationAssignmentAssociation (AggregateId); - -CREATE SEQUENCE edfi.staffeducationorganizationcontactassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffEducationOrganizationContactAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffeducationorganizationcontactassociation_aggseq'); -CREATE INDEX ix_staffeducationorganizationcontactassociation_aggid ON edfi.StaffEducationOrganizationContactAssociation (AggregateId); - -CREATE SEQUENCE edfi.staffeducationorganizationemploymentassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffEducationOrganizationEmploymentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffeducationorganizationemploymentassociation_aggseq'); -CREATE INDEX ix_staffeducationorganizationemploymentassociation_aggid ON edfi.StaffEducationOrganizationEmploymentAssociation (AggregateId); - -CREATE SEQUENCE edfi.staffleave_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffLeave ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffleave_aggseq'); -CREATE INDEX ix_staffleave_aggid ON edfi.StaffLeave (AggregateId); - -CREATE SEQUENCE edfi.staffprogramassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffProgramAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffprogramassociation_aggseq'); -CREATE INDEX ix_staffprogramassociation_aggid ON edfi.StaffProgramAssociation (AggregateId); - -CREATE SEQUENCE edfi.staffschoolassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffSchoolAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffschoolassociation_aggseq'); -CREATE INDEX ix_staffschoolassociation_aggid ON edfi.StaffSchoolAssociation (AggregateId); - -CREATE SEQUENCE edfi.staffsectionassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StaffSectionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.staffsectionassociation_aggseq'); -CREATE INDEX ix_staffsectionassociation_aggid ON edfi.StaffSectionAssociation (AggregateId); - -CREATE SEQUENCE edfi.student_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Student ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.student_aggseq'); -CREATE INDEX ix_student_aggid ON edfi.Student (AggregateId); - -CREATE SEQUENCE edfi.studentacademicrecord_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentAcademicRecord ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentacademicrecord_aggseq'); -CREATE INDEX ix_studentacademicrecord_aggid ON edfi.StudentAcademicRecord (AggregateId); - -CREATE SEQUENCE edfi.studentassessment_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentAssessment ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentassessment_aggseq'); -CREATE INDEX ix_studentassessment_aggid ON edfi.StudentAssessment (AggregateId); - -CREATE SEQUENCE edfi.studentassessmenteducationorganizationassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentAssessmentEducationOrganizationAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentassessmenteducationorganizationassociation_aggseq'); -CREATE INDEX ix_studentassessmenteducationorganizationassociation_aggid ON edfi.StudentAssessmentEducationOrganizationAssociation (AggregateId); - -CREATE SEQUENCE edfi.studentcohortassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentCohortAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentcohortassociation_aggseq'); -CREATE INDEX ix_studentcohortassociation_aggid ON edfi.StudentCohortAssociation (AggregateId); - -CREATE SEQUENCE edfi.studentcompetencyobjective_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentCompetencyObjective ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentcompetencyobjective_aggseq'); -CREATE INDEX ix_studentcompetencyobjective_aggid ON edfi.StudentCompetencyObjective (AggregateId); - -CREATE SEQUENCE edfi.studentdisciplineincidentassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentDisciplineIncidentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentdisciplineincidentassociation_aggseq'); -CREATE INDEX ix_studentdisciplineincidentassociation_aggid ON edfi.StudentDisciplineIncidentAssociation (AggregateId); - -CREATE SEQUENCE edfi.studentdisciplineincidentbehaviorassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentDisciplineIncidentBehaviorAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentdisciplineincidentbehaviorassociation_aggseq'); -CREATE INDEX ix_studentdisciplineincidentbehaviorassociation_aggid ON edfi.StudentDisciplineIncidentBehaviorAssociation (AggregateId); - -CREATE SEQUENCE edfi.studentdisciplineincidentnonoffenderassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentDisciplineIncidentNonOffenderAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentdisciplineincidentnonoffenderassociation_aggseq'); -CREATE INDEX ix_studentdisciplineincidentnonoffenderassociation_aggid ON edfi.StudentDisciplineIncidentNonOffenderAssociation (AggregateId); - -CREATE SEQUENCE edfi.studenteducationorganizationassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentEducationOrganizationAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studenteducationorganizationassociation_aggseq'); -CREATE INDEX ix_studenteducationorganizationassociation_aggid ON edfi.StudentEducationOrganizationAssociation (AggregateId); - -CREATE SEQUENCE edfi.studenteducationorganizationresponsibilityassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentEducationOrganizationResponsibilityAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studenteducationorganizationresponsibilityassociation_aggseq'); -CREATE INDEX ix_studenteducationorganizationresponsibilityassociation_aggid ON edfi.StudentEducationOrganizationResponsibilityAssociation (AggregateId); - -CREATE SEQUENCE edfi.studentgradebookentry_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentGradebookEntry ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentgradebookentry_aggseq'); -CREATE INDEX ix_studentgradebookentry_aggid ON edfi.StudentGradebookEntry (AggregateId); - -CREATE SEQUENCE edfi.studentinterventionassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentInterventionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentinterventionassociation_aggseq'); -CREATE INDEX ix_studentinterventionassociation_aggid ON edfi.StudentInterventionAssociation (AggregateId); - -CREATE SEQUENCE edfi.studentinterventionattendanceevent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentInterventionAttendanceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentinterventionattendanceevent_aggseq'); -CREATE INDEX ix_studentinterventionattendanceevent_aggid ON edfi.StudentInterventionAttendanceEvent (AggregateId); - -CREATE SEQUENCE edfi.studentlearningobjective_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentLearningObjective ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentlearningobjective_aggseq'); -CREATE INDEX ix_studentlearningobjective_aggid ON edfi.StudentLearningObjective (AggregateId); - -CREATE SEQUENCE edfi.studentparentassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentParentAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentparentassociation_aggseq'); -CREATE INDEX ix_studentparentassociation_aggid ON edfi.StudentParentAssociation (AggregateId); - -CREATE SEQUENCE edfi.studentprogramattendanceevent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentProgramAttendanceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentprogramattendanceevent_aggseq'); -CREATE INDEX ix_studentprogramattendanceevent_aggid ON edfi.StudentProgramAttendanceEvent (AggregateId); - -CREATE SEQUENCE edfi.studentschoolassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentSchoolAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentschoolassociation_aggseq'); -CREATE INDEX ix_studentschoolassociation_aggid ON edfi.StudentSchoolAssociation (AggregateId); - -CREATE SEQUENCE edfi.studentschoolattendanceevent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentSchoolAttendanceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentschoolattendanceevent_aggseq'); -CREATE INDEX ix_studentschoolattendanceevent_aggid ON edfi.StudentSchoolAttendanceEvent (AggregateId); - -CREATE SEQUENCE edfi.studentsectionassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentSectionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentsectionassociation_aggseq'); -CREATE INDEX ix_studentsectionassociation_aggid ON edfi.StudentSectionAssociation (AggregateId); - -CREATE SEQUENCE edfi.studentsectionattendanceevent_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.StudentSectionAttendanceEvent ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.studentsectionattendanceevent_aggseq'); -CREATE INDEX ix_studentsectionattendanceevent_aggid ON edfi.StudentSectionAttendanceEvent (AggregateId); - -CREATE SEQUENCE edfi.survey_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.Survey ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.survey_aggseq'); -CREATE INDEX ix_survey_aggid ON edfi.Survey (AggregateId); - -CREATE SEQUENCE edfi.surveycourseassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveyCourseAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveycourseassociation_aggseq'); -CREATE INDEX ix_surveycourseassociation_aggid ON edfi.SurveyCourseAssociation (AggregateId); - -CREATE SEQUENCE edfi.surveyprogramassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveyProgramAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveyprogramassociation_aggseq'); -CREATE INDEX ix_surveyprogramassociation_aggid ON edfi.SurveyProgramAssociation (AggregateId); - -CREATE SEQUENCE edfi.surveyquestion_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveyQuestion ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveyquestion_aggseq'); -CREATE INDEX ix_surveyquestion_aggid ON edfi.SurveyQuestion (AggregateId); - -CREATE SEQUENCE edfi.surveyquestionresponse_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveyQuestionResponse ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveyquestionresponse_aggseq'); -CREATE INDEX ix_surveyquestionresponse_aggid ON edfi.SurveyQuestionResponse (AggregateId); - -CREATE SEQUENCE edfi.surveyresponse_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveyResponse ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveyresponse_aggseq'); -CREATE INDEX ix_surveyresponse_aggid ON edfi.SurveyResponse (AggregateId); - -CREATE SEQUENCE edfi.surveyresponseeducationorganizationtargetassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveyResponseEducationOrganizationTargetAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveyresponseeducationorganizationtargetassociation_aggseq'); -CREATE INDEX ix_surveyresponseeducationorganizationtargetassociation_aggid ON edfi.SurveyResponseEducationOrganizationTargetAssociation (AggregateId); - -CREATE SEQUENCE edfi.surveyresponsestafftargetassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveyResponseStaffTargetAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveyresponsestafftargetassociation_aggseq'); -CREATE INDEX ix_surveyresponsestafftargetassociation_aggid ON edfi.SurveyResponseStaffTargetAssociation (AggregateId); - -CREATE SEQUENCE edfi.surveysection_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveySection ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveysection_aggseq'); -CREATE INDEX ix_surveysection_aggid ON edfi.SurveySection (AggregateId); - -CREATE SEQUENCE edfi.surveysectionassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveySectionAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveysectionassociation_aggseq'); -CREATE INDEX ix_surveysectionassociation_aggid ON edfi.SurveySectionAssociation (AggregateId); - -CREATE SEQUENCE edfi.surveysectionresponse_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveySectionResponse ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveysectionresponse_aggseq'); -CREATE INDEX ix_surveysectionresponse_aggid ON edfi.SurveySectionResponse (AggregateId); - -CREATE SEQUENCE edfi.surveysectionresponseedorgtargetassoc_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveySectionResponseEducationOrganizationTargetAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveysectionresponseedorgtargetassoc_aggseq'); -CREATE INDEX ix_surveysectionresponseedorgtargetassoc_aggid ON edfi.SurveySectionResponseEducationOrganizationTargetAssociation (AggregateId); - -CREATE SEQUENCE edfi.surveysectionresponsestafftargetassociation_aggseq START WITH -2147483648 INCREMENT BY 1 MINVALUE -2147483648; -ALTER TABLE edfi.SurveySectionResponseStaffTargetAssociation ADD COLUMN AggregateId int NOT NULL DEFAULT nextval('edfi.surveysectionresponsestafftargetassociation_aggseq'); -CREATE INDEX ix_surveysectionresponsestafftargetassociation_aggid ON edfi.SurveySectionResponseStaffTargetAssociation (AggregateId);