@composable-os/cli 0.1.0-beta.11 → 0.1.0-beta.13
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/dist/{accounts-UHYLCLEY.js → accounts-GOCNY6WI.js} +17 -13
- package/dist/app-RPRZMLU5.js +43 -0
- package/dist/app-upload-YJVEKZC6.js +198 -0
- package/dist/{blocks-5IFU25J6.js → blocks-DE4RRWPJ.js} +207 -25
- package/dist/{chunk-XIDLW3EP.js → chunk-2B6YUYZV.js} +23499 -11766
- package/dist/{run-7P4RQALH.js → chunk-2CCHB37H.js} +9 -146
- package/dist/{chunk-DU6OIFOU.js → chunk-3OGDWKJ3.js} +530 -434
- package/dist/{chunk-DHS2CV2M.js → chunk-5D7BDF4Y.js} +15 -13
- package/dist/{chunk-ZAWES2UD.js → chunk-6CM3WZG5.js} +13 -2483
- package/dist/{chunk-7D4GKZOX.js → chunk-CIBJGB5H.js} +422 -75
- package/dist/chunk-EPDTPGZJ.js +330 -0
- package/dist/{chunk-LAAL4YGR.js → chunk-HAYF4G5V.js} +66 -23
- package/dist/chunk-HCG6T53D.js +61904 -0
- package/dist/{chunk-K34UKWEI.js → chunk-JX4IFWNT.js} +64 -32
- package/dist/{chunk-6XTU2MTP.js → chunk-KFHKNXGH.js} +632 -418
- package/dist/chunk-KMFMD52Z.js +13276 -0
- package/dist/{chunk-E4WCYTCT.js → chunk-LX2TTLVY.js} +174 -55
- package/dist/{chunk-GYTEW66E.js → chunk-O3R4FS2J.js} +1 -1
- package/dist/{chunk-E64SG24J.js → chunk-Q6Y45DY6.js} +25 -2
- package/dist/{chunk-MBIKVRAC.js → chunk-QJZGYJVV.js} +823 -44
- package/dist/{chunk-PDD2ETVF.js → chunk-QQ3YSL5F.js} +172 -16
- package/dist/chunk-RGKJKC5T.js +876 -0
- package/dist/{chunk-YFTLIEWU.js → chunk-RSEWEFAV.js} +12 -2
- package/dist/{chunk-2ABSVMGB.js → chunk-SMJZIK2O.js} +1 -1
- package/dist/{chunk-LO6WGU5Y.js → chunk-U72NEGCT.js} +8089 -3464
- package/dist/{chunk-P6UWZ6QQ.js → chunk-Z4IKF23A.js} +11 -7
- package/dist/{chunk-2IVEVPMY.js → chunk-Z7OVQ6BC.js} +105 -61
- package/dist/{chunk-6UWRT4VM.js → chunk-ZJSFX4RD.js} +175 -3
- package/dist/{cli-5UNY5G5L.js → cli-OKQHHSOE.js} +17 -25
- package/dist/{cli-UYZMVQMR.js → cli-VYSD2S4Z.js} +227 -81
- package/dist/cli.js +5 -5
- package/dist/{client-repo-SE4EKG6W.js → client-repo-NNUCHQ2Y.js} +7 -5
- package/dist/create.js +5 -5
- package/dist/{fields-FTWWMD7N.js → fields-GTHE6TTS.js} +27 -3
- package/dist/gateway-DPPEQZT4.js +25 -0
- package/dist/grants-6JY4XZO7.js +27 -0
- package/dist/invoke-MRONRZ5Q.js +33 -0
- package/dist/moves-UAUCMWL5.js +36 -0
- package/dist/{order-U4KZLLSJ.js → order-RKLGT74L.js} +2 -2
- package/dist/{person-UHLVBVLR.js → person-YOZTFV4Q.js} +11 -10
- package/dist/plan-on-sale-H4F26YIN.js +26 -0
- package/dist/platform/migrations/0730_practitioners.sql +79 -0
- package/dist/platform/migrations/0750_routine_mail.sql +98 -0
- package/dist/platform/migrations/0770_clear_fixed_role_grants.sql +64 -0
- package/dist/platform/migrations/0810_recurrence_exceptions.sql +66 -0
- package/dist/platform/migrations/0811_staff_time.sql +109 -0
- package/dist/platform/migrations/0812_staff_offers.sql +112 -0
- package/dist/platform/migrations/0813_pay_periods.sql +241 -0
- package/dist/platform/migrations/0814_staff_feed.sql +47 -0
- package/dist/platform/migrations/0815_checklists.sql +237 -0
- package/dist/platform/migrations/0816_checklist_schedules.sql +121 -0
- package/dist/platform/migrations/0817_checklist_day_window.sql +35 -0
- package/dist/platform/migrations/0850_agreements.sql +271 -0
- package/dist/platform/migrations/0851_agreement_acceptances.sql +387 -0
- package/dist/platform/migrations/0853_agreement_enforcement.sql +58 -0
- package/dist/platform/migrations/0854_agreement_copy.sql +149 -0
- package/dist/platform/migrations/0855_agreement_retention.sql +279 -0
- package/dist/platform/migrations/0856_subscription_cooling_off.sql +159 -0
- package/dist/platform/migrations/0857_agreement_copy_guardian.sql +337 -0
- package/dist/platform/migrations/0858_agreement_desk.sql +175 -0
- package/dist/platform/migrations/0910_routine_messages.sql +99 -0
- package/dist/platform/migrations/0911_texts.sql +60 -0
- package/dist/platform/migrations/0913_contact_consent.sql +93 -0
- package/dist/platform/migrations/0916_contact_mailbox_index.sql +29 -0
- package/dist/platform/migrations/0930_stock_movements.sql +95 -0
- package/dist/platform/migrations/0931_stock_low.sql +25 -0
- package/dist/platform/migrations/0932_order_delivery.sql +78 -0
- package/dist/platform/migrations/0950_order_adjustments.sql +111 -0
- package/dist/platform/migrations/0951_order_price_guards.sql +33 -0
- package/dist/platform/migrations/0952_order_paid_another_way.sql +194 -0
- package/dist/platform/migrations/0953_discount_uses.sql +183 -0
- package/dist/platform/migrations/0955_folded_addresses.sql +92 -0
- package/dist/platform/migrations/0970_published_text.sql +59 -0
- package/dist/platform/migrations/0971_publish_acks.sql +68 -0
- package/dist/platform/migrations/0990_customer_email_change.sql +65 -0
- package/dist/platform/migrations/1010_intake_links.sql +148 -0
- package/dist/platform/migrations/1030_invoices.sql +747 -0
- package/dist/platform/migrations/1031_invoice_orders.sql +327 -0
- package/dist/platform/migrations/1050_inbox_conversations.sql +83 -0
- package/dist/platform/migrations/1090_staff_hours.sql +43 -0
- package/dist/platform/migrations/1091_staff_time_margins.sql +12 -0
- package/dist/platform/migrations/1092_client_guard.sql +26 -0
- package/dist/platform/migrations/1095_thing_time.sql +70 -0
- package/dist/platform/migrations/1130_devices.sql +162 -0
- package/dist/platform/migrations/1135_person_codes.sql +88 -0
- package/dist/platform/migrations/1150_finance_periods.sql +316 -0
- package/dist/platform/migrations/1151_payouts.sql +202 -0
- package/dist/platform/migrations/1153_finance_money_dates.sql +18 -0
- package/dist/platform/migrations/1170_journeys.sql +318 -0
- package/dist/platform/migrations/1171_person_birthday.sql +52 -0
- package/dist/platform/migrations/1175_person_signals.sql +29 -0
- package/dist/platform/migrations/1190_restricted_values.sql +25 -0
- package/dist/platform/migrations/1230_note_levels.sql +113 -0
- package/dist/platform/migrations/1231_person_carers.sql +33 -0
- package/dist/platform/migrations/1232_note_kinds.sql +122 -0
- package/dist/platform/migrations/1270_time_entries.sql +145 -0
- package/dist/platform/migrations/1271_leave.sql +249 -0
- package/dist/platform/migrations/1273_time_entry_reopened.sql +21 -0
- package/dist/platform/migrations/1330_accounting.sql +260 -0
- package/dist/platform/migrations/1350_customer_feed.sql +24 -0
- package/dist/platform/migrations/1390_locations.sql +77 -0
- package/dist/platform/migrations/1410_outside_copy.sql +213 -0
- package/dist/platform/migrations/1430_inbox_activities.sql +231 -0
- package/dist/platform/migrations/1450_wrong_guesses.sql +23 -0
- package/dist/platform/sdk/acknowledge.ts +100 -0
- package/dist/platform/sdk/agreements.ts +185 -0
- package/dist/platform/sdk/allowance.ts +98 -8
- package/dist/platform/sdk/automation-check.ts +120 -9
- package/dist/platform/sdk/automation.ts +78 -10
- package/dist/platform/sdk/behaviour.ts +26 -6
- package/dist/platform/sdk/calendar-entry.ts +258 -0
- package/dist/platform/sdk/capacity.ts +1 -2
- package/dist/platform/sdk/checklists.ts +118 -0
- package/dist/platform/sdk/contract.ts +489 -27
- package/dist/platform/sdk/discount.ts +408 -0
- package/dist/platform/sdk/document.ts +4 -2
- package/dist/platform/sdk/field-types.ts +5 -0
- package/dist/platform/sdk/formula/compile.ts +10 -0
- package/dist/platform/sdk/index.ts +17 -0
- package/dist/platform/sdk/intake.ts +380 -0
- package/dist/platform/sdk/journey-signals.ts +215 -0
- package/dist/platform/sdk/manifest.ts +1236 -65
- package/dist/platform/sdk/mine.ts +161 -0
- package/dist/platform/sdk/occupies.ts +192 -0
- package/dist/platform/sdk/questions.ts +681 -0
- package/dist/platform/sdk/recurring.ts +90 -9
- package/dist/platform/sdk/restricted-fields.ts +129 -0
- package/dist/platform/sdk/rich-text.ts +112 -0
- package/dist/platform/sdk/routine-mail.ts +1272 -0
- package/dist/platform/sdk/runtime.ts +25 -12
- package/dist/platform/sdk/screens.ts +91 -0
- package/dist/platform/sdk/sellable.ts +344 -0
- package/dist/platform/sdk/slug.ts +7 -2
- package/dist/platform/sdk/staffed.ts +474 -0
- package/dist/platform/sdk/states.ts +68 -26
- package/dist/platform/sdk/stock.ts +332 -0
- package/dist/platform/sdk/team.ts +83 -0
- package/dist/platform/sdk/testing.ts +70 -6
- package/dist/platform/sdk/worked-on.ts +134 -0
- package/dist/{products-2H5DR232.js → products-GCQLSZ3U.js} +2 -2
- package/dist/run-7ID64RA6.js +65 -0
- package/dist/run-FH7OGGTV.js +131 -0
- package/dist/run-OYZIAP6M.js +3363 -0
- package/dist/{run-ZCGFMEZF.js → run-QOFRRSZV.js} +41 -60
- package/dist/{run-PO3W5BFA.js → run-TJAEWR5U.js} +21 -51
- package/dist/{src-I3IJ4NKC.js → src-52VERUPK.js} +306 -4
- package/dist/src-PHRELWN5.js +40 -0
- package/dist/{visibility-TVXZ67FD.js → visibility-SZCINPP4.js} +21 -4
- package/package.json +2 -2
- package/dist/chunk-2TWV3SVB.js +0 -349
- package/dist/chunk-2XC5JLBO.js +0 -1931
- package/dist/chunk-324WJXNP.js +0 -320
- package/dist/chunk-6ELZRNUU.js +0 -116
- package/dist/chunk-6WGFA2IV.js +0 -643
- package/dist/chunk-7CQGMVDO.js +0 -63
- package/dist/chunk-7OGCMQXG.js +0 -284
- package/dist/chunk-FJIZGS5Q.js +0 -698
- package/dist/chunk-UB4I2QKR.js +0 -31575
- package/dist/chunk-WHKJGF36.js +0 -2418
- package/dist/chunk-YNUZRTPH.js +0 -182
- package/dist/chunk-ZZFWMVJO.js +0 -704
- package/dist/grants-LOW6TSWD.js +0 -32
- package/dist/invoke-6KVT6WJI.js +0 -41
- package/dist/moves-E2HKYCTK.js +0 -41
- package/dist/plan-on-sale-TJPFCNL7.js +0 -26
- package/dist/src-CRO35DYY.js +0 -46
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
-- Migration 1010: personal links (stage 29 step 5, ADR 0723). A personal link lets one named Person
|
|
2
|
+
-- answer one form (optionally about one record: the class they came to) without signing in, once.
|
|
3
|
+
-- It is made by the host alone, when the routine email that carries it is sent (the form-link
|
|
4
|
+
-- slot of routine mail, `claimRoutineMail`, packages/core/src/intake/links.ts), and read only there.
|
|
5
|
+
--
|
|
6
|
+
-- A link is one row; each email that carries it has its own token (a guardian's and the member's
|
|
7
|
+
-- app item reach the same link). A token is 32 random bytes of which only the SHA-256 is kept, as
|
|
8
|
+
-- the stop links' (ADR 0675): nothing here is secret, and knowing a hash makes no link.
|
|
9
|
+
--
|
|
10
|
+
-- Used once, by the database: the answer's batch sets `used_at` by the link's id alone, and the
|
|
11
|
+
-- trigger below fails the whole batch when it is already set, or when the link has expired. Of
|
|
12
|
+
-- two answers racing for one link, exactly one commits (D1 runs one batch at a time) and the other
|
|
13
|
+
-- keeps nothing. Deleted with its Person (erase, by the cascade); a merge moves it to the survivor.
|
|
14
|
+
CREATE TABLE core_intake_link (
|
|
15
|
+
id TEXT PRIMARY KEY,
|
|
16
|
+
person_id TEXT NOT NULL REFERENCES core_person (id) ON DELETE CASCADE,
|
|
17
|
+
-- What is answered: a form object's registry name and its record; for a declared intake (no
|
|
18
|
+
-- form record, stage 54) the object alone.
|
|
19
|
+
form_object TEXT NOT NULL CHECK (length(form_object) BETWEEN 3 AND 81),
|
|
20
|
+
form_id TEXT CHECK (form_id IS NULL OR length(form_id) BETWEEN 1 AND 64),
|
|
21
|
+
-- The record it is about (a booking), whose submission is tied to it; null for none.
|
|
22
|
+
record_object TEXT CHECK (record_object IS NULL OR length(record_object) BETWEEN 3 AND 81),
|
|
23
|
+
record_id TEXT CHECK (record_id IS NULL OR length(record_id) BETWEEN 1 AND 64),
|
|
24
|
+
-- What made it: a routine email's kind and the run its chain began with, so a retried step
|
|
25
|
+
-- finds its own link and a later send about the same record makes none.
|
|
26
|
+
made_for TEXT NOT NULL CHECK (length(made_for) BETWEEN 1 AND 200),
|
|
27
|
+
-- At most one link to this form for this Person, about any record, in so many days (the
|
|
28
|
+
-- slot's `once`): kept by the insert trigger, so two sends due at the same moment make one.
|
|
29
|
+
once_days INTEGER CHECK (once_days IS NULL OR once_days BETWEEN 1 AND 365),
|
|
30
|
+
expires_at TEXT NOT NULL,
|
|
31
|
+
used_at TEXT,
|
|
32
|
+
submission_id TEXT,
|
|
33
|
+
-- Who answered it: the Person whose email's token was used, or the signed-in customer whose
|
|
34
|
+
-- link (or whose child's) it was; and which way (`email`, a token; `account`, signed in). The
|
|
35
|
+
-- receipt goes to them (ADR 0724), never to a child's own address.
|
|
36
|
+
used_by TEXT REFERENCES core_person (id) ON DELETE SET NULL,
|
|
37
|
+
used_with TEXT CHECK (used_with IS NULL OR used_with IN ('email', 'account')),
|
|
38
|
+
created_at TEXT NOT NULL,
|
|
39
|
+
CHECK ((record_object IS NULL) = (record_id IS NULL)),
|
|
40
|
+
CHECK ((used_at IS NULL) = (submission_id IS NULL)),
|
|
41
|
+
CHECK (used_at IS NOT NULL OR (used_by IS NULL AND used_with IS NULL)),
|
|
42
|
+
CHECK (expires_at > created_at)
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
-- One link per Person, form and record it is about: a class attended is asked about once.
|
|
46
|
+
CREATE UNIQUE INDEX core_intake_link_about ON core_intake_link
|
|
47
|
+
(form_object, ifnull(form_id, ''), person_id, record_object, record_id)
|
|
48
|
+
WHERE record_id IS NOT NULL;
|
|
49
|
+
-- A Person's links by when they were made: the cool-down, and "Needs your attention".
|
|
50
|
+
CREATE INDEX core_intake_link_person ON core_intake_link (person_id, created_at);
|
|
51
|
+
-- The link a submission used (its receipt).
|
|
52
|
+
CREATE INDEX core_intake_link_submission ON core_intake_link (submission_id)
|
|
53
|
+
WHERE submission_id IS NOT NULL;
|
|
54
|
+
|
|
55
|
+
CREATE TABLE core_intake_link_token (
|
|
56
|
+
token_hash TEXT PRIMARY KEY NOT NULL CHECK (length(token_hash) = 64),
|
|
57
|
+
link_id TEXT NOT NULL REFERENCES core_intake_link (id) ON DELETE CASCADE,
|
|
58
|
+
-- The Person the email carrying it went to (a guardian, or the member): who answers by it.
|
|
59
|
+
-- Gone with them (erase).
|
|
60
|
+
sent_to TEXT NOT NULL REFERENCES core_person (id) ON DELETE CASCADE,
|
|
61
|
+
created_at TEXT NOT NULL
|
|
62
|
+
);
|
|
63
|
+
CREATE INDEX core_intake_link_token_link ON core_intake_link_token (link_id);
|
|
64
|
+
CREATE INDEX core_intake_link_token_sent_to ON core_intake_link_token (sent_to);
|
|
65
|
+
|
|
66
|
+
-- A link is made unused, and never replaced. D1 runs with recursive triggers off, so an INSERT OR
|
|
67
|
+
-- REPLACE would delete the row it replaces (a used link) without firing the update trigger below:
|
|
68
|
+
-- an insert colliding on the id or on what the link is about is refused before any conflict
|
|
69
|
+
-- clause applies. The cool-down (`once_days`) is kept here too.
|
|
70
|
+
CREATE TRIGGER core_intake_link_insert
|
|
71
|
+
BEFORE INSERT ON core_intake_link
|
|
72
|
+
BEGIN
|
|
73
|
+
SELECT RAISE(ABORT, 'core_intake_link_fixed')
|
|
74
|
+
WHERE EXISTS (SELECT 1 FROM core_intake_link WHERE id = NEW.id);
|
|
75
|
+
SELECT RAISE(ABORT, 'core_intake_link_fixed')
|
|
76
|
+
WHERE NEW.used_at IS NOT NULL OR NEW.submission_id IS NOT NULL OR NEW.used_by IS NOT NULL;
|
|
77
|
+
SELECT RAISE(ABORT, 'core_intake_link_exists')
|
|
78
|
+
WHERE NEW.record_id IS NOT NULL AND EXISTS (
|
|
79
|
+
SELECT 1 FROM core_intake_link
|
|
80
|
+
WHERE form_object = NEW.form_object AND ifnull(form_id, '') = ifnull(NEW.form_id, '')
|
|
81
|
+
AND person_id = NEW.person_id AND record_object = NEW.record_object
|
|
82
|
+
AND record_id = NEW.record_id);
|
|
83
|
+
SELECT RAISE(ABORT, 'core_intake_link_once')
|
|
84
|
+
WHERE NEW.once_days IS NOT NULL AND EXISTS (
|
|
85
|
+
SELECT 1 FROM core_intake_link
|
|
86
|
+
WHERE person_id = NEW.person_id AND form_object = NEW.form_object
|
|
87
|
+
AND ifnull(form_id, '') = ifnull(NEW.form_id, '')
|
|
88
|
+
AND created_at > strftime('%Y-%m-%dT%H:%M:%fZ', NEW.created_at,
|
|
89
|
+
'-' || NEW.once_days || ' days'));
|
|
90
|
+
END;
|
|
91
|
+
|
|
92
|
+
-- Used once, before it expires; what it names never changes, but its Person may move to the one it
|
|
93
|
+
-- was merged into, and its expiry only come sooner (a link revoked is one that has expired). Who
|
|
94
|
+
-- answered it is set with the use and never changed after (only cleared, when they are erased).
|
|
95
|
+
CREATE TRIGGER core_intake_link_update
|
|
96
|
+
BEFORE UPDATE ON core_intake_link
|
|
97
|
+
BEGIN
|
|
98
|
+
SELECT CASE
|
|
99
|
+
WHEN OLD.used_at IS NOT NULL
|
|
100
|
+
AND (NEW.used_at IS NOT OLD.used_at OR NEW.submission_id IS NOT OLD.submission_id
|
|
101
|
+
OR NEW.used_with IS NOT OLD.used_with
|
|
102
|
+
OR (NEW.used_by IS NOT OLD.used_by AND NEW.used_by IS NOT NULL))
|
|
103
|
+
THEN RAISE(ABORT, 'core_intake_link_used')
|
|
104
|
+
WHEN OLD.used_at IS NULL AND NEW.used_at IS NOT NULL AND NEW.used_at >= OLD.expires_at
|
|
105
|
+
THEN RAISE(ABORT, 'core_intake_link_used')
|
|
106
|
+
WHEN NEW.id IS NOT OLD.id OR NEW.form_object IS NOT OLD.form_object
|
|
107
|
+
OR NEW.form_id IS NOT OLD.form_id OR NEW.record_object IS NOT OLD.record_object
|
|
108
|
+
OR NEW.record_id IS NOT OLD.record_id OR NEW.made_for IS NOT OLD.made_for
|
|
109
|
+
OR NEW.once_days IS NOT OLD.once_days
|
|
110
|
+
OR NEW.created_at IS NOT OLD.created_at OR NEW.expires_at > OLD.expires_at
|
|
111
|
+
THEN RAISE(ABORT, 'core_intake_link_fixed')
|
|
112
|
+
WHEN NEW.person_id IS NOT OLD.person_id AND NEW.person_id IS NOT (
|
|
113
|
+
SELECT p.merged_into_id FROM core_person p WHERE p.id = OLD.person_id)
|
|
114
|
+
THEN RAISE(ABORT, 'core_intake_link_fixed')
|
|
115
|
+
END;
|
|
116
|
+
END;
|
|
117
|
+
|
|
118
|
+
-- A used link goes only with its Person (the erase's cascade, which deletes the Person first). An
|
|
119
|
+
-- unused one may go: the host withdraws a link whose email was not sent.
|
|
120
|
+
CREATE TRIGGER core_intake_link_delete
|
|
121
|
+
BEFORE DELETE ON core_intake_link
|
|
122
|
+
WHEN OLD.used_at IS NOT NULL AND EXISTS (SELECT 1 FROM core_person p WHERE p.id = OLD.person_id)
|
|
123
|
+
BEGIN
|
|
124
|
+
SELECT RAISE(ABORT, 'core_intake_link_fixed');
|
|
125
|
+
END;
|
|
126
|
+
|
|
127
|
+
-- A token names one link and one recipient for good, and is never replaced (an INSERT OR REPLACE
|
|
128
|
+
-- on its hash would point it at another link).
|
|
129
|
+
CREATE TRIGGER core_intake_link_token_insert
|
|
130
|
+
BEFORE INSERT ON core_intake_link_token
|
|
131
|
+
BEGIN
|
|
132
|
+
SELECT RAISE(ABORT, 'core_intake_link_fixed')
|
|
133
|
+
WHERE EXISTS (SELECT 1 FROM core_intake_link_token WHERE token_hash = NEW.token_hash);
|
|
134
|
+
END;
|
|
135
|
+
|
|
136
|
+
CREATE TRIGGER core_intake_link_token_fixed
|
|
137
|
+
BEFORE UPDATE ON core_intake_link_token
|
|
138
|
+
BEGIN
|
|
139
|
+
SELECT RAISE(ABORT, 'core_intake_link_fixed');
|
|
140
|
+
END;
|
|
141
|
+
|
|
142
|
+
-- A routine email carrying a personal link (the form-link slot): what the host makes the link for
|
|
143
|
+
-- when it is sent, never the token (made at sending and never written back, ADR 0723).
|
|
144
|
+
ALTER TABLE core_routine_mail ADD COLUMN form_link TEXT;
|
|
145
|
+
|
|
146
|
+
-- Guarded: migrations land out of order (docs/parallel-work.md).
|
|
147
|
+
UPDATE core_meta SET value = '1010'
|
|
148
|
+
WHERE key = 'schema_version' AND CAST(value AS INTEGER) < 1010;
|