Chad Little
e7f94d7528
Properly version Legalpad documents
Summary: Fixes T12933. This now creates a new DocumentBody when creating or editing a legalpad document.
Test Plan:
Create a new document, edit document. Check database that version is saved as new row, and timestamps are correct.
```mysql> select * from legalpad_documentbody;
+----+--------------------------------+--------------------------------+--------------------------------+---------+---------------+--------+-------------+--------------+
| id | phid | creatorPHID | documentPHID | version | title | text | dateCreated | dateModified |
+----+--------------------------------+--------------------------------+--------------------------------+---------+---------------+--------+-------------+--------------+
| 1 | PHID-LEGB-nsgzqklzfmjahlcgobm7 | PHID-USER-72xwu7eurrpsu2kxgrvw | PHID-LEGD-v7mc3xyithjvbiqeksbj | 2 | Legal Title 1 | Body 2 | 1501037011 | 1501037081 |
| 2 | PHID-LEGB-2kaytwmjusljib6pjycc | PHID-USER-72xwu7eurrpsu2kxgrvw | PHID-LEGD-v7mc3xyithjvbiqeksbj | 3 | Legal Title 1 | Body 3 | 1501037521 | 1501037521 |
| 3 | PHID-LEGB-h6q6bi42w4rgxrhk3qdb | PHID-USER-72xwu7eurrpsu2kxgrvw | PHID-LEGD-7gxuhafvkoy2izkv4gdd | 1 | New 2 | asdf | 1501037553 | 1501037553 |
+----+--------------------------------+--------------------------------+--------------------------------+---------+---------------+--------+-------------+--------------+
3 rows in set (0.00 sec)```
Reviewers: epriestley
Reviewed By: epriestley
Subscribers: tmakarios, Korvin
Maniphest Tasks: T12933
Differential Revision: https://secure.phabricator.com/D18280
2017-07-26 09:29:56 -07:00
..
2017-07-09 12:27:08 -07:00
2017-07-25 05:12:39 -07:00
2016-08-24 19:05:30 -04:00
2015-09-13 12:27:30 -07:00
2017-01-24 20:21:06 -08:00
2015-09-13 12:30:48 -07:00
2013-01-19 18:43:43 -08:00
2016-12-05 15:57:15 -08:00
2017-07-26 09:29:56 -07:00
2017-06-27 12:51:46 -07:00