evoluteur / evolutility-server-node

Model-driven REST APIs for CRUD and more, written in Javascript, using Node.js, Express, and PostgreSQL.
GNU Affero General Public License v3.0
112 stars 33 forks source link

Setup database now fails with duplicate column "parent_id" #20

Closed david-pfx closed 5 years ago

david-pfx commented 5 years ago

The fix is easy: just give the field a different column name such as:

{
        "id": "parent",
        "type": "lov",
        "label": "Parent",
        "object": "test",
        "required": true,
        "inMany": true,
        "column": "f_parent",
        //"column": "parent_id",
        "lovtable": "z_test"
},

The test table doesn't show up on the menu, so it's not easy to check if the fixed data works ok.

evoluteur commented 5 years ago

It is working fine. It may have been fixed by some other changes.

david-pfx commented 5 years ago

Yes. You commented out the code that caused the bug. See database.js 108-115.

So this is a Lazarus bug -- it may return from the dead.