Fix column name

This commit is contained in:
Ben 2019-08-06 22:53:30 +01:00
parent 093766abef
commit 5d5fe7d2a9

View File

@ -1017,7 +1017,7 @@ CREATE TABLE login (
id SERIAL, id SERIAL,
penguin_id INT NOT NULL, penguin_id INT NOT NULL,
date TIMESTAMP NOT NULL, date TIMESTAMP NOT NULL,
i_p_address CHAR(255) NOT NULL, ip_address CHAR(255) NOT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
CONSTRAINT login_ibfk_1 FOREIGN KEY (penguin_id) REFERENCES penguin (id) ON DELETE CASCADE ON UPDATE CASCADE CONSTRAINT login_ibfk_1 FOREIGN KEY (penguin_id) REFERENCES penguin (id) ON DELETE CASCADE ON UPDATE CASCADE
); );
@ -1029,7 +1029,7 @@ COMMENT ON TABLE login IS 'Penguin login records';
COMMENT ON COLUMN login.id IS 'Unique login ID'; COMMENT ON COLUMN login.id IS 'Unique login ID';
COMMENT ON COLUMN login.penguin_id IS 'Login penguin ID'; COMMENT ON COLUMN login.penguin_id IS 'Login penguin ID';
COMMENT ON COLUMN login.date IS 'Login date'; COMMENT ON COLUMN login.date IS 'Login date';
COMMENT ON COLUMN login.i_p_address IS 'Connection IP address'; COMMENT ON COLUMN login.ip_address IS 'Connection IP address';
DROP TABLE IF EXISTS penguin_postcard; DROP TABLE IF EXISTS penguin_postcard;
CREATE TABLE penguin_postcard ( CREATE TABLE penguin_postcard (