1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Remove redundant code

This commit is contained in:
sauls8t 2018-10-23 13:46:38 +01:00
parent 9667e8c2a0
commit f950075593
4 changed files with 2 additions and 9 deletions

1
.gitignore vendored
View file

@ -69,3 +69,4 @@ testem.log
bower.json.ember-try bower.json.ember-try
package.json.ember-try package.json.ember-try
embed/bindata_assetfs.go embed/bindata_assetfs.go
dmz-backup*.zip

View file

@ -29,7 +29,6 @@ RENAME TABLE
`userevent` TO dmz_audit_log, `userevent` TO dmz_audit_log,
`useraction` TO dmz_action; `useraction` TO dmz_action;
-- field renaming -- field renaming
ALTER TABLE dmz_org ALTER TABLE dmz_org
CHANGE `refid` `c_refid` VARCHAR(20) NOT NULL, CHANGE `refid` `c_refid` VARCHAR(20) NOT NULL,
@ -90,7 +89,6 @@ ALTER TABLE dmz_group_member
CHANGE `roleid` `c_groupid` VARCHAR(20) NOT NULL, CHANGE `roleid` `c_groupid` VARCHAR(20) NOT NULL,
CHANGE `userid` `c_userid` VARCHAR(20) NOT NULL; CHANGE `userid` `c_userid` VARCHAR(20) NOT NULL;
ALTER TABLE dmz_permission ALTER TABLE dmz_permission
CHANGE `orgid` `c_orgid` VARCHAR(20) NOT NULL, CHANGE `orgid` `c_orgid` VARCHAR(20) NOT NULL,
CHANGE `who` `c_who` VARCHAR(30) NOT NULL, CHANGE `who` `c_who` VARCHAR(30) NOT NULL,
@ -101,7 +99,6 @@ ALTER TABLE dmz_permission
CHANGE `refid` `c_refid` VARCHAR(20) NOT NULL, CHANGE `refid` `c_refid` VARCHAR(20) NOT NULL,
CHANGE `created` `c_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; CHANGE `created` `c_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE dmz_doc ALTER TABLE dmz_doc
CHANGE `refid` `c_refid` VARCHAR(20) NOT NULL, CHANGE `refid` `c_refid` VARCHAR(20) NOT NULL,
CHANGE `orgid` `c_orgid` VARCHAR(20) NOT NULL, CHANGE `orgid` `c_orgid` VARCHAR(20) NOT NULL,
@ -334,6 +331,5 @@ ALTER TABLE dmz_action
CHANGE `created` `c_created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, CHANGE `created` `c_created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
CHANGE `revised` `c_revised` TIMESTAMP DEFAULT CURRENT_TIMESTAMP; CHANGE `revised` `c_revised` TIMESTAMP DEFAULT CURRENT_TIMESTAMP;
-- deprecations -- deprecations
DROP TABLE IF EXISTS `participant`; DROP TABLE IF EXISTS `participant`;

View file

@ -161,10 +161,6 @@ func (s Store) PublicDocuments(ctx domain.RequestContext, orgID string) (documen
return return
} }
/*
FROM document d LEFT JOIN label l ON l.refid=d.labelid
*/
// Update changes the given document record to the new values, updates search information and audits the action. // Update changes the given document record to the new values, updates search information and audits the action.
func (s Store) Update(ctx domain.RequestContext, document doc.Document) (err error) { func (s Store) Update(ctx domain.RequestContext, document doc.Document) (err error) {
document.Revised = time.Now().UTC() document.Revised = time.Now().UTC()

View file

@ -62,6 +62,6 @@ func (m *Mailer) DocumentApprover(recipient, inviterName, inviterEmail, url, doc
m.Runtime.Log.Error(fmt.Sprintf("%s - unable to send email", method), err) m.Runtime.Log.Error(fmt.Sprintf("%s - unable to send email", method), err)
} }
if !ok { if !ok {
m.Runtime.Log.Info(fmt.Sprintf("%s unable to send email")) m.Runtime.Log.Info(fmt.Sprintf("%s unable to send email", method))
} }
} }