Daniel Gasienica
|
24f4ad53bc
|
Use single quotes for identifiers
|
2018-04-11 15:54:32 -04:00 |
|
Daniel Gasienica
|
d9be6a0f94
|
Destructure Lodash require s
|
2018-04-02 15:12:04 -04:00 |
|
Daniel Gasienica
|
efe3cd67fc
|
Allow attachment migration run on higher database version
|
2018-04-02 12:17:36 -04:00 |
|
Daniel Gasienica
|
921c3dba7c
|
Skip migrations that have already been applied
|
2018-04-02 12:17:36 -04:00 |
|
Daniel Gasienica
|
c5c94bc3ab
|
Extract getMigrationVersions
|
2018-04-02 12:17:36 -04:00 |
|
Daniel Gasienica
|
6aea36240d
|
Rename closeDatabase to closeDatabaseConnection
|
2018-04-02 12:17:36 -04:00 |
|
Daniel Gasienica
|
016432826b
|
Extract database and settings modules
|
2018-04-02 12:17:36 -04:00 |
|
Daniel Gasienica
|
5bea894abd
|
Close database connection via Backbone IDB adapter
|
2018-04-02 12:17:36 -04:00 |
|
Daniel Gasienica
|
178a3cc262
|
Reduce work for verifying transaction completion
|
2018-04-02 12:17:36 -04:00 |
|
Daniel Gasienica
|
da144edc56
|
Manually close database connection after migration
|
2018-04-02 12:17:36 -04:00 |
|
Daniel Gasienica
|
fcd30cd919
|
Close database after migration
This is not 100% reliable as database connections are closed in a separate
thread according to the documentation:
- https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/close
- https://stackoverflow.com/a/18639298
- 80c7a06d5c/backbone-indexeddb.js (L558-L565)
|
2018-04-02 12:17:36 -04:00 |
|
Daniel Gasienica
|
d7c8d33edb
|
Extract runMigrations
|
2018-04-02 12:17:36 -04:00 |
|