Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL Support? #21

Open
ronzalo opened this issue Dec 13, 2016 · 7 comments
Open

PostgreSQL Support? #21

ronzalo opened this issue Dec 13, 2016 · 7 comments

Comments

@ronzalo
Copy link

ronzalo commented Dec 13, 2016

Installed in a store with spree 3-0 and postgresql throw this error
PG::UndefinedFunction: ERROR: function monthname(timestamp without time zone) does not exist LINE 1: ...d_name", "payments"."amount" AS "payment_amount", MONTHNAME(... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.

@virajrch
Copy link

Hi @ronzalo
Did you get any solution for the Postgres support?

@palpandiR
Copy link

I am also having the similar issue here ...

PG::UndefinedFunction: ERROR: function year(timestamp without time zone) does not exist LINE 1: ...AS "new_sign_ups" FROM (SELECT "id" AS "user_id", YEAR("user... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.

@dsawa
Copy link
Contributor

dsawa commented Apr 25, 2017

@ronzalo @virajrch @railsfactory-palpandi
I made a fork with PR for 3-1-stable that adds support for Postgresql.

#32

@phutai
Copy link

phutai commented May 17, 2017

@dsawa Thanks! They didn't merge yet...How can I get this update?

@ezekg
Copy link

ezekg commented May 17, 2017

@phutai you should be able to do something like this in your Gemfile,

gem 'spree_admin_insights', git: 'https://github.com/dsawa/spree-admin-insights', ref: 'c75c0dd916eb76c683fbc524130fa4f5152ba9dc'

The ref hash at the end locks to a specific commit so that you don't run into issues when running bundle update since it would always pull from master without it.

@phutai
Copy link

phutai commented May 18, 2017

@ezekg It works, thank you very much!

@bansalakhil
Copy link

We have a major rewrite of the extension. Along with PostgreSQL support it also display hourly, daily, monthly reports (based on time interval selected). You can give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants