Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
d13fcb9d
Verified
Commit
d13fcb9d
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev'
parents
6b4b47fb
833d79de
No related branches found
No related tags found
1 merge request
!250
Master
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dbrepo-metadata-db/schema/migrate_1.4.0-1.4.1.sql
+38
-0
38 additions, 0 deletions
dbrepo-metadata-db/schema/migrate_1.4.0-1.4.1.sql
dbrepo-metadata-service/repositories/src/main/java/at/tuwien/mapper/QueryMapper.java
+4
-3
4 additions, 3 deletions
...ositories/src/main/java/at/tuwien/mapper/QueryMapper.java
with
42 additions
and
3 deletions
dbrepo-metadata-db/schema/migrate_1.4.0-1.4.1.sql
0 → 100644
+
38
−
0
View file @
d13fcb9d
ALTER
TABLE
mdb_databases
DROP
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_databases
ADD
COLUMN
image
longblob
;
ALTER
TABLE
mdb_databases
ADD
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_tables
DROP
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_tables
ADD
COLUMN
processed_constraints
BOOLEAN
NOT
NULL
DEFAULT
false
;
ALTER
TABLE
mdb_tables
ADD
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_columns
DROP
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_columns
DROP
COLUMN
alias
;
ALTER
TABLE
mdb_columns
ADD
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_constraints_foreign_key
DROP
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_constraints_foreign_key
ADD
COLUMN
name
VARCHAR
(
255
)
NOT
NULL
;
ALTER
TABLE
mdb_constraints_foreign_key
ADD
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_constraints_unique
DROP
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_constraints_unique
ADD
COLUMN
name
VARCHAR
(
255
)
NOT
NULL
;
ALTER
TABLE
mdb_constraints_unique
ADD
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_view_columns
DROP
SYSTEM
VERSIONING
;
ALTER
TABLE
mdb_view_columns
ADD
COLUMN
alias
VARCHAR
(
100
);
ALTER
TABLE
mdb_view_columns
CHANGE
COLUMN
position
ordinal_position
INTEGER
;
ALTER
TABLE
mdb_view_columns
ADD
SYSTEM
VERSIONING
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dbrepo-metadata-service/repositories/src/main/java/at/tuwien/mapper/QueryMapper.java
+
4
−
3
View file @
d13fcb9d
...
...
@@ -84,6 +84,7 @@ public interface QueryMapper {
return
slug
.
toLowerCase
(
Locale
.
ENGLISH
);
}
@Transactional
(
readOnly
=
true
)
default
QueryResultDto
resultListToQueryResultDto
(
List
<
TableColumn
>
columns
,
ResultSet
result
)
throws
SQLException
{
log
.
trace
(
"mapping result list to query result, columns={}, result={}"
,
columns
,
result
);
final
List
<
Map
<
String
,
Object
>>
resultList
=
new
LinkedList
<>();
...
...
@@ -922,9 +923,9 @@ public interface QueryMapper {
return
String
.
valueOf
(
data
);
}
case
YEAR
->
{
final
String
tmp
=
String
.
valueOf
(
data
);
log
.
trace
(
"mapping {} -> year"
,
tmp
);
return
tmp
.
substring
(
0
,
tmp
.
indexOf
(
'-'
));
final
String
date
=
String
.
valueOf
(
data
);
log
.
trace
(
"mapping {} -> year"
,
date
);
return
Short
.
valueOf
(
date
.
substring
(
0
,
date
.
indexOf
(
'-'
))
)
;
}
}
log
.
warn
(
"column type {} is not known"
,
column
.
getColumnType
());
...
...
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