|
|
@@ -73,6 +73,7 @@ author_id INTEGER NOT NULL,
|
|
|
published BOOLEAN DEFAULT false,
|
|
|
views SMALLINT DEFAULT 0,
|
|
|
readingtime TIME,
|
|
|
+data JSON,
|
|
|
created TIMESTAMP,
|
|
|
CONSTRAINT "content_idx" UNIQUE ("title", "body"),
|
|
|
CONSTRAINT "author_idx" FOREIGN KEY ("author_id") REFERENCES "schema_authors" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
|
@@ -347,6 +348,14 @@ SQL;
|
|
|
'precision' => null,
|
|
|
'comment' => null,
|
|
|
],
|
|
|
+ 'data' => [
|
|
|
+ 'type' => 'json',
|
|
|
+ 'null' => true,
|
|
|
+ 'default' => null,
|
|
|
+ 'length' => null,
|
|
|
+ 'precision' => null,
|
|
|
+ 'comment' => null,
|
|
|
+ ],
|
|
|
'created' => [
|
|
|
'type' => 'timestamp',
|
|
|
'null' => true,
|