Giter Site home page Giter Site logo

Comments (6)

atifmir avatar atifmir commented on July 1, 2024

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

from corewiki.

csharpfritz avatar csharpfritz commented on July 1, 2024

from corewiki.

atifmir avatar atifmir commented on July 1, 2024

ok cool, thanks

from corewiki.

atifmir avatar atifmir commented on July 1, 2024

@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.

from corewiki.

atifmir avatar atifmir commented on July 1, 2024

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:""); }

from corewiki.

kyledavi5 avatar kyledavi5 commented on July 1, 2024

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.

from corewiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.