GithubHelp home page GithubHelp logo

Comments (10)

solocreativeco avatar solocreativeco commented on July 19, 2024 1

Thanks, on it's way

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

Hey @solocreativeco ! Thanks for report the issue.

One of your generated model relationship (models/) seems to be incorrect :( Do you have the database (sample data or empty) to share? Then I'll be able to reproduce the issue on my side.

Thanks!

from lumber.

solocreativeco avatar solocreativeco commented on July 19, 2024

@SeyZ I wonder if it's because I have more than one foreign key on most tables along with cascade update and delete turned on. I could send you the database structure. I'm also using pgcrypto to generate UUIDs.

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

Hey @solocreativeco The database structure would be awesome, not need to have data! Is it possible?

from lumber.

solocreativeco avatar solocreativeco commented on July 19, 2024

@SeyZ What's the best way to get that to you?

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

@solocreativeco [email protected]

from lumber.

btubbs avatar btubbs commented on July 19, 2024

Also running into this issue with a Postgres database. Like solocreativeco, I'm using a custom PG function to generate IDs.

from lumber.

SteveMGits avatar SteveMGits commented on July 19, 2024

I have encountered this same issue using MySQL, with the admin panel and DB all running locally. Seems to be related to my database design as I get now issues with a new database with a single empty table.

Using Lumber 1.14.2 and MySQL 5.7

from lumber.

VincentMolinie avatar VincentMolinie commented on July 19, 2024

This issue is due to the id field not conventional. We need to fix it @SeyZ.
For now if you want to fix your issue it seems that specifying works for me (Especially inside models/advertisements) @SteveMGits:

    'Id': {
      type: DataTypes.Integer,
      primaryKey: true,
      autoincrement: true,
    },

from lumber.

SteveMGits avatar SteveMGits commented on July 19, 2024

@VincentMolinie thanks for the followup! Should I create a new issue then? Or, if one already exists, would you please share it? We're definitely interested in the product but I know we want to use UUIDs as our primary keys.

from lumber.

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.