Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 209 additions & 0 deletions NotificationBot/Migrations/20251222095824_fixMigration.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions NotificationBot/Migrations/20251222095824_fixMigration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace NotificationsBot.Migrations
{
/// <inheritdoc />
public partial class fixMigration : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(" DO $$\r\nDECLARE\r\n db_name text;\r\nBEGIN\r\n SELECT current_database() INTO db_name;\r\n EXECUTE format('ALTER DATABASE %I REFRESH COLLATION version', db_name);\r\nEND $$;");
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{

}
}
}
2 changes: 1 addition & 1 deletion NotificationBot/Migrations/AppContextModelSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.1")
.HasAnnotation("ProductVersion", "9.0.11")
.HasAnnotation("Relational:MaxIdentifierLength", 63);

NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
Expand Down
3 changes: 2 additions & 1 deletion docker-compose_cd.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
services:
postgresql:
container_name: notificationbot-postgres
image: postgres:16
image: postgres:16.11
restart: unless-stopped
expose:
- ${POSTGRES_EXPOSE_PORT}
ports:
Expand Down