| 
									
										
										
											
												Modernize Macro application
Summary: Adds feed, email, notifications, comments, partial editing, subscriptions, enable/disable, flags and crumbs to Macro.
Test Plan:
{F26839}
{F26840}
{F26841}
{F26842}
{F26843}
{F26844}
{F26845}
Reviewers: vrana, btrahan, chad
Reviewed By: vrana
CC: aran
Maniphest Tasks: T2157, T175, T2104
Differential Revision: https://secure.phabricator.com/D4141
											
										 
											2012-12-11 14:01:03 -08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-09 11:36:49 -07:00
										 |  |  | echo 'Giving image macros PHIDs'; | 
					
						
							| 
									
										
										
										
											2013-01-16 17:55:39 -08:00
										 |  |  | $table = new PhabricatorFileImageMacro(); | 
					
						
							|  |  |  | $table->openTransaction(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | foreach (new LiskMigrationIterator($table) as $macro) { | 
					
						
							| 
									
										
										
											
												Modernize Macro application
Summary: Adds feed, email, notifications, comments, partial editing, subscriptions, enable/disable, flags and crumbs to Macro.
Test Plan:
{F26839}
{F26840}
{F26841}
{F26842}
{F26843}
{F26844}
{F26845}
Reviewers: vrana, btrahan, chad
Reviewed By: vrana
CC: aran
Maniphest Tasks: T2157, T175, T2104
Differential Revision: https://secure.phabricator.com/D4141
											
										 
											2012-12-11 14:01:03 -08:00
										 |  |  |   if ($macro->getPHID()) { | 
					
						
							|  |  |  |     continue; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-09 11:36:49 -07:00
										 |  |  |   echo '.'; | 
					
						
							| 
									
										
										
											
												Modernize Macro application
Summary: Adds feed, email, notifications, comments, partial editing, subscriptions, enable/disable, flags and crumbs to Macro.
Test Plan:
{F26839}
{F26840}
{F26841}
{F26842}
{F26843}
{F26844}
{F26845}
Reviewers: vrana, btrahan, chad
Reviewed By: vrana
CC: aran
Maniphest Tasks: T2157, T175, T2104
Differential Revision: https://secure.phabricator.com/D4141
											
										 
											2012-12-11 14:01:03 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   queryfx( | 
					
						
							| 
									
										
										
										
											2013-01-16 17:55:39 -08:00
										 |  |  |     $macro->establishConnection('w'), | 
					
						
							| 
									
										
										
											
												Modernize Macro application
Summary: Adds feed, email, notifications, comments, partial editing, subscriptions, enable/disable, flags and crumbs to Macro.
Test Plan:
{F26839}
{F26840}
{F26841}
{F26842}
{F26843}
{F26844}
{F26845}
Reviewers: vrana, btrahan, chad
Reviewed By: vrana
CC: aran
Maniphest Tasks: T2157, T175, T2104
Differential Revision: https://secure.phabricator.com/D4141
											
										 
											2012-12-11 14:01:03 -08:00
										 |  |  |     'UPDATE %T SET phid = %s WHERE id = %d', | 
					
						
							|  |  |  |     $macro->getTableName(), | 
					
						
							|  |  |  |     $macro->generatePHID(), | 
					
						
							|  |  |  |     $macro->getID()); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2013-01-16 17:55:39 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | $table->saveTransaction(); | 
					
						
							| 
									
										
										
											
												Modernize Macro application
Summary: Adds feed, email, notifications, comments, partial editing, subscriptions, enable/disable, flags and crumbs to Macro.
Test Plan:
{F26839}
{F26840}
{F26841}
{F26842}
{F26843}
{F26844}
{F26845}
Reviewers: vrana, btrahan, chad
Reviewed By: vrana
CC: aran
Maniphest Tasks: T2157, T175, T2104
Differential Revision: https://secure.phabricator.com/D4141
											
										 
											2012-12-11 14:01:03 -08:00
										 |  |  | echo "\nDone.\n"; |