platform/angel_migration_runner/example/main.dart

16 lines
512 B
Dart
Raw Normal View History

2019-02-14 17:15:34 +00:00
import 'package:angel_migration_runner/angel_migration_runner.dart';
import 'package:angel_migration_runner/postgres.dart';
import 'package:postgres/postgres.dart';
import '../../angel_migration/example/todo.dart';
var migrationRunner = new PostgresMigrationRunner(
new PostgreSQLConnection('127.0.0.1', 5432, 'test',
username: 'postgres', password: 'postgres'),
migrations: [
new UserMigration(),
new TodoMigration(),
],
);
main(List<String> args) => runMigrations(migrationRunner, args);