mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-28 08:06:24 -07:00
Make FK to post in ban nullable
This commit is contained in:
parent
a94d2129d9
commit
598d07052d
6 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
BIN
Database ERD.png
BIN
Database ERD.png
Binary file not shown.
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 265 KiB |
|
@ -143,7 +143,7 @@ CREATE TABLE DBPREFIXip_ban(
|
|||
id {serial pk},
|
||||
staff_id {fk to serial} NOT NULL,
|
||||
board_id {fk to serial} NOT NULL,
|
||||
banned_for_post_id {fk to serial} NOT NULL,
|
||||
banned_for_post_id {fk to serial},
|
||||
copy_post_text TEXT NOT NULL,
|
||||
is_thread_ban BOOL NOT NULL,
|
||||
is_active BOOL NOT NULL,
|
||||
|
|
|
@ -143,7 +143,7 @@ CREATE TABLE DBPREFIXip_ban(
|
|||
id BIGINT NOT NULL AUTO_INCREMENT UNIQUE PRIMARY KEY,
|
||||
staff_id BIGINT NOT NULL,
|
||||
board_id BIGINT NOT NULL,
|
||||
banned_for_post_id BIGINT NOT NULL,
|
||||
banned_for_post_id BIGINT,
|
||||
copy_post_text TEXT NOT NULL,
|
||||
is_thread_ban BOOL NOT NULL,
|
||||
is_active BOOL NOT NULL,
|
||||
|
|
|
@ -143,7 +143,7 @@ CREATE TABLE DBPREFIXip_ban(
|
|||
id BIGSERIAL PRIMARY KEY,
|
||||
staff_id BIGINT NOT NULL,
|
||||
board_id BIGINT NOT NULL,
|
||||
banned_for_post_id BIGINT NOT NULL,
|
||||
banned_for_post_id BIGINT,
|
||||
copy_post_text TEXT NOT NULL,
|
||||
is_thread_ban BOOL NOT NULL,
|
||||
is_active BOOL NOT NULL,
|
||||
|
|
|
@ -143,7 +143,7 @@ CREATE TABLE DBPREFIXip_ban(
|
|||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
staff_id INTEGER NOT NULL,
|
||||
board_id INTEGER NOT NULL,
|
||||
banned_for_post_id INTEGER NOT NULL,
|
||||
banned_for_post_id INTEGER,
|
||||
copy_post_text TEXT NOT NULL,
|
||||
is_thread_ban BOOL NOT NULL,
|
||||
is_active BOOL NOT NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue