Major improvement, security handling, file handling +fixes
This commit is contained in:
1
migrations/005_show_author.sql
Normal file
1
migrations/005_show_author.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE contents ADD COLUMN show_author INTEGER NOT NULL DEFAULT 1;
|
||||
3
migrations/006_dedup.sql
Normal file
3
migrations/006_dedup.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE content_files ADD COLUMN plaintext_hash BLOB;
|
||||
ALTER TABLE content_files ADD COLUMN ref_count INTEGER NOT NULL DEFAULT 1;
|
||||
CREATE INDEX idx_content_files_plaintext_hash ON content_files(plaintext_hash);
|
||||
5
migrations/007_hash_blacklist.sql
Normal file
5
migrations/007_hash_blacklist.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
CREATE TABLE hash_blacklist (
|
||||
hash BLOB PRIMARY KEY,
|
||||
created_at DATETIME NOT NULL DEFAULT (datetime('now')),
|
||||
reason TEXT
|
||||
);
|
||||
Reference in New Issue
Block a user