Rushabh Mehta | 5eb3764 | 2013-02-14 17:34:51 +0530 | [diff] [blame] | 1 | import webnotes |
| 2 | |
| 3 | def execute(): |
| 4 | webnotes.reload_doc("core", "doctype", "event") |
| 5 | |
| 6 | webnotes.conn.sql("""update tabEvent set subject=description""") |
| 7 | |
| 8 | webnotes.conn.sql("""update tabEvent set description = concat(description, "\n", notes) |
| 9 | where ifnull(notes,"") != "" """) |
| 10 | |
| 11 | webnotes.conn.sql("""update tabEvent set starts_on = timestamp(event_date, event_hour)""") |
| 12 | |
| 13 | webnotes.conn.sql("""update tabEvent set ends_on = timestampadd(hour, 1, starts_on)""") |
| 14 | |