Giter Site home page Giter Site logo

Comments (5)

fguillot avatar fguillot commented on May 11, 2024

Until a better solution is found, you could give the superuser permission temporarily, run the migrations and drop the privilege after.

from v2.

helmut72 avatar helmut72 commented on May 11, 2024

I've done the migration with user postgres, then changed the database variable to my Miniflux user, but that failed. Will try it with my Miniflux user.

from v2.

e477 avatar e477 commented on May 11, 2024

A simple workaround is to run CREATE EXTENSION hstore; as the postgres superuser on the freshly created miniflux database. With the extension already present, running the migrations should work as a normal user without additional privileges.

from v2.

helmut72 avatar helmut72 commented on May 11, 2024

Ok, thank you. This will work:

sudo -u postgres psql <<END
CREATE USER miniflux_user WITH PASSWORD 'miniflux_password';
CREATE DATABASE miniflux_db WITH OWNER miniflux_user TEMPLATE template0 ENCODING 'UTF8';
END
sudo -u postgres psql -d miniflux_db -c 'create extension hstore;'

from v2.

neur0manc avatar neur0manc commented on May 11, 2024

Another workaround:

  1. ALTER USER miniflux WITH SUPERUSER;
  2. Start miniflux -migrate
  3. ALTER USER miniflux WITH NOSUPERUSER;

from v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.