panique / huge

Simple user-authentication solution, embedded into a small framework.
2.14k stars 789 forks source link

[QUESTION] PostgreSQL #876

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi @panique,

I do understand that this project has reached end of life. Just would like to know can this project handle PostgreSQL and if yes how would I go by using it?

panique commented 5 years ago

I think it should be actually quite easy, can you please change the config block in application/config/config.development.php from mysql to pgsql and see if it works ? if not, then you might change the getConnection syntax inside application/core/DatabaseFactory.php from mysql to postgres, this PHP doc page shows the syntax i think: http://php.net/manual/de/ref.pdo-pgsql.connection.php

I think it can be done in 10minutes by just chaning some lines :)

ghost commented 5 years ago

Thanks @panique I will give this a try.

ghost commented 5 years ago

Hi @panique,

Overlooking the PHP doc page provided it seems this is possible by changing mysql to pgsql within application/config/config.development.php.

I thought it would require a major change judging by this issue https://github.com/panique/huge/issues/584

panique commented 5 years ago

;)