import 'package:gametime_server/infrastructure/postgres/postgres_database.dart';

Future<void> main(List<String> arguments) async {
  final connection = await PostgresConnectionFactory(
    PostgresConnectionConfig.fromEnvironment(),
  ).open();

  try {
    await PostgresMigrator(connection).applyMigrations();
    print('PostgreSQL migrations applied.');
  } finally {
    await connection.close();
  }
}
