Commit Graph

2864 Commits

Author SHA1 Message Date
Simon Binder 44e7aea043
Prepare drift_dev 2.3.3 release 2022-12-12 22:39:00 +01:00
Simon Binder 4bc6dfe834
Fox crash when serializing simple queries 2022-12-12 22:37:49 +01:00
Simon Binder 5f887b8d2a
Add updates parameter to Batch.customStatement 2022-12-12 22:31:48 +01:00
Simon Binder 8b4cb60f03
Add old packages to melos 2022-12-12 22:18:31 +01:00
Simon Binder ec2b564611
Fox crash when serializing simple queries 2022-12-12 22:18:10 +01:00
Simon Binder b6cff50135
Parse custom constraints applied to columns 2022-12-11 00:06:45 +01:00
Simon Binder 1c06873403
Fix reading triggers in old schema files (#2191) 2022-12-10 22:57:45 +01:00
Simon Binder 0bb7f79607
Merge pull request #2189 from JuanMAlcarazXYZ/develop
A couple bugfixes for complex migration
2022-12-07 21:54:54 +01:00
Simon Binder 50d91144fe
Fix tests, which are also failing due to views 2022-12-07 21:46:54 +01:00
Simon Binder c4eaabb54f
Add tests 2022-12-07 21:43:25 +01:00
Juanma fd3dd8aae0
On alterTable INSERT pass correct param to "args"
Bugfix:
ArgumentError (Invalid argument (params[1]): Allowed parameters must
either be null or bool, int, num, String or List<int>.: Instance of
'Variable<Object>')
when passing Variable to columnTransformer's Expression.

Passing "boundVariables" instead of "introducedVariables", just like
"createTable" method at line 119 does.
2022-12-07 21:43:25 +01:00
Juan M. Alcaraz 0c28e45c39
Check for generated columns on migration
Bugfix: SqliteException(1): cannot INSERT into generated column "generated", SQL logic error.
2022-12-07 21:43:25 +01:00
Simon Binder fb3d832f0f
Fix modular accessors sometimes not being generated 2022-12-07 21:27:45 +01:00
Simon Binder a3d755ca19
Merge pull request #2184 from North101/develop
Various fixes for modular code gen
2022-12-07 11:20:26 +01:00
Simon Binder 6659d78ca7
Oops, fix compilation errors 2022-12-07 11:05:22 +01:00
Simon Binder c0c1810bcf
Don't generate empty drift accessors 2022-12-07 10:55:20 +01:00
Simon Binder a637708591
Generate getters for DAO as well 2022-12-06 22:10:21 +01:00
Simon Binder 5a8dd923d6
Add more examples to modular project 2022-12-06 21:19:20 +01:00
Simon Binder 7f5e671939
Support older `string_scanner` versions as well 2022-12-06 18:19:20 +01:00
Alexander Wilde ec01ad275a Various fixes for modular code gen 2022-12-05 17:16:06 +00:00
Simon Binder dafa07a88a
Don't further analyze part files (#2185) 2022-12-05 17:59:51 +01:00
Simon Binder c0d5188c18
Fix generating modular type converter code (#2183) 2022-12-04 19:14:24 +01:00
Simon Binder d60c775435
Merge pull request #2181 from ValentinVignal/column-name-case
Add the `column_name_case` option
2022-12-03 14:13:16 +01:00
Simon Binder d366cff9ee
Write utils for function stubs 2022-12-03 14:05:58 +01:00
ValentinVignal 1e6a6cc666
🔥 Remove extra space 2022-12-03 16:19:02 +08:00
ValentinVignal 5b7a9f487a
Update the tests 2022-12-03 16:16:25 +08:00
ValentinVignal 8a34a41fba
♻️ apply the recase option to table name 2022-12-03 16:16:13 +08:00
ValentinVignal 496635afb5
🚚 Rename column_name_case into case_from_dart_to_sql 2022-12-03 15:55:58 +08:00
ValentinVignal b08088ab1b
Merge remote-tracking branch 'upstream/develop' into column-name-case 2022-12-03 14:56:51 +08:00
Simon Binder 387a21c580
Relax constraints on element order in drift files 2022-12-03 00:06:05 +01:00
Simon Binder 1a51dbf4d6
Static analysis support for custom functions 2022-12-02 23:34:42 +01:00
Simon Binder 8c8c54e992
Wrap `FutureOr` callback in request handler 2022-12-02 11:46:16 +01:00
ValentinVignal 604db99801
Revert upgrade of version number 2022-12-01 23:56:08 +08:00
ValentinVignal 2a8e9d7af0
✏️ Fix typo for camelCase 2022-12-01 23:41:32 +08:00
Simon Binder 8ce8f6a6fc
Merge pull request #2179 from North101/develop
Add toJson/fromJson support to enum types
2022-12-01 16:39:58 +01:00
ValentinVignal ce0568e70c
📦 Re-run build runner 2022-12-01 23:34:00 +08:00
ValentinVignal 8548ff4423
⬆️ Upgrade version number 2022-12-01 23:27:46 +08:00
ValentinVignal 0f8a6c0a1e
📝 Add column_name_case in the documentation 2022-12-01 23:27:03 +08:00
ValentinVignal d719b9598a
Test on column_name_case option 2022-12-01 23:26:51 +08:00
ValentinVignal 3835e0aae4
Adds column_name_case option 2022-12-01 23:26:33 +08:00
Alexander Wilde c80e6b6cbe Fix tests 2022-12-01 04:43:27 +00:00
Alexander Wilde 5a6f402d86 Run build 2022-12-01 04:43:27 +00:00
Alexander Wilde c1ee1f7274 Add JsonTypeConverter support to enums 2022-12-01 04:43:20 +00:00
Simon Binder 6503624ff1
Merge pull request #2168 from ValentinVignal/textEnum
Add `textEnum` column builder and `EnumNameConverter`
2022-11-30 22:07:54 +01:00
Simon Binder 8f98e14836
Add docs for drift files 2022-11-30 21:56:56 +01:00
Simon Binder 061d9b2008
Use indirect import for test 2022-11-30 21:29:44 +01:00
ValentinVignal 3cfa69c9d9
:sparkles Add ENUMNAME type 2022-12-01 00:40:13 +08:00
ValentinVignal ed82e46f2d
Add enum name converter test 2022-12-01 00:07:54 +08:00
ValentinVignal 0c35d30dcb
💡 Better test description 2022-12-01 00:00:54 +08:00
ValentinVignal 89aec378af
Merge remote-tracking branch 'upstream/develop' into textEnum 2022-11-30 23:55:25 +08:00