{"action":"opened","issue":{"url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/33","repository_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL","labels_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/33/comments","events_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/33/events","html_url":"https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/33","id":153656513,"number":33,"title":"Subsequent migrations after initial are not recognised by ApplicationDbContextModelSnapshot","user":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-08T13:44:47Z","updated_at":"2016-05-08T13:44:47Z","closed_at":null,"body":"_From @nocommonsense on November 21, 2015 19:52_\n\nHey,\r\n\r\nI'm having some trouble with my migrations following upgrading to RC1 final for EF7 and Npgsql. I'm finding that my initial migration is created properly, but any subsequent migrations are not modifying my ApplicationDbContextModelSnapshot.cs file.\r\n\r\nIn addition, the subsequent migrations appear to be removing all foreign key relationships added by the initial migration, and adding new ones in with Cascade on delete. I'm unsure whether Cascade on delete is now enabled by default in RC1 final, but I would expect this behavior to be added in my initial migration.\r\n\r\nPlease let me know if I can provide any more info or whether this question should be added to the EF7 repo instead.\r\n\r\nThanks!\r\nIan\r\n\n\n_Copied from original issue: npgsql/npgsql#880_"}}