gergo85 / oc-news

This is the simple news and newsletter plugin for October CMS and Winter CMS.
http://octobercms.com/plugin/indikator-news
MIT License
42 stars 29 forks source link

Fixed error if we use Postgres database #135

Closed elceka closed 4 years ago

elceka commented 4 years ago

As Laravel documantation mentioned for DB class method insertGetId:

When using PostgreSQL the insertGetId method expects the auto-incrementing column to be named id. If you would like to retrieve the ID from a different "sequence", you may pass the column name as the second parameter to the insertGetId method.

In context of code, returned ID's isn't used, we don't need it.

gergo85 commented 4 years ago

Thank you very much!