Переглянути джерело

add two columns (timeSequence & complexity) to the db

master
kelvin.yau 3 дні тому
джерело
коміт
9ced75ed0a
2 змінених файлів з 12 додано та 0 видалено
  1. +6
    -0
      src/main/java/com/ffii/fpsms/modules/master/entity/Bom.kt
  2. +6
    -0
      src/main/resources/db/changelog/changes/20251213_01_KelvinY/01_add_timeSequence_complexity_to_bom.sql

+ 6
- 0
src/main/java/com/ffii/fpsms/modules/master/entity/Bom.kt Переглянути файл

@@ -26,6 +26,12 @@ open class Bom : BaseEntity<Long>() {
@Column
open var allergicSubstances: Int? = null

@Column
open var timeSequence: Int? = null

@Column
open var complexity: Int? = null

@JsonBackReference
@OneToOne
@JoinColumn(name = "itemId")


+ 6
- 0
src/main/resources/db/changelog/changes/20251213_01_KelvinY/01_add_timeSequence_complexity_to_bom.sql Переглянути файл

@@ -0,0 +1,6 @@
-- liquibase formatted sql
-- changeset KelvinY:add_timeSequence_complexity_to_bom

ALTER TABLE `fpsmsdb`.`bom`
ADD COLUMN `timeSequence` INT NULL DEFAULT 0 AFTER `allergicSubstances`,
ADD COLUMN `complexity` INT NULL DEFAULT 0 AFTER `timeSequence`;

Завантаження…
Відмінити
Зберегти