1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00
phorge-phorge/resources/sql/autopatches/20151023.harborpolicy.2.php

22 lines
522 B
PHP
Raw Normal View History

<?php
$table = new HarbormasterBuildPlan();
$conn_w = $table->establishConnection('w');
$view_policy = PhabricatorPolicies::getMostOpenPolicy();
queryfx(
$conn_w,
'UPDATE %T SET viewPolicy = %s WHERE viewPolicy = %s',
$table->getTableName(),
$view_policy,
'');
$edit_policy = id(new PhabricatorHarbormasterApplication())
->getPolicy(HarbormasterCreatePlansCapability::CAPABILITY);
queryfx(
$conn_w,
'UPDATE %T SET editPolicy = %s WHERE editPolicy = %s',
$table->getTableName(),
$edit_policy,
'');