Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-core
Commits
05c01d10
Commit
05c01d10
authored
Jul 16, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Now dropping and recreating view that depends on project fields
parent
dcfb2fed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
upgrade-5.0.3.0.3-5.0.3.0.4.sql
sql/postgresql/upgrade/upgrade-5.0.3.0.3-5.0.3.0.4.sql
+24
-0
No files found.
sql/postgresql/upgrade/upgrade-5.0.3.0.3-5.0.3.0.4.sql
View file @
05c01d10
-- 5.0.3.0.3-5.0.3.0.4.sql
SELECT
acs_log__debug
(
'/packages/intranet-core/sql/postgresql/upgrade/upgrade-5.0.3.0.3-5.0.3.0.4.sql'
,
''
);
-- drop view before changing the size of the im_projects fields
drop
view
if
exists
im_timesheet_tasks_view
;
alter
table
im_projects
alter
column
project_name
type
text
;
alter
table
im_projects
alter
column
project_nr
type
text
;
...
...
@@ -10,3 +13,24 @@ alter table im_projects alter column project_risk type text;
alter
table
im_projects
alter
column
description
type
text
;
alter
table
im_projects
alter
column
note
type
text
;
-- re-create the view
create
or
replace
view
im_timesheet_tasks_view
as
select
t
.
*
,
p
.
parent_id
as
project_id
,
p
.
project_name
as
task_name
,
p
.
project_nr
as
task_nr
,
p
.
percent_completed
,
p
.
project_type_id
as
task_type_id
,
p
.
project_status_id
as
task_status_id
,
p
.
start_date
,
p
.
end_date
,
p
.
reported_hours_cache
,
p
.
reported_days_cache
,
p
.
reported_hours_cache
as
reported_units_cache
from
im_projects
p
,
im_timesheet_tasks
t
where
t
.
task_id
=
p
.
project_id
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment