{"action":"created","issue":{"url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/58","repository_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL","labels_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/58/comments","events_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/58/events","html_url":"https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/58","id":163082106,"number":58,"title":"Migration fails with HasPostgresExtension","user":{"login":"akuseru","id":452568,"avatar_url":"https://avatars.githubusercontent.com/u/452568?v=3","gravatar_id":"","url":"https://api.github.com/users/akuseru","html_url":"https://github.com/akuseru","followers_url":"https://api.github.com/users/akuseru/followers","following_url":"https://api.github.com/users/akuseru/following{/other_user}","gists_url":"https://api.github.com/users/akuseru/gists{/gist_id}","starred_url":"https://api.github.com/users/akuseru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akuseru/subscriptions","organizations_url":"https://api.github.com/users/akuseru/orgs","repos_url":"https://api.github.com/users/akuseru/repos","events_url":"https://api.github.com/users/akuseru/events{/privacy}","received_events_url":"https://api.github.com/users/akuseru/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/milestones/2","html_url":"https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/milestones/1.0.1","labels_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/milestones/2/labels","id":1856350,"number":2,"title":"1.0.1","description":"","creator":{"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},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-06-29T23:08:09Z","updated_at":"2016-06-30T10:37:10Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-06-30T05:11:17Z","updated_at":"2016-07-01T13:40:28Z","closed_at":null,"body":"possibly related to #46 and the 1.0.0 release. but\r\n\r\n```\r\nSystem.InvalidOperationException: The current CSharpMigrationOperationGenerator cannot scaffold operations of type 'Microsoft.EntityFrameworkCore.Migrations.Operations.NpgsqlCreatePostgresExtensionOperation'. Configure your services to use one that can.\r\n   at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationOperationGenerator.Generate(MigrationOperation operation, IndentedStringBuilder builder)\r\n   at CallSite.Target(Closure , CallSite , CSharpMigrationOperationGenerator , Object , IndentedStringBuilder )\r\n   at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationOperationGenerator.Generate(String builderName, IReadOnlyList`1 operations, IndentedStringBuilder builder)\r\n   at Microsoft.EntityFrameworkCore.Migrations.Design.CSharpMigrationsGenerator.GenerateMigration(String migrationNamespace, String migrationName, IReadOnlyList`1 upOperations, IReadOnlyList`1 downOperations)\r\n   at Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder.ScaffoldMigration(String migrationName, String rootNamespace, String subNamespace)\r\n   at Microsoft.EntityFrameworkCore.Design.MigrationsOperations.AddMigration(String name, String outputDir, String contextType)\r\n   at Microsoft.EntityFrameworkCore.Tools.Cli.MigrationsAddCommand.Execute(CommonOptions commonOptions, String name, String outputDir, String context, String environment, Action`1 reporter)\r\n   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)\r\n   at Microsoft.EntityFrameworkCore.Tools.Cli.Program.Main(String[] args)\r\nThe current CSharpMigrationOperationGenerator cannot scaffold operations of type 'Microsoft.EntityFrameworkCore.Migrations.Operations.NpgsqlCreatePostgresExtensionOperation'. Configure your services to use one that can.\r\n```\r\n\r\ncaused by:\r\n\r\n```\r\n        protected override void OnModelCreating(ModelBuilder builder)\r\n        {\r\n            builder.HasPostgresExtension(\"uuid-ossp\");\r\n            \r\n            base.OnModelCreating(builder);\r\n        }\r\n```\r\n\r\nthe author in #46 said they cleared up this issue by cleaning nuget packages and restoring again, but this has not helped. \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/comments/229949180","html_url":"https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/58#issuecomment-229949180","issue_url":"https://api.github.com/repos/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/58","id":229949180,"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-07-01T13:40:28Z","updated_at":"2016-07-01T13:40:28Z","body":"This is indeed a bug with the provider, unfortunately I didn't test the PostgreSQL extension feature well enough before releasing.\r\n\r\nI'm looking into it, the fix isn't hard and will be released in 1.0.1."}}
{"actor":{"display_login":"roji"}}