Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
GitLab is undergoing maintenance
You are on a read-only GitLab instance.
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
d1fd0a9c
Commit
d1fd0a9c
authored
10 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-1333: change the cast to big integer (int8) in the 2 notifications views for portfolio
parent
593dfd0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/resources/database/postgresql/alter_8_0_x_to_8_1_0.sql
+2
-2
2 additions, 2 deletions
...in/resources/database/postgresql/alter_8_0_x_to_8_1_0.sql
src/main/resources/database/postgresql/setupDatabase.sql
+2
-2
2 additions, 2 deletions
src/main/resources/database/postgresql/setupDatabase.sql
with
4 additions
and
4 deletions
src/main/resources/database/postgresql/alter_8_0_x_to_8_1_0.sql
+
2
−
2
View file @
d1fd0a9c
...
@@ -126,7 +126,7 @@ create or replace view o_ep_notifications_rating_v as (
...
@@ -126,7 +126,7 @@ create or replace view o_ep_notifications_rating_v as (
from
o_userrating
as
urating
from
o_userrating
as
urating
inner
join
o_olatresource
as
rating_resource
on
(
rating_resource
.
resid
=
urating
.
resid
and
rating_resource
.
resname
=
urating
.
resname
)
inner
join
o_olatresource
as
rating_resource
on
(
rating_resource
.
resid
=
urating
.
resid
and
rating_resource
.
resname
=
urating
.
resname
)
inner
join
o_ep_struct_el
as
map
on
(
map
.
fk_olatresource
=
rating_resource
.
resource_id
)
inner
join
o_ep_struct_el
as
map
on
(
map
.
fk_olatresource
=
rating_resource
.
resource_id
)
left
join
o_ep_struct_el
as
page
on
(
page
.
fk_struct_root_map_id
=
map
.
structure_id
and
page
.
structure_id
=
cast
(
urating
.
ressubpath
as
int
eger
))
left
join
o_ep_struct_el
as
page
on
(
page
.
fk_struct_root_map_id
=
map
.
structure_id
and
page
.
structure_id
=
cast
(
urating
.
ressubpath
as
int
8
))
);
);
create
or
replace
view
o_ep_notifications_comment_v
as
(
create
or
replace
view
o_ep_notifications_comment_v
as
(
...
@@ -141,6 +141,6 @@ create or replace view o_ep_notifications_comment_v as (
...
@@ -141,6 +141,6 @@ create or replace view o_ep_notifications_comment_v as (
from
o_usercomment
as
ucomment
from
o_usercomment
as
ucomment
inner
join
o_olatresource
as
comment_resource
on
(
comment_resource
.
resid
=
ucomment
.
resid
and
comment_resource
.
resname
=
ucomment
.
resname
)
inner
join
o_olatresource
as
comment_resource
on
(
comment_resource
.
resid
=
ucomment
.
resid
and
comment_resource
.
resname
=
ucomment
.
resname
)
inner
join
o_ep_struct_el
as
map
on
(
map
.
fk_olatresource
=
comment_resource
.
resource_id
)
inner
join
o_ep_struct_el
as
map
on
(
map
.
fk_olatresource
=
comment_resource
.
resource_id
)
left
join
o_ep_struct_el
as
page
on
(
page
.
fk_struct_root_map_id
=
map
.
structure_id
and
page
.
structure_id
=
cast
(
ucomment
.
ressubpath
as
int
eger
))
left
join
o_ep_struct_el
as
page
on
(
page
.
fk_struct_root_map_id
=
map
.
structure_id
and
page
.
structure_id
=
cast
(
ucomment
.
ressubpath
as
int
8
))
);
);
This diff is collapsed.
Click to expand it.
src/main/resources/database/postgresql/setupDatabase.sql
+
2
−
2
View file @
d1fd0a9c
...
@@ -1374,7 +1374,7 @@ create or replace view o_ep_notifications_rating_v as (
...
@@ -1374,7 +1374,7 @@ create or replace view o_ep_notifications_rating_v as (
from
o_userrating
as
urating
from
o_userrating
as
urating
inner
join
o_olatresource
as
rating_resource
on
(
rating_resource
.
resid
=
urating
.
resid
and
rating_resource
.
resname
=
urating
.
resname
)
inner
join
o_olatresource
as
rating_resource
on
(
rating_resource
.
resid
=
urating
.
resid
and
rating_resource
.
resname
=
urating
.
resname
)
inner
join
o_ep_struct_el
as
map
on
(
map
.
fk_olatresource
=
rating_resource
.
resource_id
)
inner
join
o_ep_struct_el
as
map
on
(
map
.
fk_olatresource
=
rating_resource
.
resource_id
)
left
join
o_ep_struct_el
as
page
on
(
page
.
fk_struct_root_map_id
=
map
.
structure_id
and
page
.
structure_id
=
cast
(
urating
.
ressubpath
as
int
eger
))
left
join
o_ep_struct_el
as
page
on
(
page
.
fk_struct_root_map_id
=
map
.
structure_id
and
page
.
structure_id
=
cast
(
urating
.
ressubpath
as
int
8
))
);
);
create
or
replace
view
o_ep_notifications_comment_v
as
(
create
or
replace
view
o_ep_notifications_comment_v
as
(
...
@@ -1389,7 +1389,7 @@ create or replace view o_ep_notifications_comment_v as (
...
@@ -1389,7 +1389,7 @@ create or replace view o_ep_notifications_comment_v as (
from
o_usercomment
as
ucomment
from
o_usercomment
as
ucomment
inner
join
o_olatresource
as
comment_resource
on
(
comment_resource
.
resid
=
ucomment
.
resid
and
comment_resource
.
resname
=
ucomment
.
resname
)
inner
join
o_olatresource
as
comment_resource
on
(
comment_resource
.
resid
=
ucomment
.
resid
and
comment_resource
.
resname
=
ucomment
.
resname
)
inner
join
o_ep_struct_el
as
map
on
(
map
.
fk_olatresource
=
comment_resource
.
resource_id
)
inner
join
o_ep_struct_el
as
map
on
(
map
.
fk_olatresource
=
comment_resource
.
resource_id
)
left
join
o_ep_struct_el
as
page
on
(
page
.
fk_struct_root_map_id
=
map
.
structure_id
and
page
.
structure_id
=
cast
(
ucomment
.
ressubpath
as
int
eger
))
left
join
o_ep_struct_el
as
page
on
(
page
.
fk_struct_root_map_id
=
map
.
structure_id
and
page
.
structure_id
=
cast
(
ucomment
.
ressubpath
as
int
8
))
);
);
create
or
replace
view
o_gp_business_to_repository_v
as
(
create
or
replace
view
o_gp_business_to_repository_v
as
(
...
...
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