platform/angel_migration_runner/example/main.dart
2019-02-14 12:15:34 -05:00

15 lines
512 B
Dart
Executable file

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);