I don’t have any experience with Visual Fox Pro Databases, but for sure you need an external editor to change database definitions.
From within Servoy you are only able to create/delete tables and columns. Changing column definitions is not possible.
There are definitely Visual Fox Pro guru’s around on this forum to guide you on how to do it.
I’m (still) a FoxPro Developer and my recommendation is Database.NEThttps://fishcodelib.com/database.htm
This one differs from most other DB-Tools because of using the original VFP OleDB driver which can prevent many problems IF the Fox Database has some FoxPro code in stored procedures or record validations
It’s astonishing what this tiny portable exe is able to do. The free version does most of the things you might need.
I’m (still) a FoxPro Developer and my recommendation is Database.NEThttps://fishcodelib.com/database.htm
This one differs from most other DB-Tools because of using the original VFP OleDB driver which can prevent many problems IF the Fox Database has some FoxPro code in stored procedures or record validations
It’s astonishing what this tiny portable exe is able to do. The free version does most of the things you might need.
Hi John, did you fix it? Best is to add the PK in VFP. You may need to recreate the table and import the data again. Even better is to upgrade your databse to PostgreSQL if possible. I can help you with that. I have done it for several VFP databases.
omar:
Hi John, did you fix it? Best is to add the PK in VFP. You may need to recreate the table and import the data again. Even better is to upgrade your databse to PostgreSQL if possible. I can help you with that. I have done it for several VFP databases.
Hasn’t been fixed yet.
The VFP already has pk’s, and Servoy can identify the pk too. The issue is that it’s ‘allowing nulls’ for some reason.
It seems that the driver just does ignores nullability.
When I create a table using another JDBC tool (squirrelsql) outside Servoy I see exactly the same.
I can create a table with non-nullable fields
Hmmm so if there’s no way for Servoy to fix the Warning… is there any way I can filter them out? Any way of unselecting or ignoring the the specific database?
Not really sure how to do that.
[attachment=0]warning-filter.png[/attachment]
I had to make a New Configuration + New Working Set. In which it contains all project modules EXCEPT resources, thereby ignoring the database warnings.
Then made the resources it’s own Configuration + Working Set too, so I can look at it on it’s own.