Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
services
organizations
Commits
8075cf42
Commit
8075cf42
authored
Jan 08, 2019
by
ncastejon
Browse files
Change property name: elasticSearchMd5 -> elasticSearchName
parent
65fee32e
Pipeline
#2405
passed with stages
in 1 minute and 15 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/migrations/1546940251175-changeProperyESName.ts
0 → 100644
View file @
8075cf42
import
{
MigrationInterface
,
QueryRunner
}
from
'
typeorm
'
;
export
class
ChangeProperyESName1546940251175
implements
MigrationInterface
{
public
async
up
(
queryRunner
:
QueryRunner
):
Promise
<
any
>
{
await
queryRunner
.
query
(
`ALTER TABLE "organization" RENAME COLUMN "elasticSearchMd5" TO "elasticSearchName"`
);
}
public
async
down
(
queryRunner
:
QueryRunner
):
Promise
<
any
>
{
await
queryRunner
.
query
(
`ALTER TABLE "organization" RENAME COLUMN "elasticSearchName" TO "elasticSearchMd5"`
);
}
}
src/organizations/organization.dto.ts
View file @
8075cf42
...
...
@@ -16,7 +16,7 @@ export class OrganizationDTO {
@
ApiModelPropertyOptional
()
@
IsString
()
elasticSearch
Md5
?:
string
;
elasticSearch
Name
?:
string
;
@
ApiModelPropertyOptional
()
@
IsOptional
()
...
...
src/organizations/organization.entity.ts
View file @
8075cf42
...
...
@@ -11,7 +11,7 @@ export class Organization {
name
:
string
;
@
Column
({
length
:
100
,
nullable
:
true
})
elasticSearch
Md5
:
string
;
elasticSearch
Name
:
string
;
@
Column
(
'
text
'
)
description
:
string
;
...
...
Write
Preview
Supports
Markdown
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