fix(database): add a migration to generate an empty PostComments table

This commit is contained in:
Harsh Shandilya 2023-01-12 00:58:07 +05:30
parent 918f28feab
commit 579a2ffe2e
No known key found for this signature in database

View file

@ -0,0 +1,7 @@
import kotlin.String;
import kotlin.collections.List;
CREATE TABLE IF NOT EXISTS PostComments(
postId TEXT NOT NULL PRIMARY KEY,
commentIds TEXT AS List<String> NOT NULL
);