edit text

This commit is contained in:
moss 2025-04-05 18:11:43 +07:00
parent e1ca35f215
commit aa11858af8
7 changed files with 72 additions and 0 deletions

View file

@ -100,6 +100,7 @@ export class KpiPlan extends EntityBase {
meaning: string;
@Column({
type: "text",
nullable: true,
comment: "สูตรคำนวณ",
default: null,
@ -337,6 +338,7 @@ export class KpiPlan extends EntityBase {
kpiPeriodId: string | null;
@Column({
type: "text",
nullable: true,
comment: "ข้อมูลเอกสารหลักฐาน",
default: null,

View file

@ -253,6 +253,7 @@ export class KpiRole extends EntityBase {
meaning: string;
@Column({
type: "text",
nullable: true,
comment: "สูตรคำนวณ",
default: null,
@ -268,6 +269,7 @@ export class KpiRole extends EntityBase {
kpiPeriodId: string | null;
@Column({
type: "text",
nullable: true,
comment: "ข้อมูลเอกสารหลักฐาน",
default: null,

View file

@ -76,6 +76,7 @@ export class KpiSpecial extends EntityBase {
summary: number;
@Column({
type: "text",
nullable: true,
comment: "ข้อมูลเอกสารหลักฐาน",
default: null,
@ -142,6 +143,7 @@ export class KpiSpecial extends EntityBase {
meaning: string;
@Column({
type: "text",
nullable: true,
comment: "สูตรคำนวณ",
default: null,

View file

@ -36,6 +36,7 @@ export class KpiUserPlanned extends EntityBase {
meaning: string;
@Column({
type: "text",
nullable: true,
comment: "สูตรคำนวณ",
default: null,
@ -82,6 +83,7 @@ export class KpiUserPlanned extends EntityBase {
summary: number;
@Column({
type: "text",
nullable: true,
comment: "ข้อมูลเอกสารหลักฐาน",
default: null,

View file

@ -37,6 +37,7 @@ export class KpiUserRole extends EntityBase {
meaning: string;
@Column({
type: "text",
nullable: true,
comment: "สูตรคำนวณ",
default: null,
@ -83,6 +84,7 @@ export class KpiUserRole extends EntityBase {
summary: number;
@Column({
type: "text",
nullable: true,
comment: "ข้อมูลเอกสารหลักฐาน",
default: null,

View file

@ -77,6 +77,7 @@ export class KpiUserSpecial extends EntityBase {
summary: number;
@Column({
type: "text",
nullable: true,
comment: "ข้อมูลเอกสารหลักฐาน",
default: null,
@ -143,6 +144,7 @@ export class KpiUserSpecial extends EntityBase {
meaning: string;
@Column({
type: "text",
nullable: true,
comment: "สูตรคำนวณ",
default: null,

View 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 'สูตรคำนวณ'`);
}
}