File tree Expand file tree Collapse file tree
src/SimpleToDoService/Database Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,3 +41,5 @@ Thumbs.db
4141/Publish
4242/Scripts /migrate.log
4343/Scripts /restore.log
44+ /restore.log
45+ /.vs /SimpleToDoService /xs /UserPrefs.xml
Original file line number Diff line number Diff line change 1+ DO
2+ $$
3+ BEGIN
4+ raise notice ' Migration from 3 to 4' ;
5+ if (select version from dbversion limit 1 ) = 3 then
6+
7+ raise notice ' Started' ;
8+
9+ ALTER TABLE TaskPrototype ALTER COLUMN CronExpression TYPE varchar (255 )
10+
11+ raise notice ' Altered TaskPrototype' ;
12+ raise notice ' Change CronExpression TYPE to varchar (255)' ;
13+
14+ update dbversion
15+ set version = 4
16+ where version = 3 ;
17+
18+ end if;
19+
20+ raise notice ' Complete' ;
21+ END
22+ $$
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public class TaskPrototype
5959 public Guid Uuid { get ; set ; }
6060
6161 [ Column ( "cronexpression" ) ]
62- [ MaxLength ( 25 ) ]
62+ [ MaxLength ( 255 ) ]
6363 public string CronExpression { get ; set ; }
6464
6565 [ XmlIgnore ]
You can’t perform that action at this time.
0 commit comments