-
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.
- Loading branch information
Showing
49 changed files
with
1,282 additions
and
78 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
213 changes: 213 additions & 0 deletions
213
StarWarsKb.Back/Migrations/20220402083803_parsemigration.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
89 changes: 89 additions & 0 deletions
89
StarWarsKb.Back/Migrations/20220402083803_parsemigration.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,89 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
namespace StarWarsKb.Back.Migrations | ||
{ | ||
public partial class parsemigration : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<string>( | ||
name: "Climate", | ||
table: "Planets", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<int>( | ||
name: "Diameter", | ||
table: "Planets", | ||
nullable: false, | ||
defaultValue: 0); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "Gravity", | ||
table: "Planets", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<int>( | ||
name: "OrbitalPeriod", | ||
table: "Planets", | ||
nullable: false, | ||
defaultValue: 0); | ||
|
||
migrationBuilder.AddColumn<int>( | ||
name: "Population", | ||
table: "Planets", | ||
nullable: false, | ||
defaultValue: 0); | ||
|
||
migrationBuilder.AddColumn<int>( | ||
name: "RotationPeriod", | ||
table: "Planets", | ||
nullable: false, | ||
defaultValue: 0); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "SurfaceWater", | ||
table: "Planets", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "Terrain", | ||
table: "Planets", | ||
nullable: true); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "Climate", | ||
table: "Planets"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Diameter", | ||
table: "Planets"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Gravity", | ||
table: "Planets"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "OrbitalPeriod", | ||
table: "Planets"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Population", | ||
table: "Planets"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "RotationPeriod", | ||
table: "Planets"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "SurfaceWater", | ||
table: "Planets"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Terrain", | ||
table: "Planets"); | ||
} | ||
} | ||
} |
Oops, something went wrong.