2 package AddWebUsrDeletePermToOrganismprop
;
5 extends
'CXGN::Metadata::Dbpatch';
11 print STDOUT
"Executing the patch:\n " . $self->name . ".\n\nDescription:\n ". $self->description . ".\n\nExecuted by:\n " . $self->username . " .";
13 print STDOUT
"\nChecking if this db_patch was executed before or if previous db_patches have been executed.\n";
17 print STDOUT
"\nExecuting the SQL commands.\n";
19 $self->dbh->do(<<EOSQL);
23 grant insert on cvterm to web_usr;
24 grant usage, update on cvterm_cvterm_id_seq to web_usr;
25 grant insert,delete,update on public.organismprop to web_usr;
26 grant usage, update on organismprop_organismprop_id_seq to web_usr;
29 print "You're done!\n";