fix(migration): add TInventoryReturn and TInventoryReturnLine entities to migration
This commit is contained in:
parent
410ecde2e9
commit
3b5c5038fb
|
|
@ -36,6 +36,8 @@ func Migrate(db *gorm.DB) error {
|
|||
&entities.TInventoryRequestLineEntity{},
|
||||
&entities.TInventoryIssueEntity{},
|
||||
&entities.TInventoryIssueLineEntity{},
|
||||
&entities.TInventoryReturnEntity{},
|
||||
&entities.TInventoryReturnLineEntity{},
|
||||
// &entities.InventoryTransactionEntity{},
|
||||
// &entities.InventoryStorageEntity{},
|
||||
); err != nil {
|
||||
|
|
@ -71,12 +73,14 @@ func MigrateFresh(db *gorm.DB) error {
|
|||
// &entities.MAisleEntity{},
|
||||
// &entities.TAssignmentEntity{},
|
||||
// &entities.TAssignmentUserEntity{},
|
||||
// &entities.TInventoryReceiptEntity{},
|
||||
// &entities.TInventoryReceiptLineEntity{},
|
||||
// &entities.TInventoryRequestEntity{},
|
||||
// &entities.TInventoryRequestLineEntity{},
|
||||
// &entities.TInventoryIssueEntity{},
|
||||
// &entities.TInventoryIssueLineEntity{},
|
||||
&entities.TInventoryReceiptEntity{},
|
||||
&entities.TInventoryReceiptLineEntity{},
|
||||
&entities.TInventoryRequestEntity{},
|
||||
&entities.TInventoryRequestLineEntity{},
|
||||
&entities.TInventoryIssueEntity{},
|
||||
&entities.TInventoryIssueLineEntity{},
|
||||
&entities.TInventoryReturnEntity{},
|
||||
&entities.TInventoryReturnLineEntity{},
|
||||
// &entities.InventoryTransactionEntity{},
|
||||
// &entities.InventoryStorageEntity{},
|
||||
); err != nil {
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ COPY . .
|
|||
|
||||
RUN go mod tidy
|
||||
|
||||
CMD go run cmd/main.go --migrate && air
|
||||
CMD go run cmd/main.go --fresh && air
|
||||
Loading…
Reference in New Issue