Rename owner by approver
Document owner does not make sense it's more an document approver. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
committed by
Sacha Al Himdani
parent
891d607602
commit
3d8c7c4dd6
@@ -34,7 +34,7 @@ type (
|
||||
OrganizationID gid.GID `db:"organization_id"`
|
||||
DocumentID gid.GID `db:"document_id"`
|
||||
Title string `db:"title"`
|
||||
OwnerID gid.GID `db:"owner_profile_id"`
|
||||
ApproverID gid.GID `db:"approver_profile_id"`
|
||||
VersionNumber int `db:"version_number"`
|
||||
Classification DocumentClassification `db:"classification"`
|
||||
Content string `db:"content"`
|
||||
@@ -77,7 +77,7 @@ SELECT
|
||||
organization_id,
|
||||
document_id,
|
||||
title,
|
||||
owner_profile_id,
|
||||
approver_profile_id,
|
||||
version_number,
|
||||
classification,
|
||||
content,
|
||||
@@ -139,7 +139,7 @@ SELECT
|
||||
organization_id,
|
||||
document_id,
|
||||
title,
|
||||
owner_profile_id,
|
||||
approver_profile_id,
|
||||
version_number,
|
||||
classification,
|
||||
content,
|
||||
@@ -190,7 +190,7 @@ INSERT INTO document_versions (
|
||||
organization_id,
|
||||
document_id,
|
||||
title,
|
||||
owner_profile_id,
|
||||
approver_profile_id,
|
||||
version_number,
|
||||
classification,
|
||||
content,
|
||||
@@ -205,7 +205,7 @@ VALUES (
|
||||
@organization_id,
|
||||
@document_id,
|
||||
@title,
|
||||
@owner_profile_id,
|
||||
@approver_profile_id,
|
||||
@version_number,
|
||||
@classification,
|
||||
@content,
|
||||
@@ -221,7 +221,7 @@ VALUES (
|
||||
"organization_id": dv.OrganizationID,
|
||||
"document_id": dv.DocumentID,
|
||||
"title": dv.Title,
|
||||
"owner_profile_id": dv.OwnerID,
|
||||
"approver_profile_id": dv.ApproverID,
|
||||
"version_number": dv.VersionNumber,
|
||||
"classification": dv.Classification,
|
||||
"content": dv.Content,
|
||||
@@ -260,7 +260,7 @@ SELECT
|
||||
organization_id,
|
||||
document_id,
|
||||
title,
|
||||
owner_profile_id,
|
||||
approver_profile_id,
|
||||
version_number,
|
||||
classification,
|
||||
content,
|
||||
@@ -313,7 +313,7 @@ SELECT
|
||||
organization_id,
|
||||
document_id,
|
||||
title,
|
||||
owner_profile_id,
|
||||
approver_profile_id,
|
||||
version_number,
|
||||
classification,
|
||||
content,
|
||||
@@ -364,7 +364,7 @@ SELECT
|
||||
organization_id,
|
||||
document_id,
|
||||
title,
|
||||
owner_profile_id,
|
||||
approver_profile_id,
|
||||
version_number,
|
||||
classification,
|
||||
content,
|
||||
@@ -413,7 +413,7 @@ func (dv DocumentVersion) Update(
|
||||
q := `
|
||||
UPDATE document_versions SET
|
||||
title = @title,
|
||||
owner_profile_id = @owner_profile_id,
|
||||
approver_profile_id = @approver_profile_id,
|
||||
changelog = @changelog,
|
||||
status = @status,
|
||||
content = @content,
|
||||
@@ -429,7 +429,7 @@ WHERE %s
|
||||
args := pgx.StrictNamedArgs{
|
||||
"document_version_id": dv.ID,
|
||||
"title": dv.Title,
|
||||
"owner_profile_id": dv.OwnerID,
|
||||
"approver_profile_id": dv.ApproverID,
|
||||
"changelog": dv.Changelog,
|
||||
"status": dv.Status,
|
||||
"content": dv.Content,
|
||||
|
||||
Reference in New Issue
Block a user