-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some flaws in generation of settings.json #49
Comments
I'll take a look at it, let's keep this issue open for now. In the meantime you can fix the You can start the admin with $ admin -l path/to/config to log the queries that are issued. Right now the system queries responsible for setting up the |
Also @aol-nnov I don't thing this will work "defaultValue": "uuid_generate_v4()" You should set the |
@simov, that's exactly what i did - filled in by hand and it worked ;) and as for uuid fields - they may be generated on the application side, as well as on db side if left empty. Yes, I have already to changed |
If you intend to set values on the application side automatically use the events You can take a look at how I generate a unique id and set it here There isn't documentation about the exact structure of |
thank you for a hint, I'll look into it! |
One more example of the events can be found in the examples repository. In both cases you can open up the model file with MySql Workbench to see how the tables are visually constructed, then take a look at the configuration that is used in the admin. The structure of the example databases is identical for each database engine. |
@aol-nnov I just published a new version, so make an |
I have a table postgresql defined as
which yeilds the following generation of settings.json:
While it is not absolutely clear, why
"pk"
is left empty,"type": "varchar(null)"
is definitely a flaw which leads to problems with form validation during record editing.The text was updated successfully, but these errors were encountered: