1
0
Fork 0
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:
comraderat 2020-04-19 21:50:43 +02:00
parent a94d2129d9
commit 598d07052d
6 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 265 KiB

Before After
Before After

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,