Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14786142
D15744.id37943.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D15744.id37943.diff
View Options
diff --git a/resources/sql/autopatches/20160418.repouri.1.sql b/resources/sql/autopatches/20160418.repouri.1.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20160418.repouri.1.sql
@@ -0,0 +1,14 @@
+CREATE TABLE {$NAMESPACE}_repository.repository_uri (
+ id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
+ phid VARBINARY(64) NOT NULL,
+ repositoryPHID VARBINARY(64) NOT NULL,
+ uri VARCHAR(255) NOT NULL COLLATE {$COLLATE_TEXT},
+ builtinProtocol VARCHAR(32) COLLATE {$COLLATE_TEXT},
+ builtinIdentifier VARCHAR(32) COLLATE {$COLLATE_TEXT},
+ ioType VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT},
+ displayType VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT},
+ isDisabled BOOL NOT NULL,
+ dateCreated INT UNSIGNED NOT NULL,
+ dateModified INT UNSIGNED NOT NULL,
+ UNIQUE KEY `key_builtin` (repositoryPHID, builtinProtocol, builtinIdentifier)
+) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
diff --git a/src/applications/repository/storage/PhabricatorRepositoryURI.php b/src/applications/repository/storage/PhabricatorRepositoryURI.php
--- a/src/applications/repository/storage/PhabricatorRepositoryURI.php
+++ b/src/applications/repository/storage/PhabricatorRepositoryURI.php
@@ -37,7 +37,7 @@
return array(
self::CONFIG_AUX_PHID => true,
self::CONFIG_COLUMN_SCHEMA => array(
- 'uri' => 'text',
+ 'uri' => 'text255',
'builtinProtocol' => 'text32?',
'builtinIdentifier' => 'text32?',
'ioType' => 'text32',
diff --git a/src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php b/src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
--- a/src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
+++ b/src/infrastructure/testing/fixture/PhabricatorStorageFixtureScopeGuard.php
@@ -11,7 +11,7 @@
$this->name = $name;
execx(
- 'php %s upgrade --force --no-adjust --namespace %s',
+ 'php %s upgrade --force --namespace %s',
$this->getStorageBinPath(),
$this->name);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 1:18 PM (16 h, 50 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7050854
Default Alt Text
D15744.id37943.diff (2 KB)
Attached To
Mode
D15744: Add missing RepositoryURI table + run storage adjustments in tests
Attached
Detach File
Event Timeline
Log In to Comment