{"action":"created","issue":{"url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql/issues/4","repository_url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql","labels_url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql/issues/4/comments","events_url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql/issues/4/events","html_url":"https://github.com/npgsql/EntityFramework6.Npgsql/issues/4","id":154473630,"number":4,"title":"Unhandled MigrationOperation ","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":[{"url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql/labels/ef6","name":"ef6","color":"ededed"},{"url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql/labels/feature","name":"feature","color":"ededed"},{"url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql/labels/waiting%20for%20answer","name":"waiting for answer","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-12T12:46:03Z","updated_at":"2016-05-12T12:46:06Z","closed_at":null,"body":"_From @lordscarlet on July 13, 2014 14:15_\n\nFirst off, I am using v2.2.0.\r\n\r\nI have created a MigrationOperation in order to add a full text index. However, it seems that the way the NpgsqlMigrationSqlGenerator is setup, you cannot add any new operations. Specifically, this code (I believe) will make it so that I can never add my own operation:\r\n\r\n        else\r\n        {\r\n          if (!(migrationOperation is UpdateDatabaseOperation))\r\n            throw new NotImplementedException(\"Unhandled MigrationOperation \" + migrationOperation.GetType().Name + \" in \" + this.GetType().Name);\r\n          this.Convert((migrationOperation as UpdateDatabaseOperation).Migrations as IEnumerable<MigrationOperation>);\r\n        }\r\n\r\nFrom what I can tell, this means that if I have made my own migration operation, an error will always be thrown. Is this intended? Or am I perhaps implementing my operation in the wrong way? I pretty much followed http://romiller.com/2013/02/27/ef6-writing-your-own-code-first-migration-operations/, but with the creation of an index instead. The most notable difference in my setup is a change in configuration:\r\n\r\n    SetSqlGenerator(\"NpgSql\", new PabloSqlServerMigrationSqlGenerator());\r\n\r\nOne other item of note, I am inheriting SqlServerMigrationSqlGenerator in my generator, because anything of value in NpgsqlMigrationSqlGenerator is private (AddStatement(), AppendTableName(), migrationStatements, etc), but as far as I can tell that shouldn't matter as long as NpgsqlMigrationSqlGenerator did not throw an unnecessary error.\n\n_Copied from original issue: npgsql/npgsql#276_"},"comment":{"url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql/issues/comments/218746033","html_url":"https://github.com/npgsql/EntityFramework6.Npgsql/issues/4#issuecomment-218746033","issue_url":"https://api.github.com/repos/npgsql/EntityFramework6.Npgsql/issues/4","id":218746033,"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},"created_at":"2016-05-12T12:46:06Z","updated_at":"2016-05-12T12:46:06Z","body":"_From @lordscarlet on July 17, 2014 21:8_\n\nI fixed the second item by removing System.ComponentModel.DataAnnotations from the list of references."}}