Git Product home page Git Product logo

Comments (9)

nenadSavovic1 avatar nenadSavovic1 commented on July 21, 2024 2

Will do, thanks, Ben :)
p.s. just want to say that I have been subscribed to your channel for years now, even though you made a video on how you sleep enough for dev productivity and have time and motivation for everything I want to tell you that it still amazes me that you can create so many YT videos and share all that knowledge/experience.
Stay safe and keep up the good work.

from lireddit.

kurtzilla avatar kurtzilla commented on July 21, 2024 1

2 fixes I found. #1 is probably the most preferable

  1. make sure the postgres user has superuser privileges - ALTER USER myuser WITH SUPERUSER;
  2. in the mikro-orm.config, in the migrations section, add the disableForeignKeys option
    export default {
    migrations: {
    path: path.join(__dirname, './migrations'),
    pattern: /^[\w-]+\d+.[tj]s$/,
    disableForeignKeys: false,
    },
    ...

from lireddit.

benawad avatar benawad commented on July 21, 2024

did you try deleting the dist folder and rebuilding the project?

from lireddit.

nenadSavovic1 avatar nenadSavovic1 commented on July 21, 2024

Yes, still the same output, even cloned your branch, run your code with my small db changes and still the same issue :(
Probably something wrong with my postgresql :|

from lireddit.

nenadSavovic1 avatar nenadSavovic1 commented on July 21, 2024

just saw this
Screen Shot 2020-08-21 at 8 00 22 PM

from lireddit.

benawad avatar benawad commented on July 21, 2024

try creating a new postgres user and give it permissions to the db https://medium.com/coding-blocks/creating-user-database-and-adding-access-on-postgresql-8bfcd2f4a91e

from lireddit.

nenadSavovic1 avatar nenadSavovic1 commented on July 21, 2024

@benawad sorry if I am boring, I got it to work
In case anyone else is having this issue in the future, my solution was that in the mikro-orm.config file
in the DB configuration, I put my default root user as my Postgres user and it works
Screen Shot 2020-08-21 at 9 24 00 PM
Screen Shot 2020-08-21 at 9 23 13 PM
Something with the permissions/roles was off , maybe it is just my local machine

from lireddit.

nenadSavovic1 avatar nenadSavovic1 commented on July 21, 2024

@kurtzilla Looks like a clean and elegant solution, thanks for the info

from lireddit.

livike avatar livike commented on July 21, 2024

@kurtzilla Thanks! the #1 worked for me.

from lireddit.

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.