fix: add created_at and updated_at columns to replications table (#22293)

pull/22309/head
Daniel Moran 2021-08-24 14:56:47 -04:00 committed by GitHub
parent 641c02f9a8
commit 11c97470a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -15,9 +15,11 @@ CREATE TABLE replications
current_queue_size_bytes INTEGER NOT NULL,
latest_response_code INTEGER,
latest_error_message TEXT,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
CONSTRAINT replications_uniq_orgid_name UNIQUE (org_id, name),
FOREIGN KEY (remote_id) REFERENCES remotes(id) ON DELETE CASCADE
FOREIGN KEY (remote_id) REFERENCES remotes (id) ON DELETE CASCADE
);
-- Create indexes on lookup patterns we expect to be common