-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove creator and seller CIDs from the database (#1345)
- Loading branch information
1 parent
f251498
commit 60d613a
Showing
3 changed files
with
74 additions
and
118 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
20 changes: 20 additions & 0 deletions
20
src/Universalis.DbAccess/Migrations/0014_DeleteIdentifyingColumns.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,20 @@ | ||
using FluentMigrator; | ||
|
||
namespace Universalis.DbAccess.Migrations; | ||
|
||
[Migration(14)] | ||
public class DeleteIdentifyingColumns : Migration | ||
{ | ||
public override void Up() | ||
{ | ||
Delete.Column("creator_id").FromTable("listing"); | ||
Delete.Column("seller_id").FromTable("listing"); | ||
} | ||
|
||
public override void Down() | ||
{ | ||
Alter.Table("listing") | ||
.AddColumn("creator_id").AsString().Nullable() | ||
.AddColumn("seller_id").AsString().NotNullable().WithDefaultValue(""); | ||
} | ||
} |