Repository navigation
Conversation
| "aString" text, | ||
| "aByteData" bytea | ||
| "aByteData" bytea, | ||
| "anUri" character varying |
There was a problem hiding this comment.
This should be of type text to be consistent with other database fields. (text and varchar are interchangeable in Postgres)
There was a problem hiding this comment.
Okk i will change it. Please LMK anything else.
|
@yahu1031 There is no test where the Uri is passed to the server or written to the database. That needs to be there. |
|
Yes that was pending, I'm not aware of how to implement. Will check it. |
I'm holding this back cause, that is a very super specific case. Unless you want a Uri. But we ideally don't have such a use-case cause when we |
|
I don't need it in my project. I just remembered, there was one more pending type addition. I think there should be types with build in support and types with documentation support. A type with build in support should work out of the box, with no additional work required by the developer. A type with documentation support should not be should not work out of the box, but there should be documentation how to use this type in a project using Regarding tests, I think it would be 'enough' mirror this lines with
|
|
|
||
| final id = _i1.ColumnInt('id'); | ||
|
|
||
| final url = _i1.ColumnSerializable('url'); |
There was a problem hiding this comment.
I think a ColumnString would be better.
Change would go here.
serverpod/tools/serverpod_cli/bin/generator/types.dart
Lines 173 to 186 in 046b955
|
This would be included with the above mentioned things fixed and most importantly, tests in place. |
|
Will use this PR as a ref and recreate a new PR with resolved conflicts. Closing this PR for time being. |
Fixed #426
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.Breaking changes
No breaking changes.