Giter Site home page Giter Site logo

Comments (6)

omohokcoj avatar omohokcoj commented on May 22, 2024

Hi @laloweb99 - motor admin should display all tables which are present in your postgresql database automatically.
If you have some custom sql view in your Gorm application then you probably need to copy that sql code into motor admin queries to display it there.

from motor-admin.

laloweb99 avatar laloweb99 commented on May 22, 2024

I have the "papers" table on the public schema but is not being shown on motor admin. I'm running the docker compose. Is there a way to sync the tables on moto admin?
image

image

from motor-admin.

omohokcoj avatar omohokcoj commented on May 22, 2024

@laloweb99 it seems like you are using the same docker compose postgresql for motor admin configuration tables and for application data tables.
You need to make sure that motor admin is connected to the same docker compose database with papers table here (if that's what is intended):
http://localhost:3000/settings/database

But usually application data should be stored in a separate database (meaning that your papers table won't be in the same database with motor_admin_users table) - you can specify databases using this link http://localhost:3000/settings/database (might require to restart a server).

Please let me know if this solves the issue.

from motor-admin.

laloweb99 avatar laloweb99 commented on May 22, 2024

I moved the "papers" table to an app database but it's still not showing the "papers" resource:

DB config on motor admin
image

Tables on app databse
image

Resources shown in motor admin
image

from motor-admin.

omohokcoj avatar omohokcoj commented on May 22, 2024

@laloweb99 apparently the table was not visible because it didn't contain a primary key.
This bug has been fixed in the latest 0.2.38 release - you can update your docker image with docker pull motoradmin/motoradmin:latest

from motor-admin.

laloweb99 avatar laloweb99 commented on May 22, 2024

Now it shows the table 😄 thank you so much!

from motor-admin.

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.