mirror of https://github.com/AMT-Cheif/drift.git
Re-generate migration code
This commit is contained in:
parent
6bedc5f88c
commit
6c8ec17043
|
@ -831,8 +831,10 @@ class GroupCount extends ViewInfo<GroupCount, GroupCountData>
|
||||||
@override
|
@override
|
||||||
String get entityName => 'group_count';
|
String get entityName => 'group_count';
|
||||||
@override
|
@override
|
||||||
String get createViewStmt =>
|
Map<SqlDialect, String> get createViewStatements => {
|
||||||
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users';
|
SqlDialect.sqlite:
|
||||||
|
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users',
|
||||||
|
};
|
||||||
@override
|
@override
|
||||||
GroupCount get asDslTable => this;
|
GroupCount get asDslTable => this;
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:drift/internal/versioned_schema.dart' as i0;
|
import 'package:drift/internal/versioned_schema.dart' as i0;
|
||||||
import 'package:drift/drift.dart' as i1;
|
import 'package:drift/drift.dart' as i1;
|
||||||
import 'package:drift/drift.dart'; // ignore_for_file: type=lint
|
import 'package:drift/drift.dart'; // ignore_for_file: type=lint,unused_import
|
||||||
|
|
||||||
// GENERATED BY drift_dev, DO NOT MODIFY.
|
// GENERATED BY drift_dev, DO NOT MODIFY.
|
||||||
final class _S2 extends i0.VersionedSchema {
|
final class _S2 extends i0.VersionedSchema {
|
||||||
|
|
|
@ -490,8 +490,10 @@ class GroupCount extends ViewInfo<GroupCount, GroupCountData>
|
||||||
@override
|
@override
|
||||||
String get entityName => 'group_count';
|
String get entityName => 'group_count';
|
||||||
@override
|
@override
|
||||||
String get createViewStmt =>
|
Map<SqlDialect, String> get createViewStatements => {
|
||||||
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users';
|
SqlDialect.sqlite:
|
||||||
|
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users'
|
||||||
|
};
|
||||||
@override
|
@override
|
||||||
GroupCount get asDslTable => this;
|
GroupCount get asDslTable => this;
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -531,8 +531,10 @@ class GroupCount extends ViewInfo<GroupCount, GroupCountData>
|
||||||
@override
|
@override
|
||||||
String get entityName => 'group_count';
|
String get entityName => 'group_count';
|
||||||
@override
|
@override
|
||||||
String get createViewStmt =>
|
Map<SqlDialect, String> get createViewStatements => {
|
||||||
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users';
|
SqlDialect.sqlite:
|
||||||
|
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users'
|
||||||
|
};
|
||||||
@override
|
@override
|
||||||
GroupCount get asDslTable => this;
|
GroupCount get asDslTable => this;
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -531,8 +531,10 @@ class GroupCount extends ViewInfo<GroupCount, GroupCountData>
|
||||||
@override
|
@override
|
||||||
String get entityName => 'group_count';
|
String get entityName => 'group_count';
|
||||||
@override
|
@override
|
||||||
String get createViewStmt =>
|
Map<SqlDialect, String> get createViewStatements => {
|
||||||
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users';
|
SqlDialect.sqlite:
|
||||||
|
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users'
|
||||||
|
};
|
||||||
@override
|
@override
|
||||||
GroupCount get asDslTable => this;
|
GroupCount get asDslTable => this;
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -535,8 +535,10 @@ class GroupCount extends ViewInfo<GroupCount, GroupCountData>
|
||||||
@override
|
@override
|
||||||
String get entityName => 'group_count';
|
String get entityName => 'group_count';
|
||||||
@override
|
@override
|
||||||
String get createViewStmt =>
|
Map<SqlDialect, String> get createViewStatements => {
|
||||||
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users';
|
SqlDialect.sqlite:
|
||||||
|
'CREATE VIEW group_count AS SELECT users.*, (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count FROM users'
|
||||||
|
};
|
||||||
@override
|
@override
|
||||||
GroupCount get asDslTable => this;
|
GroupCount get asDslTable => this;
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -735,8 +735,10 @@ class GroupCount extends ViewInfo<GroupCount, GroupCountData>
|
||||||
@override
|
@override
|
||||||
String get entityName => 'group_count';
|
String get entityName => 'group_count';
|
||||||
@override
|
@override
|
||||||
String get createViewStmt =>
|
Map<SqlDialect, String> get createViewStatements => {
|
||||||
'CREATE VIEW group_count AS SELECT\n users.*,\n (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count\n FROM users;';
|
SqlDialect.sqlite:
|
||||||
|
'CREATE VIEW group_count AS SELECT\n users.*,\n (SELECT COUNT(*) FROM "groups" WHERE owner = users.id) AS group_count\n FROM users;'
|
||||||
|
};
|
||||||
@override
|
@override
|
||||||
GroupCount get asDslTable => this;
|
GroupCount get asDslTable => this;
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in New Issue