mirror of
https://github.com/solero/houdini.git
synced 2024-11-08 20:28:20 +00:00
Remove unnecessary columns in warning table SQL
This commit is contained in:
parent
ca6671aa25
commit
889ce89620
@ -709,8 +709,9 @@ COMMENT ON COLUMN ban.comment IS 'Ban comment';
|
||||
DROP TABLE IF EXISTS warning;
|
||||
CREATE TABLE warning (
|
||||
penguin_id INT NOT NULL,
|
||||
issued TIMESTAMP NOT NULL,
|
||||
expires TIMESTAMP NOT NULL,
|
||||
PRIMARY KEY (penguin_id, expires),
|
||||
PRIMARY KEY (penguin_id, issued, expires),
|
||||
CONSTRAINT warning_ibfk_1 FOREIGN KEY (penguin_id) REFERENCES penguin (id) ON DELETE RESTRICT ON UPDATE CASCADE
|
||||
);
|
||||
|
||||
@ -719,8 +720,6 @@ COMMENT ON TABLE warning IS 'Penguin moderator warnings';
|
||||
COMMENT ON COLUMN warning.penguin_id IS 'Warning penguin ID';
|
||||
COMMENT ON COLUMN warning.issued IS 'Warning issue date';
|
||||
COMMENT ON COLUMN warning.expires IS 'Warning expiry date';
|
||||
COMMENT ON COLUMN warning.type IS 'Type of warning';
|
||||
COMMENT ON COLUMN warning.comment IS 'Warning moderator comment';
|
||||
|
||||
DROP TABLE IF EXISTS buddy_list;
|
||||
CREATE TABLE buddy_list (
|
||||
|
Loading…
Reference in New Issue
Block a user