12345678910111213141516171819 |
- import 'package:vitalapp/database/db.dart';
- import 'base.dart';
- class DatabasePatchV5 extends BaseDatabasePatch {
- DatabasePatchV5(super.database);
- @override
- int get targetVersion => 4;
- @override
- Future<void> executeTask() async {
- // patient表新增字段
- await db.database.execute(
- 'ALTER TABLE patients ADD COLUMN gxyFollowUpCount INTEGER NOT NULL DEFAULT 0;');
- await db.database.execute(
- 'ALTER TABLE patients ADD COLUMN tnbFollowUpCount INTEGER NOT NULL DEFAULT 0;');
- }
- }
|