• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Varchar primary key

Julo

New Member
Hi did fabrik 3.0a2 support Varchar primary key?
I have to create a list from a table whose primary key is a varchar.
Any idea?
Cheers,
Julo
 
do you mean as opposed to having the 'id' column, which is int(11), as the primary key?

i'm not sure myself but i'd be interested to know also.
 
I seem to recall that was causing issues in some situation, like with joins for instance.
But I think for a "simple" list, it should be OK.

In the meantime, you should update to the latest Fabrik3 : your alpha version is quite old!
 
jfquestiaux/rw1, Thanks.

I've updated Fabrik but the problem remains the same.
In fact I can put a VARCHAR as primary key, but when I do an insert from my list, the field defined as primary become an integer.
example:
If I have a table that has fields (country, region, state) with the primary key country (VARCHAR).
If I add the record (France, Centre, Loiret) from the list, I get (0, center, Loiret) after saving.
 
looks like there were a couple of issues which were stopping that from working, try updating from github as I have added some fixes.
You will probably have to edit and save you list to update the pk settings.
 
I made the changes, but there's a new problem.
When I create a new list, the link to table area does not load the tables contained in my database.
 
Hi, try to put a limit on the VARCHAR declaration like VARCHAR(150). let us know of the results
 
@julo do you get a javascript error?
have you checked that the connection details are correct?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top