Simon Binder
7b639f837a
Generate helper Dart file to serialize types
2022-12-25 19:10:48 +01:00
Simon Binder
1d8fa16e2c
Enable legacy alter table in alterTable
2022-12-23 13:42:01 +01:00
Simon Binder
7be97d139e
Merge pull request #2226 from North101/develop
...
Fix DriftSqlType.deserialize for double, dateTime and any
2022-12-22 04:57:42 +01:00
Alexander Wilde
32c34b511a
Fix DriftSqlType.deserialize for double, dateTime and any
2022-12-22 02:08:04 +00:00
Simon Binder
8a4dea57e7
Implement setRequestHandler with async/await
2022-12-20 23:45:37 +01:00
Simon Binder
de67278f73
Merge pull request #2222 from ynnob/fix/illegal_cast
...
Fix: remove illegal cast
2022-12-20 19:16:47 +01:00
Simon Binder
22a3d3965c
Allow `autoIncrement` on `int64` columns ( #2223 )
2022-12-20 18:52:08 +01:00
Bonnyfication
e00ac0062b
Handle numeric and boolean object conversion
2022-12-20 00:40:01 +01:00
Simon Binder
344d5611c6
Merge pull request #2220 from North101/develop
...
Validate enum default value in drift files
2022-12-20 00:11:47 +01:00
Simon Binder
056fdac8cb
Remove unused import, add changelog
2022-12-19 23:58:08 +01:00
Simon Binder
1497d719b5
Extend check to all literal uses
2022-12-19 23:55:13 +01:00
Alexander Wilde
bdfa8124fe
Allow referencing enum value for default
2022-12-19 12:27:46 +00:00
Bonnyfication
410fac4df3
Fix: remove illegal cast
2022-12-19 00:25:05 +01:00
Simon Binder
18c6139eb3
Exchange dialect information for remote database
2022-12-18 22:02:49 +01:00
Simon Binder
4644bce9dd
Save database after `RETURNING` write ( #2206 )
2022-12-18 20:42:29 +01:00
Simon Binder
e2265eb597
Add `DriftAny` type to wrap `ANY` in strit tables
2022-12-18 18:55:17 +01:00
Simon Binder
b520568984
Ignore internal tables when reading schema from db
2022-12-18 15:26:40 +01:00
Simon Binder
0e395bbef3
Fix `JSON KEY` not working
2022-12-17 21:36:24 +01:00
Simon Binder
425878b712
Fix tests around custom constraints
2022-12-16 16:03:34 +01:00
Simon Binder
657b68ab76
Extract custom Dart table constraints into schema
2022-12-16 15:34:07 +01:00
Simon Binder
add680b8bf
Move `SchemaInstantiationHelper` to drift package
2022-12-16 14:09:54 +01:00
Simon Binder
dec5769dcc
Merge pull request #2212 from North101/develop
...
Allow join on views
2022-12-16 01:13:33 +01:00
Alexander Wilde
3458656669
Fix tests
2022-12-15 23:19:48 +00:00
Alexander Wilde
30cc4e0b21
Add join view test
2022-12-15 20:30:11 +00:00
Alexander Wilde
ccecd2330e
Allow joins on views
2022-12-15 20:30:11 +00:00
Simon Binder
5f8b1e3358
Recognize database files when dumping schema data
2022-12-15 16:47:44 +01:00
Simon Binder
e5371afe92
Merge pull request #2198 from North101/develop
...
Add functions: iif, ifnull, nullif
2022-12-14 20:57:52 +01:00
Simon Binder
87d0ca3c4e
Move nullIf into expression class
2022-12-14 20:47:45 +01:00
Alexander Wilde
41395abe3f
Add tests
2022-12-14 12:13:05 +00:00
Alexander Wilde
2a4515ed51
Add functions: iif, ifnull, nullif
2022-12-14 12:13:05 +00:00
Simon Binder
9f1da6ff50
Merge pull request #2199 from kuhnroyal/modular-fixes
...
Fixes for modular generation
2022-12-13 23:58:11 +01:00
Simon Binder
597d84db26
Fix import expectation
2022-12-13 22:04:35 +01:00
Simon Binder
00dbc2f886
Avoid nested codes, add tests
2022-12-13 21:53:17 +01:00
Peter Leibiger
a5f184857d
Fix duplicate result classes in modular mode
2022-12-13 01:41:03 +01:00
Peter Leibiger
a3ce27f4e0
Fix typos
2022-12-13 01:40:21 +01:00
Peter Leibiger
bf3f15909c
Fix converter import prefixes missing in modular mode
2022-12-13 01:39:46 +01:00
Simon Binder
16e6aaf4fe
Use extension for all tables in modular generation
2022-12-12 23:50:11 +01:00
Simon Binder
5f2d52ccc5
Merge branch 'latest-release' into develop
2022-12-12 22:45:11 +01:00
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