Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/patches/20130218.updatechannelid.php
| <?php | <?php | ||||
| echo "Updating channel IDs of previous chatlog events...\n"; | echo pht('Updating channel IDs of previous chatlog events...')."\n"; | ||||
| $event_table = new PhabricatorChatLogEvent(); | $event_table = new PhabricatorChatLogEvent(); | ||||
| $channel_table = new PhabricatorChatLogChannel(); | $channel_table = new PhabricatorChatLogChannel(); | ||||
| $event_table->openTransaction(); | $event_table->openTransaction(); | ||||
| $channel_table->openTransaction(); | $channel_table->openTransaction(); | ||||
| $event_table->beginReadLocking(); | $event_table->beginReadLocking(); | ||||
| $channel_table->beginReadLocking(); | $channel_table->beginReadLocking(); | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| $event_table->endReadLocking(); | $event_table->endReadLocking(); | ||||
| $channel_table->endReadLocking(); | $channel_table->endReadLocking(); | ||||
| $event_table->saveTransaction(); | $event_table->saveTransaction(); | ||||
| $channel_table->saveTransaction(); | $channel_table->saveTransaction(); | ||||
| echo "\nDone.\n"; | echo "\n".pht('Done.')."\n"; | ||||