Index: trunk/extensions/Drafts/Drafts.sql |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | -- Unique ID for drafts |
9 | 9 | draft_id INTEGER AUTO_INCREMENT, |
10 | 10 | -- Unique value generated at edit time to prevent duplicate submissions |
11 | | - draft_token INTEGER, |
| 11 | + draft_token VARBINARY(255), |
12 | 12 | -- User who made the draft, 0 for anons |
13 | 13 | draft_user INTEGER NOT NULL default 0, |
14 | 14 | -- Page ID, 0 for proposed new pages |
Index: trunk/extensions/Drafts/Drafts.classes.php |
— | — | @@ -651,7 +651,7 @@ |
652 | 652 | $dbw->begin(); |
653 | 653 | // Builds insert/update information |
654 | 654 | $data = array( |
655 | | - 'draft_token' => (int) $this->getToken(), |
| 655 | + 'draft_token' => (string) $this->getToken(), |
656 | 656 | 'draft_user' => (int) $wgUser->getID(), |
657 | 657 | 'draft_namespace' => (int) $this->title->getNamespace(), |
658 | 658 | 'draft_title' => (string) $this->title->getDBkey(), |