Commit 8075cf42 authored by ncastejon's avatar ncastejon
Browse files

Change property name: elasticSearchMd5 -> elasticSearchName

parent 65fee32e
Pipeline #2405 passed with stages
in 1 minute and 15 seconds
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"`);
}
}
......@@ -16,7 +16,7 @@ export class OrganizationDTO {
@ApiModelPropertyOptional()
@IsString()
elasticSearchMd5?: string;
elasticSearchName?: string;
@ApiModelPropertyOptional()
@IsOptional()
......
......@@ -11,7 +11,7 @@ export class Organization {
name: string;
@Column({ length: 100, nullable: true })
elasticSearchMd5: string;
elasticSearchName: string;
@Column('text')
description: string;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment