-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🗃️ ci(profile): update profile class
update exceptions and created new ef migration Signed-off-by: csc530 <[email protected]>
- Loading branch information
Showing
6 changed files
with
294 additions
and
51 deletions.
There are no files selected for viewing
131 changes: 131 additions & 0 deletions
131
resume builder/Migrations/20231219140720_updateProfilePrimaryKeys.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
94 changes: 94 additions & 0 deletions
94
resume builder/Migrations/20231219140720_updateProfilePrimaryKeys.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,94 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace resume_builder.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class updateProfilePrimaryKeys : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropPrimaryKey( | ||
name: "PK_Profiles", | ||
table: "Profiles"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "FullName", | ||
table: "Profiles"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "WholeName", | ||
table: "Profiles"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "MiddleName", | ||
table: "Profiles", | ||
type: "TEXT", | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "TEXT"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "Company", | ||
table: "Jobs", | ||
type: "TEXT", | ||
nullable: false, | ||
defaultValue: "", | ||
oldClrType: typeof(string), | ||
oldType: "TEXT", | ||
oldNullable: true); | ||
|
||
migrationBuilder.AddPrimaryKey( | ||
name: "PK_Profiles", | ||
table: "Profiles", | ||
columns: new[] { "FirstName", "LastName", "EmailAddress", "PhoneNumber" }); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropPrimaryKey( | ||
name: "PK_Profiles", | ||
table: "Profiles"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "MiddleName", | ||
table: "Profiles", | ||
type: "TEXT", | ||
nullable: false, | ||
defaultValue: "", | ||
oldClrType: typeof(string), | ||
oldType: "TEXT", | ||
oldNullable: true); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "FullName", | ||
table: "Profiles", | ||
type: "TEXT", | ||
nullable: false, | ||
defaultValue: ""); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "WholeName", | ||
table: "Profiles", | ||
type: "TEXT", | ||
nullable: false, | ||
defaultValue: ""); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "Company", | ||
table: "Jobs", | ||
type: "TEXT", | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "TEXT"); | ||
|
||
migrationBuilder.AddPrimaryKey( | ||
name: "PK_Profiles", | ||
table: "Profiles", | ||
columns: new[] { "FirstName", "MiddleName", "LastName" }); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
using Spectre.Console.Cli; | ||
|
||
namespace resume_builder.cli.commands.edit; | ||
|
||
public class EditJobCommand: Command<EditJobSettings> | ||
{ | ||
public override int Execute([NotNull] CommandContext context, [NotNull] EditJobSettings settings) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public class EditJobSettings: CommandSettings | ||
{ | ||
} |
Oops, something went wrong.