base migration and schema optimization
This commit is contained in:
parent
0d8499b828
commit
d156cc6ad6
16 changed files with 426 additions and 22 deletions
|
@ -56,6 +56,19 @@ import { SettingsFromEnv1745059495807 } from "./migrations/1745059495807-setting
|
|||
import { MemberCreatedAt1746006549262 } from "./migrations/1746006549262-memberCreatedAt";
|
||||
import { UserLoginRoutine1746252454922 } from "./migrations/1746252454922-UserLoginRoutine";
|
||||
import { SettingsFromEnv_SET1745059495808 } from "./migrations/1745059495808-settingsFromEnv_set";
|
||||
import { equipmentType } from "./entity/unit/equipment/equipmentType";
|
||||
import { equipment } from "./entity/unit/equipment/equipment";
|
||||
import { vehicleType } from "./entity/unit/vehicle/vehicleType";
|
||||
import { vehicle } from "./entity/unit/vehicle/vehicle";
|
||||
import { wearableType } from "./entity/unit/wearable/wearableType";
|
||||
import { wearable } from "./entity/unit/wearable/wearable";
|
||||
import { damageReport } from "./entity/unit/damageReport";
|
||||
import { inspectionPlan } from "./entity/unit/inspection/inspectionPlan";
|
||||
import { inspectionVersionedPlan } from "./entity/unit/inspection/inspectionVersionedPlan";
|
||||
import { inspectionPoint } from "./entity/unit/inspection/inspectionPoint";
|
||||
import { inspection } from "./entity/unit/inspection/inspection";
|
||||
import { inspectionPointResult } from "./entity/unit/inspection/inspectionPointResult";
|
||||
import { UnitBase1748261477410 } from "./migrations/1748261477410-unitBase";
|
||||
|
||||
configCheck();
|
||||
|
||||
|
@ -111,6 +124,18 @@ const dataSource = new DataSource({
|
|||
webapi,
|
||||
webapiPermission,
|
||||
setting,
|
||||
equipmentType,
|
||||
equipment,
|
||||
vehicleType,
|
||||
vehicle,
|
||||
wearableType,
|
||||
wearable,
|
||||
damageReport,
|
||||
inspectionPlan,
|
||||
inspectionVersionedPlan,
|
||||
inspectionPoint,
|
||||
inspection,
|
||||
inspectionPointResult,
|
||||
],
|
||||
migrations: [
|
||||
BackupAndResetDatabase1738166124200,
|
||||
|
@ -123,6 +148,7 @@ const dataSource = new DataSource({
|
|||
SettingsFromEnv_SET1745059495808,
|
||||
MemberCreatedAt1746006549262,
|
||||
UserLoginRoutine1746252454922,
|
||||
UnitBase1748261477410,
|
||||
],
|
||||
migrationsRun: true,
|
||||
migrationsTransactionMode: "each",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue