Skip to content

Commit aa95bb9

Browse files
authored
Merge pull request #3896 from msupply-foundation/3739-remove-foreign-key
3739 remove foreign key for user
2 parents c1e09b7 + 468b596 commit aa95bb9

File tree

1 file changed

+1
-1
lines changed
  • server/repository/src/migrations/v2_00_00/assets

1 file changed

+1
-1
lines changed

server/repository/src/migrations/v2_00_00/assets/asset_log.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub(crate) fn migrate(connection: &StorageConnection) -> anyhow::Result<()> {
2828
CREATE TABLE asset_log (
2929
id TEXT NOT NULL PRIMARY KEY,
3030
asset_id TEXT NOT NULL REFERENCES asset(id),
31-
user_id TEXT NOT NULL REFERENCES user_account(id),
31+
user_id TEXT NOT NULL,
3232
status {ASSET_LOG_STATUS_ENUM_TYPE},
3333
reason_id TEXT REFERENCES asset_log_reason(id),
3434
comment TEXT,

0 commit comments

Comments
 (0)