mirror of https://github.com/AMT-Cheif/drift.git
Fix view schema test
This commit is contained in:
parent
e624d4dcca
commit
38fa91fa17
|
@ -66,7 +66,7 @@ void main() {
|
||||||
[]));
|
[]));
|
||||||
|
|
||||||
verify(mockExecutor.runCustom(
|
verify(mockExecutor.runCustom(
|
||||||
'CREATE VIEW category_todo_count_view AS SELECT '
|
'CREATE VIEW IF NOT EXISTS category_todo_count_view AS SELECT '
|
||||||
'categories."desc" AS "categories.desc", '
|
'categories."desc" AS "categories.desc", '
|
||||||
'COUNT(todos.id) AS "item_count" '
|
'COUNT(todos.id) AS "item_count" '
|
||||||
'FROM categories '
|
'FROM categories '
|
||||||
|
@ -75,7 +75,7 @@ void main() {
|
||||||
[]));
|
[]));
|
||||||
|
|
||||||
verify(mockExecutor.runCustom(
|
verify(mockExecutor.runCustom(
|
||||||
'CREATE VIEW todo_with_category_view AS SELECT '
|
'CREATE VIEW IF NOT EXISTS todo_with_category_view AS SELECT '
|
||||||
'todos.title AS "todos.title", '
|
'todos.title AS "todos.title", '
|
||||||
'categories."desc" AS "categories.desc" '
|
'categories."desc" AS "categories.desc" '
|
||||||
'FROM todos '
|
'FROM todos '
|
||||||
|
|
Loading…
Reference in New Issue