mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
- Added StationWorkControls to manage loading/unloading phases in TrainScheduleV2DetailPage. - Implemented API endpoints for recording station work and managing wagon detach requests. - Updated contract templates to include Ethiopian customs handling options. - Enhanced shipment forms to collect customs clearing agent details for without-customs bookings. - Introduced NUMBER_OF_WAGONS as a unit of measure for bulk cargo, allowing customers to specify wagon counts. - Improved validation for customs clearing agent information in shipment forms. - Updated various components and services to accommodate new features and ensure data integrity.
25 lines
872 B
TypeScript
25 lines
872 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
/**
|
|
* Per-station loading/unloading time windows on a schedule, operator-clicked:
|
|
* { [yardId]: { loading?: { startedAt, endedAt, startedByUserId, endedByUserId },
|
|
* unloading?: { same } } }
|
|
* Booking load/unload is gated on the matching window having been started.
|
|
*/
|
|
export class ScheduleStationWorkLogs3720000000000 implements MigrationInterface {
|
|
name = 'ScheduleStationWorkLogs3720000000000';
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE freight.train_schedules
|
|
ADD COLUMN IF NOT EXISTS station_work_logs jsonb
|
|
`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE freight.train_schedules DROP COLUMN IF EXISTS station_work_logs
|
|
`);
|
|
}
|
|
}
|