Template confirm mutation screen.
This commit is contained in:
parent
b9aaf63ec2
commit
745addd5d1
5 changed files with 66 additions and 15 deletions
|
|
@ -34,9 +34,39 @@ renamespaceTemplates( $session );
|
|||
addSpecialStateTable( $session );
|
||||
addListNameColumn( $session );
|
||||
addRegistrationSteps( $session );
|
||||
addConfirmationTemplateColumn( $session );
|
||||
|
||||
finish($session);
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub addConfirmationTemplateColumn {
|
||||
my $session = shift;
|
||||
my $db = $session->db;
|
||||
|
||||
print "\tAdding column for mutation confirmation template...";
|
||||
|
||||
my $hasColumn = $db->quickScalar( 'show columns from assetAspectSubscriber where Field = ?', [
|
||||
'confirmMutationTemplateId',
|
||||
] );
|
||||
|
||||
unless ( $hasColumn ) {
|
||||
$db->write(
|
||||
'alter table assetAspectSubscriber add column confirmMutationTemplateId char(22) binary not null default ?',
|
||||
[
|
||||
'WUk-wEhGiF8dcEogrJfrfg',
|
||||
]
|
||||
);
|
||||
|
||||
$db->write(
|
||||
'update assetAspectSubscriber set confirmMutationTemplateId=? where confirmMutationTemplateId is null',
|
||||
[
|
||||
'WUk-wEhGiF8dcEogrJfrfg',
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
print "Done.\n";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub addListNameColumn {
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue