cacheTableMigration constant
String
const cacheTableMigration
the migration of the cache table, the same as dox cache:table makes.
It is a copy of CacheTableCommand.source() in dox_cache_database
(dox-orm repo), which dox_cache can not import. Keep the two the same.
Implementation
static const String cacheTableMigration = '''
// ignore_for_file: file_names
import 'package:dox_cache_database/dox_cache_database.dart';
import 'package:dox_migration/dox_migration.dart';
/// The cache table of dox_cache_database.
class CreateCacheTable extends Migration {
@override
Future<void> up(Schema schema) async {
await CacheTables.up(schema);
}
@override
Future<void> down(Schema schema) async {
await CacheTables.down(schema);
}
}
''';