-
Notifications
You must be signed in to change notification settings - Fork 46
/
20_actor_mappings.go
30 lines (26 loc) · 1.21 KB
/
20_actor_mappings.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package v1
func init() {
patches.Register(
20,
`
CREATE TABLE IF NOT EXISTS {{ .SchemaName | default "public"}}.actor_codes (
cid text NOT NULL,
code text NOT NULL,
PRIMARY KEY (cid, code)
);
COMMENT ON TABLE {{ .SchemaName | default "public"}}.actor_codes IS 'A mapping of a builtin actors CID to a human friendly name.';
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.actor_codes.cid IS 'CID of the actor from builtin actors.';
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.actor_codes.code IS 'Human-readable identifier for the actor.';
CREATE TABLE IF NOT EXISTS {{ .SchemaName | default "public"}}.actor_methods (
family text NOT NULL,
method_name text NOT NULL,
method bigint NOT NULL,
PRIMARY KEY (family, method)
);
COMMENT ON TABLE {{ .SchemaName | default "public"}}.actor_methods IS 'A mapping of a builtin actors CID to a human friendly name.';
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.actor_methods.family IS 'The actor family.';
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.actor_methods.method_name IS 'Human-readable identifier for the actor method.';
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.actor_methods.method IS 'Method as bigint.';
`,
)
}