Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
31b9720a
Commit
31b9720a
authored
4 years ago
by
Marcin
Browse files
Options
Downloads
Patches
Plain Diff
comment last update time initialized
parent
beffcb4a
No related branches found
No related tags found
4 merge requests
!456
Release candidate v1 24
,
!230
Setup monitoring with pghero
,
!135
Enable postgres monitoring on CI server
,
!43
comment last update time initialized
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/db/schema.py
+6
-4
6 additions, 4 deletions
hive/db/schema.py
with
6 additions
and
4 deletions
hive/db/schema.py
+
6
−
4
View file @
31b9720a
...
@@ -447,7 +447,7 @@ def setup(db):
...
@@ -447,7 +447,7 @@ def setup(db):
category_id,
category_id,
root_author_id, root_permlink_id,
root_author_id, root_permlink_id,
is_muted, is_valid,
is_muted, is_valid,
author_id, permlink_id, created_at)
author_id, permlink_id, created_at
, updated_at
)
SELECT php.id AS parent_id, php.author_id as parent_author_id,
SELECT php.id AS parent_id, php.author_id as parent_author_id,
php.permlink_id as parent_permlink_id, php.depth + 1 as depth,
php.permlink_id as parent_permlink_id, php.depth + 1 as depth,
(CASE
(CASE
...
@@ -459,7 +459,8 @@ def setup(db):
...
@@ -459,7 +459,8 @@ def setup(db):
php.root_author_id as root_author_id,
php.root_author_id as root_author_id,
php.root_permlink_id as root_permlink_id,
php.root_permlink_id as root_permlink_id,
php.is_muted as is_muted, php.is_valid as is_valid,
php.is_muted as is_muted, php.is_valid as is_valid,
ha.id as author_id, hpd.id as permlink_id, _date as created_at
ha.id as author_id, hpd.id as permlink_id, _date as created_at,
_date as updated_at
FROM hive_accounts ha,
FROM hive_accounts ha,
hive_permlink_data hpd,
hive_permlink_data hpd,
hive_posts php
hive_posts php
...
@@ -500,7 +501,7 @@ def setup(db):
...
@@ -500,7 +501,7 @@ def setup(db):
category_id,
category_id,
root_author_id, root_permlink_id,
root_author_id, root_permlink_id,
is_muted, is_valid,
is_muted, is_valid,
author_id, permlink_id, created_at)
author_id, permlink_id, created_at
, updated_at
)
SELECT 0 AS parent_id, 0 as parent_author_id, 0 as parent_permlink_id, 0 as depth,
SELECT 0 AS parent_id, 0 as parent_author_id, 0 as parent_permlink_id, 0 as depth,
(CASE
(CASE
WHEN _date > _community_support_start_date THEN
WHEN _date > _community_support_start_date THEN
...
@@ -511,7 +512,8 @@ def setup(db):
...
@@ -511,7 +512,8 @@ def setup(db):
ha.id as root_author_id, -- use author_id as root one if no parent
ha.id as root_author_id, -- use author_id as root one if no parent
hpd.id as root_permlink_id, -- use perlink_id as root one if no parent
hpd.id as root_permlink_id, -- use perlink_id as root one if no parent
false as is_muted, true as is_valid,
false as is_muted, true as is_valid,
ha.id as author_id, hpd.id as permlink_id, _date as created_at
ha.id as author_id, hpd.id as permlink_id, _date as created_at,
_date as updated_at
FROM hive_accounts ha,
FROM hive_accounts ha,
hive_permlink_data hpd
hive_permlink_data hpd
WHERE ha.name = _author and hpd.permlink = _permlink
WHERE ha.name = _author and hpd.permlink = _permlink
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment