Page 1 of 1
Rebuild Fields utility
Posted: 2023-01-10 15:16
by jfischer
Hi
In the AppGini definition of the model field it says "INT UNSIGNED NULL" but it should be VARCHAR (100). I have already regenerated and uploaded the files. But it doesn't change. Where can I look for the error?

- AppGini.jpg (16.79 KiB) Viewed 3164 times
I thank you in advance for your help
Kind regards
Joseph
Re: Rebuild Fields utility
Posted: 2023-01-10 18:59
by jsetzer
Delete setup.md5 and try again
Re: Rebuild Fields utility
Posted: 2023-01-11 08:13
by jfischer
Hello Mr. Setzer
Unfortunately it is not successful. AppGini wants the field as "INT UNSIGNED NULL" and the database is VARCHAR (100). It's actually not a blemish anymore, but it bothers me a bit. Data can still be entered and displayed correctly.
Deleted the Setup.md5 and reinstalled the tables (templates, hooks and in the root directory of Appgini. No success.
Thanks for your help.
Kind regards
Joseph
Re: Rebuild Fields utility
Posted: 2023-01-11 09:10
by jsetzer
Just an idea:
If
updateDB.php
cannot migrate that field from
VARCHAR
to
INT
automatically, perhaps there are values inside which are not convertable to int, eg alphanumerics "ABC" or values like "1.99".
Maybe you can quickly check the contents:
Code: Select all
SELECT DISTINCT `YOUR_COLUMN_NAME` FROM `YOUR_TABLE_NAME` ORDER BY 1
You could also check any logged SQL errors in Admin Area (/admin/pageQueryLogs.php?type=error)
Re: Rebuild Fields utility
Posted: 2023-01-11 11:38
by jfischer
Hello Mr. Setzer
From the definition in AppGini I would like to change the "Model" field from "INT UNSIGNED NULL" to Varchar (100) - as in the database.
Data is currently not available on the list. (Csv saved) Unfortunately, the field in the definition of AppGini is retained as such. Even rewriting the Setup.md5 is unsuccessful.
Kind regards
Joseph
Re: Rebuild Fields utility
Posted: 2023-01-11 11:54
by jfischer
Hello Mr. Setzer
In my Xampp environment it works like in the picture, but unfortunately not on the productive application on the Internet server. See image

- AppGini_1.jpg (14.89 KiB) Viewed 3131 times
Kind regards
Joseph
Re: Rebuild Fields utility
Posted: 2023-01-11 16:16
by jfischer
Hello Mr. Setzer
Now that I've uploaded the data again, it works. For whatever reason.
Nevertheless, many thanks for the help Mr. Setzer.
Kind regards
Joseph
