migrateFileContents top-level property

String migrateFileContents
getter/setter pair

Implementation

String migrateFileContents = '''
import 'dart:io';
import 'package:vania/vania.dart';
import '../../config/database.dart';

void main() async {
  Env().load();
  await Migrate().registry();
  await MigrationConnection().closeConnection();
  exit(0);
}

class Migrate {
  registry() async {
		await MigrationConnection().setup(databaseConfig);
	}
}
''';