edit text
This commit is contained in:
parent
e1ca35f215
commit
aa11858af8
7 changed files with 72 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ export class KpiPlan extends EntityBase {
|
||||||
meaning: string;
|
meaning: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "สูตรคำนวณ",
|
comment: "สูตรคำนวณ",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
@ -337,6 +338,7 @@ export class KpiPlan extends EntityBase {
|
||||||
kpiPeriodId: string | null;
|
kpiPeriodId: string | null;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ข้อมูลเอกสารหลักฐาน",
|
comment: "ข้อมูลเอกสารหลักฐาน",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
||||||
|
|
@ -253,6 +253,7 @@ export class KpiRole extends EntityBase {
|
||||||
meaning: string;
|
meaning: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "สูตรคำนวณ",
|
comment: "สูตรคำนวณ",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
@ -268,6 +269,7 @@ export class KpiRole extends EntityBase {
|
||||||
kpiPeriodId: string | null;
|
kpiPeriodId: string | null;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ข้อมูลเอกสารหลักฐาน",
|
comment: "ข้อมูลเอกสารหลักฐาน",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ export class KpiSpecial extends EntityBase {
|
||||||
summary: number;
|
summary: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ข้อมูลเอกสารหลักฐาน",
|
comment: "ข้อมูลเอกสารหลักฐาน",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
@ -142,6 +143,7 @@ export class KpiSpecial extends EntityBase {
|
||||||
meaning: string;
|
meaning: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "สูตรคำนวณ",
|
comment: "สูตรคำนวณ",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ export class KpiUserPlanned extends EntityBase {
|
||||||
meaning: string;
|
meaning: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "สูตรคำนวณ",
|
comment: "สูตรคำนวณ",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
@ -82,6 +83,7 @@ export class KpiUserPlanned extends EntityBase {
|
||||||
summary: number;
|
summary: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ข้อมูลเอกสารหลักฐาน",
|
comment: "ข้อมูลเอกสารหลักฐาน",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ export class KpiUserRole extends EntityBase {
|
||||||
meaning: string;
|
meaning: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "สูตรคำนวณ",
|
comment: "สูตรคำนวณ",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
@ -83,6 +84,7 @@ export class KpiUserRole extends EntityBase {
|
||||||
summary: number;
|
summary: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ข้อมูลเอกสารหลักฐาน",
|
comment: "ข้อมูลเอกสารหลักฐาน",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@ export class KpiUserSpecial extends EntityBase {
|
||||||
summary: number;
|
summary: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ข้อมูลเอกสารหลักฐาน",
|
comment: "ข้อมูลเอกสารหลักฐาน",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
@ -143,6 +144,7 @@ export class KpiUserSpecial extends EntityBase {
|
||||||
meaning: string;
|
meaning: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
type: "text",
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "สูตรคำนวณ",
|
comment: "สูตรคำนวณ",
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
||||||
60
src/migration/1743845166887-update_01042512464.ts
Normal file
60
src/migration/1743845166887-update_01042512464.ts
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class Update010425124641743845166887 implements MigrationInterface {
|
||||||
|
name = 'Update010425124641743845166887'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserPlanned\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserPlanned\` ADD \`formula\` text NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserPlanned\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserPlanned\` ADD \`documentInfoEvidence\` text NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiPlan\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiPlan\` ADD \`formula\` text NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiPlan\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiPlan\` ADD \`documentInfoEvidence\` text NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserRole\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserRole\` ADD \`formula\` text NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserRole\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserRole\` ADD \`documentInfoEvidence\` text NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiRole\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiRole\` ADD \`formula\` text NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiRole\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiRole\` ADD \`documentInfoEvidence\` text NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserSpecial\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserSpecial\` ADD \`documentInfoEvidence\` text NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserSpecial\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserSpecial\` ADD \`formula\` text NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiSpecial\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiSpecial\` ADD \`documentInfoEvidence\` text NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiSpecial\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiSpecial\` ADD \`formula\` text NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiSpecial\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiSpecial\` ADD \`formula\` varchar(255) NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiSpecial\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiSpecial\` ADD \`documentInfoEvidence\` varchar(255) NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserSpecial\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserSpecial\` ADD \`formula\` varchar(255) NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserSpecial\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserSpecial\` ADD \`documentInfoEvidence\` varchar(255) NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiRole\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiRole\` ADD \`documentInfoEvidence\` varchar(255) NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiRole\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiRole\` ADD \`formula\` varchar(255) NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserRole\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserRole\` ADD \`documentInfoEvidence\` varchar(255) NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserRole\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserRole\` ADD \`formula\` varchar(255) NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiPlan\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiPlan\` ADD \`documentInfoEvidence\` varchar(255) NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiPlan\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiPlan\` ADD \`formula\` varchar(255) NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserPlanned\` DROP COLUMN \`documentInfoEvidence\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserPlanned\` ADD \`documentInfoEvidence\` varchar(255) NULL COMMENT 'ข้อมูลเอกสารหลักฐาน'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserPlanned\` DROP COLUMN \`formula\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserPlanned\` ADD \`formula\` varchar(255) NULL COMMENT 'สูตรคำนวณ'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue