mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Refactor and reorganize code.
This commit is contained in:
@@ -9,19 +9,15 @@ namespace Marechai.Database.Migrations
|
||||
{
|
||||
migrationBuilder.AddColumn<int>("DocumentCompanyId", "companies", nullable: true);
|
||||
|
||||
migrationBuilder.CreateTable("DocumentCompanies",
|
||||
table => new
|
||||
{
|
||||
Id = table.Column<int>()
|
||||
.Annotation("MySql:ValueGenerationStrategy",
|
||||
MySqlValueGenerationStrategy.IdentityColumn),
|
||||
Name = table.Column<string>(),
|
||||
CompanyId = table.Column<int>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_DocumentCompanies", x => x.Id);
|
||||
});
|
||||
migrationBuilder.CreateTable("DocumentCompanies", table => new
|
||||
{
|
||||
Id = table.Column<int>().
|
||||
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
Name = table.Column<string>(), CompanyId = table.Column<int>(nullable: true)
|
||||
}, constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_DocumentCompanies", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex("IX_companies_DocumentCompanyId", "companies", "DocumentCompanyId",
|
||||
unique: true);
|
||||
|
||||
Reference in New Issue
Block a user