File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -39,31 +39,13 @@ class Accounts extends Table {
39
39
40
40
Column <String > get ackedPushToken => text ().nullable ()();
41
41
42
- // If adding a column, be sure to add it to copyWithCompanion too.
43
-
44
42
@override
45
43
List <Set <Column <Object >>> get uniqueKeys => [
46
44
{realmUrl, userId},
47
45
{realmUrl, email},
48
46
];
49
47
}
50
48
51
- extension AccountExtension on Account {
52
- Account copyWithCompanion (AccountsCompanion data) { // TODO(drift): generate this
53
- return Account (
54
- id: data.id.present ? data.id.value : id,
55
- realmUrl: data.realmUrl.present ? data.realmUrl.value : realmUrl,
56
- userId: data.userId.present ? data.userId.value : userId,
57
- email: data.email.present ? data.email.value : email,
58
- apiKey: data.apiKey.present ? data.apiKey.value : apiKey,
59
- zulipVersion: data.zulipVersion.present ? data.zulipVersion.value : zulipVersion,
60
- zulipMergeBase: data.zulipMergeBase.present ? data.zulipMergeBase.value : zulipMergeBase,
61
- zulipFeatureLevel: data.zulipFeatureLevel.present ? data.zulipFeatureLevel.value : zulipFeatureLevel,
62
- ackedPushToken: data.ackedPushToken.present ? data.ackedPushToken.value : ackedPushToken,
63
- );
64
- }
65
- }
66
-
67
49
class UriConverter extends TypeConverter <Uri , String > {
68
50
const UriConverter ();
69
51
@override String toSql (Uri value) => value.toString ();
You can’t perform that action at this time.
0 commit comments