mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 05:18:11 +00:00
- Introduced a new step in the onboarding process to select company nationality (Ethiopian or Foreign). - Updated API and service layers to handle nationality data for companies. - Added support for uploading multiple business license files for each operational profile. - Refactored company and forwarder forms to include new license upload step. - Created a reusable RoleLicenseStep component for managing license file uploads. - Implemented utility functions for phone number handling. - Added migrations to update the database schema for nationality and business license files.
22 lines
642 B
TypeScript
22 lines
642 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AddBusinessLicenseFilesToCompanyProfiles1791000000003
|
|
implements MigrationInterface
|
|
{
|
|
name = "AddBusinessLicenseFilesToCompanyProfiles1791000000003";
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE freight.company_profiles
|
|
ADD COLUMN IF NOT EXISTS business_license_files jsonb;
|
|
`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE freight.company_profiles
|
|
DROP COLUMN IF EXISTS business_license_files;
|
|
`);
|
|
}
|
|
}
|