Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
grifart libs
tables
Commits
62e30986
Verified
Commit
62e30986
authored
2 years ago
by
Daniel Kurowski
Committed by
Jiří Pudil
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
rename version type to packageVersion
parent
5c2df26f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!40
CompositeType: add explicit type cast to support composite values in WHERE clause
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/Fixtures/PackagesTable.php
+1
-1
1 addition, 1 deletion
tests/Fixtures/PackagesTable.php
tests/Fixtures/VersionType.php
+1
-1
1 addition, 1 deletion
tests/Fixtures/VersionType.php
tests/initializeDatabase.php
+2
-2
2 additions, 2 deletions
tests/initializeDatabase.php
with
4 additions
and
4 deletions
tests/Fixtures/PackagesTable.php
+
1
−
1
View file @
62e30986
...
...
@@ -68,7 +68,7 @@ final class PackagesTable implements Table
{
return
[
'name'
=>
new
ColumnMetadata
(
'name'
,
'text'
,
false
,
false
),
'version'
=>
new
ColumnMetadata
(
'version'
,
'
v
ersion'
,
false
,
false
)
'version'
=>
new
ColumnMetadata
(
'version'
,
'
"packageV
ersion
"
'
,
false
,
false
)
];
}
...
...
This diff is collapsed.
Click to expand it.
tests/Fixtures/VersionType.php
+
1
−
1
View file @
62e30986
...
...
@@ -18,7 +18,7 @@ final class VersionType extends CompositeType
public
function
__construct
()
{
parent
::
__construct
(
new
NamedIdentifier
(
'
v
ersion'
),
new
NamedIdentifier
(
'
public'
,
'packageV
ersion'
),
new
IntType
(),
new
IntType
(),
new
IntType
(),
...
...
This diff is collapsed.
Click to expand it.
tests/initializeDatabase.php
+
2
−
2
View file @
62e30986
...
...
@@ -20,9 +20,9 @@ CREATE TABLE IF NOT EXISTS public.test (
SQL
);
$connection
->
nativeQuery
(
<<<SQL
CREATE TYPE public.
v
ersion AS (major int, minor int, patch int);
CREATE TYPE public.
"packageV
ersion
"
AS (major int, minor int, patch int);
CREATE TABLE IF NOT EXISTS public.package (
name text NOT NULL PRIMARY KEY,
version public.
v
ersion NOT NULL
version public.
"packageV
ersion
"
NOT NULL
);
SQL
);
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