mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[reputation] Use file-scoped namespaces.
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace West.TelegramBot.Reputation.Migrations
|
||||
{
|
||||
public partial class Initial : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterDatabase()
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
namespace West.TelegramBot.Reputation.Migrations;
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
public partial class Initial : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterDatabase()
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "UserReputation",
|
||||
columns: table => new
|
||||
{
|
||||
@@ -23,18 +23,17 @@ namespace West.TelegramBot.Reputation.Migrations
|
||||
{
|
||||
table.PrimaryKey("PK_UserReputation", x => new { x.ChatId, x.UserId });
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UserReputation_ChatId",
|
||||
table: "UserReputation",
|
||||
column: "ChatId");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "UserReputation");
|
||||
}
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UserReputation_ChatId",
|
||||
table: "UserReputation",
|
||||
column: "ChatId");
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "UserReputation");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user