This repository has been archived by the owner on Nov 18, 2020. It is now read-only.
-
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.
У пользователя появилось поле для хранения base64 файла с аватаркой
- Loading branch information
Showing
4 changed files
with
33 additions
and
7 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
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
18 changes: 18 additions & 0 deletions
18
src/Infrastructure/NHibernate/Migration/Migration20200103001.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,18 @@ | ||
using FluentMigrator; | ||
|
||
namespace Infrastructure.NHibernate.Migration | ||
{ | ||
[Migration(20200103001)] | ||
public class Migration20200103001 : FluentMigrator.Migration | ||
{ | ||
public override void Up() | ||
{ | ||
Alter.Table("Users").AddColumn("AvatarBase64").AsString().Nullable(); | ||
} | ||
|
||
public override void Down() | ||
{ | ||
Delete.Column("AvatarBase64").FromTable("Users"); | ||
} | ||
} | ||
} |