migration constant

String const migration

the migration of the jobs tables, the same as dox queue:table (dox_queue_database). It is a copy: dox_queue cannot depend on dox_queue_database.

Implementation

static const String migration = '''
// ignore_for_file: file_names
import 'package:dox_migration/dox_migration.dart';
import 'package:dox_queue_database/dox_queue_database.dart';

/// The jobs, failed_jobs and job_batches tables of dox_queue_database.
class CreateQueueTables extends Migration {
@override
Future<void> up(Schema schema) async {
  await QueueTables.up(schema);
  await QueueTables.upBatches(schema);
}

@override
Future<void> down(Schema schema) async {
  await QueueTables.downBatches(schema);
  await QueueTables.down(schema);
}
}
''';