Skip to content

Commit

Permalink
OBGM-337 Minor improvements in the DB installation changelogs (#4417)
Browse files Browse the repository at this point in the history
* OBGM-337 Remove empty strings as default values on ids

* OBGM-337 Change type of id fields from VARCHAR(255) to CHAR(38)

* OBGM-136 Add PICK_STOCK and PUTAWAY_STOCK to depot location type
plus minor cleanup in ordering

* OBGM-337 Remove obsolete click_stream and click_stream_request tables from DB installation changelogs
  • Loading branch information
awalkowiak committed Dec 13, 2023
1 parent 7ae4475 commit 0bdc63c
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -970,10 +970,6 @@ databaseChangeLog = {
addForeignKeyConstraint(baseColumnNames: "location_id", baseTableName: "location_supported_activities", constraintName: "FKF58372688ABEBD5", deferrable: "false", initiallyDeferred: "false", onDelete: "RESTRICT", onUpdate: "RESTRICT", referencedColumnNames: "id", referencedTableName: "location", validate: "true")
}

changeSet(author: "openboxes (generated)", id: "1700664714834-705") {
addForeignKeyConstraint(baseColumnNames: "click_stream_id", baseTableName: "click_stream_request", constraintName: "FKFD8E50671A43AB29", deferrable: "false", initiallyDeferred: "false", onDelete: "RESTRICT", onUpdate: "RESTRICT", referencedColumnNames: "id", referencedTableName: "click_stream", validate: "true")
}

changeSet(author: "openboxes (generated)", id: "1700664714834-706") {
addForeignKeyConstraint(baseColumnNames: "product_id", baseTableName: "inventory_item", constraintName: "FKFE019416DED5FAE7", deferrable: "false", initiallyDeferred: "false", onDelete: "RESTRICT", onUpdate: "RESTRICT", referencedColumnNames: "id", referencedTableName: "product", validate: "true")
}
Expand Down
6 changes: 0 additions & 6 deletions grails-app/migrations/install/changelog-create-indices.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1436,12 +1436,6 @@ databaseChangeLog = {
}
}

changeSet(author: "openboxes (generated)", id: "1700664714834-377") {
createIndex(indexName: "FKFD8E50671A43AB29", tableName: "click_stream_request") {
column(name: "click_stream_id")
}
}

changeSet(author: "openboxes (generated)", id: "1700664714834-378") {
createIndex(indexName: "fk_budget_code_created_by", tableName: "budget_code") {
column(name: "created_by_id")
Expand Down
Loading

0 comments on commit 0bdc63c

Please sign in to comment.