no message
This commit is contained in:
parent
1deee019b2
commit
2b1b5f2566
2 changed files with 24 additions and 6 deletions
|
|
@ -307,11 +307,10 @@ export class Development extends EntityBase {
|
|||
isReasonPlanned20: boolean;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "รายละเอียดอื่นๆ 10 แผน",
|
||||
default: null,
|
||||
default: false,
|
||||
})
|
||||
isReasonPlanned10: string;
|
||||
isReasonPlanned10: boolean;
|
||||
|
||||
@OneToMany(
|
||||
() => DevelopmentProjectTechniquePlanned,
|
||||
|
|
@ -354,11 +353,10 @@ export class Development extends EntityBase {
|
|||
isReasonActual20: boolean;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "รายละเอียดอื่นๆ 10 จริง",
|
||||
default: null,
|
||||
default: false,
|
||||
})
|
||||
isReasonActual10: string;
|
||||
isReasonActual10: boolean;
|
||||
|
||||
@OneToMany(
|
||||
() => DevelopmentProjectTechniqueActual,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateDevelopmentAddIsReasonActual101727755044851 implements MigrationInterface {
|
||||
name = 'UpdateDevelopmentAddIsReasonActual101727755044851'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`development\` DROP COLUMN \`isReasonPlanned10\``);
|
||||
await queryRunner.query(`ALTER TABLE \`development\` ADD \`isReasonPlanned10\` tinyint NOT NULL COMMENT 'รายละเอียดอื่นๆ 10 แผน' DEFAULT 0`);
|
||||
await queryRunner.query(`ALTER TABLE \`development\` DROP COLUMN \`isReasonActual10\``);
|
||||
await queryRunner.query(`ALTER TABLE \`development\` ADD \`isReasonActual10\` tinyint NOT NULL COMMENT 'รายละเอียดอื่นๆ 10 จริง' DEFAULT 0`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`development\` DROP COLUMN \`isReasonActual10\``);
|
||||
await queryRunner.query(`ALTER TABLE \`development\` ADD \`isReasonActual10\` varchar(255) NULL COMMENT 'รายละเอียดอื่นๆ 10 จริง'`);
|
||||
await queryRunner.query(`ALTER TABLE \`development\` DROP COLUMN \`isReasonPlanned10\``);
|
||||
await queryRunner.query(`ALTER TABLE \`development\` ADD \`isReasonPlanned10\` varchar(255) NULL COMMENT 'รายละเอียดอื่นๆ 10 แผน'`);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue