template attachments (scripts and stylesheets)
This commit is contained in:
parent
676b124697
commit
f4df3b1280
6 changed files with 664 additions and 36 deletions
|
|
@ -31,6 +31,7 @@ my $quiet;
|
|||
my $session = start();
|
||||
|
||||
# upgrade functions go here
|
||||
addTemplateAttachmentsTable($session);
|
||||
revertUsePacked( $session );
|
||||
|
||||
finish($session);
|
||||
|
|
@ -45,6 +46,22 @@ finish($session);
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
sub addTemplateAttachmentsTable {
|
||||
my $session = shift;
|
||||
my $create = q{
|
||||
create table template_attachments (
|
||||
templateId varchar(22),
|
||||
revisionDate bigint(20),
|
||||
url varchar(256),
|
||||
type varchar(20),
|
||||
sequence int(11),
|
||||
|
||||
primary key (templateId, revisionDate, url)
|
||||
)
|
||||
};
|
||||
$session->db->write($create);
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Rollback usePacked. It should be carefully applied manually for now
|
||||
sub revertUsePacked {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue