Skip to content

Commit

Permalink
new fields in the "talks" table
Browse files Browse the repository at this point in the history
needed for Act#16 (teaser description), Act#36 (allow record)
  • Loading branch information
maddingue committed Nov 29, 2014
1 parent a1fa2c7 commit 6926bcc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/dbinit
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,20 @@ CREATE TABLE talks
/* talk info */
title text,
teaser text,
abstract text,
url_abstract text,
url_talk text,
url_video1 text,
url_video2 text,
url_video3 text,
duration integer,
lightning boolean DEFAULT false NOT NULL,
/* for the organisers */
accepted boolean DEFAULT false NOT NULL,
confirmed boolean DEFAULT false NOT NULL,
allow_record boolean DEFAULT true NOT NULL,
comment text,
/* for the schedule */
Expand Down
8 changes: 8 additions & 0 deletions lib/Act/Database.pm
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ my @SCHEMA_UPDATES = (
#10,
"alter table participations add column attended boolean default false;
",
#11
q{
alter table talks add column teaser text;
alter table talks add column url_video1 text;
alter table talks add column url_video2 text;
alter table talks add column url_video3 text;
alter table talks add column allow_record boolean DEFAULT true NOT NULL;
},
);

# returns ( current database schema version, required version )
Expand Down

0 comments on commit 6926bcc

Please sign in to comment.