Initial worker porting steps (#232)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-12 00:40:39 -04:00
1 parent 73a38b1433
commit 203e2b5dc2
41 files changed
+2462 -645

No files matched your search

@@ -0,0 +1,30 @@
begin;
-- For now at least the IDs will be the same as the name, because this allows us
-- to not have to persist some generated ID to worker and controller nodes.
-- Eventually we may want them to diverge, so we have both here for now.
create table servers (
private_id text,
type text,
name text not null unique,
description text,
address text,
create_time wt_timestamp,
update_time wt_timestamp,
primary key (private_id, type)
);
create trigger
immutable_columns
before
update on servers
for each row execute procedure immutable_columns('create_time');
create trigger
default_create_time_column
before
insert on servers
for each row execute procedure default_create_time();
commit;