Rename HostResource table to Host (#804)

* Rename HostResource table to Host

* Convert drop/creates to renames
This commit is contained in:
Michael Muller 2020-09-21 11:43:25 -04:00 committed by GitHub
parent 8bd5df98ff
commit f905e67494
4 changed files with 72 additions and 51 deletions

View file

@ -381,6 +381,24 @@ create sequence temp_history_id_sequence start 1 increment 50;
primary key (id)
);
create table "Host" (
repo_id text not null,
update_timestamp timestamptz,
creation_registrar_id text not null,
creation_time timestamptz not null,
current_sponsor_registrar_id text not null,
deletion_time timestamptz,
last_epp_update_registrar_id text,
last_epp_update_time timestamptz,
statuses text[],
host_name text,
inet_addresses text[],
last_superordinate_change timestamptz,
last_transfer_time timestamptz,
superordinate_domain text,
primary key (repo_id)
);
create table "HostHistory" (
history_revision_id int8 not null,
history_by_superuser boolean not null,
@ -409,24 +427,6 @@ create sequence temp_history_id_sequence start 1 increment 50;
primary key (history_revision_id)
);
create table "HostResource" (
repo_id text not null,
update_timestamp timestamptz,
creation_registrar_id text not null,
creation_time timestamptz not null,
current_sponsor_registrar_id text not null,
deletion_time timestamptz,
last_epp_update_registrar_id text,
last_epp_update_time timestamptz,
statuses text[],
host_name text,
inet_addresses text[],
last_superordinate_change timestamptz,
last_transfer_time timestamptz,
superordinate_domain text,
primary key (repo_id)
);
create table "Lock" (
resource_name text not null,
tld text not null,