/
00000002_unnamed.migration.dart
41 lines (37 loc) · 1.09 KB
/
00000002_unnamed.migration.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import 'dart:async';
import 'package:aqueduct/aqueduct.dart';
class Migration2 extends Migration {
@override
Future upgrade() async {
database.createTable(SchemaTable("stub_setting", [
SchemaColumn("id", ManagedPropertyType.bigInteger,
isPrimaryKey: true,
autoincrement: true,
isIndexed: false,
isNullable: false,
isUnique: false),
SchemaColumn("startDate", ManagedPropertyType.datetime,
isPrimaryKey: false,
autoincrement: false,
isIndexed: true,
isNullable: false,
isUnique: false),
SchemaColumn("releaseDate", ManagedPropertyType.datetime,
isPrimaryKey: false,
autoincrement: false,
isIndexed: true,
isNullable: false,
isUnique: false),
SchemaColumn("updated", ManagedPropertyType.datetime,
isPrimaryKey: false,
autoincrement: false,
isIndexed: true,
isNullable: false,
isUnique: false)
]));
}
@override
Future downgrade() async {}
@override
Future seed() async {}
}