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.TInventoryRequestLineEntity{},
|
||||||
&entities.TInventoryIssueEntity{},
|
&entities.TInventoryIssueEntity{},
|
||||||
&entities.TInventoryIssueLineEntity{},
|
&entities.TInventoryIssueLineEntity{},
|
||||||
|
&entities.TInventoryReturnEntity{},
|
||||||
|
&entities.TInventoryReturnLineEntity{},
|
||||||
// &entities.InventoryTransactionEntity{},
|
// &entities.InventoryTransactionEntity{},
|
||||||
// &entities.InventoryStorageEntity{},
|
// &entities.InventoryStorageEntity{},
|
||||||
); err != nil {
|
); err != nil {
|
||||||
|
|
@ -71,12 +73,14 @@ func MigrateFresh(db *gorm.DB) error {
|
||||||
// &entities.MAisleEntity{},
|
// &entities.MAisleEntity{},
|
||||||
// &entities.TAssignmentEntity{},
|
// &entities.TAssignmentEntity{},
|
||||||
// &entities.TAssignmentUserEntity{},
|
// &entities.TAssignmentUserEntity{},
|
||||||
// &entities.TInventoryReceiptEntity{},
|
&entities.TInventoryReceiptEntity{},
|
||||||
// &entities.TInventoryReceiptLineEntity{},
|
&entities.TInventoryReceiptLineEntity{},
|
||||||
// &entities.TInventoryRequestEntity{},
|
&entities.TInventoryRequestEntity{},
|
||||||
// &entities.TInventoryRequestLineEntity{},
|
&entities.TInventoryRequestLineEntity{},
|
||||||
// &entities.TInventoryIssueEntity{},
|
&entities.TInventoryIssueEntity{},
|
||||||
// &entities.TInventoryIssueLineEntity{},
|
&entities.TInventoryIssueLineEntity{},
|
||||||
|
&entities.TInventoryReturnEntity{},
|
||||||
|
&entities.TInventoryReturnLineEntity{},
|
||||||
// &entities.InventoryTransactionEntity{},
|
// &entities.InventoryTransactionEntity{},
|
||||||
// &entities.InventoryStorageEntity{},
|
// &entities.InventoryStorageEntity{},
|
||||||
); err != nil {
|
); err != nil {
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ COPY . .
|
||||||
|
|
||||||
RUN go mod tidy
|
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