-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from MahdiyarGHD/develop
Fix memory leak
- Loading branch information
Showing
6 changed files
with
167 additions
and
8 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
...ionsMicroservice.Database/Migrations/20230831142301_SyncDatabaseForProduction.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
73 changes: 73 additions & 0 deletions
73
...thenticationsMicroservice.Database/Migrations/20230831142301_SyncDatabaseForProduction.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,73 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace EasyMicroservices.AuthenticationsMicroservice.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class SyncDatabaseForProduction : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.CreateTable( | ||
name: "Users", | ||
columns: table => new | ||
{ | ||
Id = table.Column<long>(type: "bigint", nullable: false) | ||
.Annotation("SqlServer:Identity", "1, 1"), | ||
UserName = table.Column<string>(type: "nvarchar(450)", nullable: true), | ||
Password = table.Column<string>(type: "nvarchar(max)", nullable: true), | ||
UniqueIdentity = table.Column<string>(type: "nvarchar(450)", nullable: true, collation: "SQL_Latin1_General_CP1_CS_AS"), | ||
CreationDateTime = table.Column<DateTime>(type: "datetime2", nullable: false), | ||
ModificationDateTime = table.Column<DateTime>(type: "datetime2", nullable: true), | ||
IsDeleted = table.Column<bool>(type: "bit", nullable: false), | ||
DeletedDateTime = table.Column<DateTime>(type: "datetime2", nullable: true) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Users", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Users_CreationDateTime", | ||
table: "Users", | ||
column: "CreationDateTime"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Users_DeletedDateTime", | ||
table: "Users", | ||
column: "DeletedDateTime"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Users_IsDeleted", | ||
table: "Users", | ||
column: "IsDeleted"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Users_ModificationDateTime", | ||
table: "Users", | ||
column: "ModificationDateTime"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Users_UniqueIdentity", | ||
table: "Users", | ||
column: "UniqueIdentity"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Users_UserName", | ||
table: "Users", | ||
column: "UserName", | ||
unique: true, | ||
filter: "[UserName] IS NOT NULL"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "Users"); | ||
} | ||
} | ||
} |
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
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
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
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