@madewithremy/admin 0.1.61 → 0.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.js.map +2 -2
- package/dist/ops/db.d.ts +5 -1
- package/dist/prod.js +4 -0
- package/package.json +1 -1
package/dist/ops/db.d.ts
CHANGED
|
@@ -74,9 +74,13 @@ export declare function historyQuery(ctx: AdminContext, releaseId: string, sql:
|
|
|
74
74
|
* run in one transaction; the attached copy is private to the call, so
|
|
75
75
|
* nothing written into it lasts.
|
|
76
76
|
*
|
|
77
|
+
* A past database larger than 1 GB can't be attached: read it with
|
|
78
|
+
* `historyQuery` instead, and write what's needed to live with `query`.
|
|
79
|
+
*
|
|
77
80
|
* @param releaseId A release from `history()` that isn't `current`.
|
|
78
81
|
* @throws AdminApiError the same as `historyQuery`; a `sql_error` is the
|
|
79
|
-
* database refusing the statement,
|
|
82
|
+
* database refusing the statement, or a past database too large to attach,
|
|
83
|
+
* or a server with no room to copy it right now, and nothing was applied.
|
|
80
84
|
* @example
|
|
81
85
|
* await admin.db.historyAttach(releaseId,
|
|
82
86
|
* 'UPDATE orders SET note = h.note FROM history.orders h WHERE h.id = orders.id AND orders.note IS NULL');
|
package/dist/prod.js
CHANGED
|
@@ -2405,6 +2405,10 @@ Past releases:
|
|
|
2405
2405
|
statement runs as one transaction. The attached copy is private to the
|
|
2406
2406
|
call, so writing into it changes nothing anywhere.
|
|
2407
2407
|
PRAGMA history.table_info(<table>) shows a past table's columns.
|
|
2408
|
+
A past database larger than 1 GB can't be attached, and the sql_error says
|
|
2409
|
+
so: read what you need from it with 'db history query', then write that to
|
|
2410
|
+
live with 'db query'. One the server has no room to copy right now says
|
|
2411
|
+
that instead; try again shortly.
|
|
2408
2412
|
|
|
2409
2413
|
Recovering data is a merge, not a rollback. Live has moved on since the
|
|
2410
2414
|
copy was made (rows added, edits people meant to make), so decide what
|