-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync changes from TRS DB into DQT reporting database
- Loading branch information
Showing
15 changed files
with
4,911 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,248 changes: 2,248 additions & 0 deletions
2,248
...Core/DataStore/Postgres/Migrations/20240723161331_DqtReportingSyncPublication.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...rdSystem.Core/DataStore/Postgres/Migrations/20240723161331_DqtReportingSyncPublication.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
using TeachingRecordSystem.Core.Services.DqtReporting; | ||
|
||
#nullable disable | ||
|
||
namespace TeachingRecordSystem.Core.DataStore.Postgres.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class DqtReportingSyncPublication : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.Sql($"CREATE PUBLICATION {DqtReportingService.TrsDbPublicationName} FOR TABLE qualifications;"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.Sql($"DROP PUBLICATION {DqtReportingService.TrsDbPublicationName};"); | ||
} | ||
} | ||
} |
Oops, something went wrong.