Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit c926b60

Browse files
committed
fix(api): Policy isDraft field
1 parent 24bf632 commit c926b60

File tree

6 files changed

+159
-150
lines changed

6 files changed

+159
-150
lines changed

api/dbschema/bootstrap.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ configure instance set query_work_mem := <cfg::memory>"8MiB";
1212
configure instance set shared_buffers := <cfg::memory>"2GiB";
1313

1414
# Total memory available to the database for caching - 75%
15-
configure instance set effective_cache_size := <cfg::memory>"3GiB";
15+
configure instance set effective_cache_size := <cfg::memory>"6GiB";

api/dbschema/edgeql-js/__spec__.ts

+70-70
Large diffs are not rendered by default.

api/dbschema/edgeql-js/modules/default.ts

+76-76
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CREATE MIGRATION m1ob6arfwyamzcpgk2hgzhby3iwv3moewthqacorsw2mtyjkopdoaq
2+
ONTO m13qxppnkqofigih7dxkipm2lh6k3ahrqerachqhdzihw76nb6i3aa
3+
{
4+
ALTER TYPE default::PolicyState {
5+
ALTER PROPERTY isDraft {
6+
USING ((__source__ ?= .draft));
7+
};
8+
};
9+
};

api/dbschema/policy.esdl

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module default {
1919
required initState := .activationBlock ?= 0;
2020
required hasBeenActive := exists .activationBlock;
2121
required isActive := .isLatest and .hasBeenActive;
22-
required isDraft := exists .draft;
22+
required isDraft := (__source__ ?= .draft);
2323
latest := (__source__ if .isLatest else latestPolicy(.account, .key));
2424
draft := assert_single((
2525
with account := __source__.account, key := __source__.key
@@ -94,9 +94,9 @@ module default {
9494
}
9595

9696
type TransfersConfig {
97-
multi limits: TransferLimit { constraint exclusive; }
9897
required defaultAllow: bool { default := true; };
9998
required budget: uint32;
99+
multi limits: TransferLimit { constraint exclusive; }
100100
}
101101

102102
type TransferLimit {

api/edgedb.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[edgedb]
2-
server-version = "5.4"
2+
server-version = "5.6"

0 commit comments

Comments
 (0)