Skip to content

Commit f447df9

Browse files
committed
feat(database): create central list for all database migrations
- Introduce `allMigrations` list to store all database migration classes - Add initial migration for refactoring ad config to role-based system - Include necessary imports for migration functionality
1 parent a95ffca commit f447df9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import 'package:flutter_news_app_api_server_full_source_code/src/database/migration.dart';
2+
import 'package:flutter_news_app_api_server_full_source_code/src/database/migrations/20250924084800__refactor_ad_config_to_role_based.dart';
3+
4+
/// A central list of all database migrations to be applied.
5+
///
6+
/// New migration classes should be added to this list in the order they are
7+
/// created. The [DatabaseMigrationService] will automatically sort and apply
8+
/// them based on their version.
9+
final List<Migration> allMigrations = [
10+
RefactorAdConfigToRoleBased(),
11+
];

0 commit comments

Comments
 (0)