Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need user Display names, not email addresses #346

Open
csharpfritz opened this issue Nov 9, 2018 · 6 comments
Open

Need user Display names, not email addresses #346

csharpfritz opened this issue Nov 9, 2018 · 6 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@csharpfritz
Copy link
Owner

This looks funny in the database and we don't want to expose the email address of users who might not want to share their email address

@csharpfritz csharpfritz added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Nov 9, 2018
@csharpfritz csharpfritz changed the title Need to convert usernames to true usernames, not email addresses Need user Display names, not email addresses Nov 9, 2018
@atifmir
Copy link

atifmir commented Nov 9, 2018

@csharpfritz if I understood correctly we want to remove email from comments page, user can just enter their display name and make comment?

@csharpfritz
Copy link
Owner Author

csharpfritz commented Nov 9, 2018 via email

@atifmir
Copy link

atifmir commented Nov 9, 2018

ok cool, thanks

@atifmir
Copy link

atifmir commented Nov 10, 2018

@csharpfritz when removing email from comment via migration, I encountered error; there is foreign key constraint set between email in comments and article ...... seem like this is constraint using SQLite.

Applying migration '20181110003331_RemovedEmailFromComment'.
System.NotSupportedException: SQLite does not support this migration operation ('DropForeignKeyOperation'). For more information, see http://go.microsoft.com/fwlink/?LinkId=723262.

@atifmir
Copy link

atifmir commented Nov 11, 2018

add migration does not produce the required scaffolding the following manual one I created to drop email column from comments table also does not work , and I get System.NotSupportedException: SQLite does not support this migration operation ('DropColumnOperation').
protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Email", table: "Comments"); }
protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "Email", table: "Comments", defaultValue:""); }

@kyledavi5
Copy link

I may be wrong here but I think you're getting this error because SQLite by design doesn't support dropping columns. I think the schema needs to be dropped and rebuilt with a new migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants