edit_* table update for serial to identity columns

This commit is contained in:
Clemens Schwaighofer
2024-11-22 17:24:34 +09:00
parent 3c4c5d3106
commit 87f35f23c3
15 changed files with 15 additions and 15 deletions

View File

@@ -7,7 +7,7 @@
-- DROP TABLE edit_log;
CREATE TABLE edit_log (
edit_log_id SERIAL PRIMARY KEY,
edit_log_id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
euid INT, -- this is a foreign key, but I don't nedd to reference to it
FOREIGN KEY (euid) REFERENCES edit_user (edit_user_id) MATCH FULL ON UPDATE CASCADE ON DELETE SET NULL,
username VARCHAR,