aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorJulien Le Bras <julien.lb.pro@gmail.com>2018-03-28 23:38:52 +0200
committerChocobozzz <me@florianbigard.com>2018-03-30 08:52:58 +0200
commit2922e048de95738b3319054ce0778f873a34a0ee (patch)
treeee35b2e8bf9e1967b7d08974d6680697b2965472 /server/initializers/constants.ts
parent2920281946cffd62ce5046b661d63f9867ab0654 (diff)
downloadPeerTube-2922e048de95738b3319054ce0778f873a34a0ee.tar.gz
PeerTube-2922e048de95738b3319054ce0778f873a34a0ee.tar.zst
PeerTube-2922e048de95738b3319054ce0778f873a34a0ee.zip
Add publishedAt field for video model.
* New field added in the `video` table + migration script * `publishedAt` updated to NOW when privacy changes from private to public/unlisted (default = NOW) * Models updated to handle the new attribute * Client interface updated to use `publishedAt` instead of `createdAt` except in My Account > My Videos view
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 5152095b3..2622b2c71 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -12,7 +12,7 @@ let config: IConfig = require('config')
12 12
13// --------------------------------------------------------------------------- 13// ---------------------------------------------------------------------------
14 14
15const LAST_MIGRATION_VERSION = 195 15const LAST_MIGRATION_VERSION = 200
16 16
17// --------------------------------------------------------------------------- 17// ---------------------------------------------------------------------------
18 18