Skip to content

Commit cbff707

Browse files
committed
fix migrations
1 parent 5a7675c commit cbff707

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 2.0.0-rc.2
1+
## 2.0.0-rc.3
22

33
- Migrate to `postgres` v3.
44

lib/src/database_access.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -309,13 +309,6 @@ abstract class DatabaseAccessBase<TX extends DatabaseTransactionBase<TABLES>,
309309
}
310310
});
311311
_logger.fine('Last migration: $lastMigration');
312-
if (lastMigration > 0 && lastMigration < 3) {
313-
_logger.warning('Recreating database.');
314-
await clean();
315-
await run((conn) async {
316-
await tables.migration.createTable(conn);
317-
});
318-
}
319312

320313
final migrationRun = clock.now().toUtc();
321314
await run((conn) async {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: postgres_utils
22
description: A few utils for working with postgresql databases.
3-
version: 2.0.0-rc.2
3+
version: 2.0.0-rc.3
44
homepage: https://github.com/authpass/postgres_utils.dart
55
issue_tracker: https://github.com/authpass/postgres_utils.dart/issues
66

0 commit comments

Comments
 (0)