Page MenuHomePhabricator

D16242.diff
No OneTemporary

D16242.diff

diff --git a/resources/sql/autopatches/20160706.phame.blog.parentdomain.2.sql b/resources/sql/autopatches/20160706.phame.blog.parentdomain.2.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20160706.phame.blog.parentdomain.2.sql
@@ -0,0 +1,2 @@
+ALTER TABLE {$NAMESPACE}_phame.phame_blog
+ MODIFY parentDomain VARCHAR(128) NULL COLLATE {$COLLATE_TEXT};
diff --git a/resources/sql/autopatches/20160706.phame.blog.parentsite.1.sql b/resources/sql/autopatches/20160706.phame.blog.parentsite.1.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20160706.phame.blog.parentsite.1.sql
@@ -0,0 +1,2 @@
+ALTER TABLE {$NAMESPACE}_phame.phame_blog
+ MODIFY parentSite VARCHAR(128) NULL COLLATE {$COLLATE_TEXT};
diff --git a/src/applications/phame/editor/PhameBlogEditor.php b/src/applications/phame/editor/PhameBlogEditor.php
--- a/src/applications/phame/editor/PhameBlogEditor.php
+++ b/src/applications/phame/editor/PhameBlogEditor.php
@@ -66,6 +66,7 @@
case PhameBlogTransaction::TYPE_DESCRIPTION:
case PhameBlogTransaction::TYPE_STATUS:
case PhameBlogTransaction::TYPE_PARENTSITE:
+ case PhameBlogTransaction::TYPE_PARENTDOMAIN:
case PhameBlogTransaction::TYPE_PROFILEIMAGE:
case PhameBlogTransaction::TYPE_HEADERIMAGE:
return $xaction->getNewValue();
diff --git a/src/applications/phame/storage/PhameBlog.php b/src/applications/phame/storage/PhameBlog.php
--- a/src/applications/phame/storage/PhameBlog.php
+++ b/src/applications/phame/storage/PhameBlog.php
@@ -48,8 +48,8 @@
'description' => 'text',
'domain' => 'text128?',
'domainFullURI' => 'text128?',
- 'parentSite' => 'text128',
- 'parentDomain' => 'text128',
+ 'parentSite' => 'text128?',
+ 'parentDomain' => 'text128?',
'status' => 'text32',
'mailKey' => 'bytes20',
'profileImagePHID' => 'phid?',

File Metadata

Mime Type
text/plain
Expires
May 16 2024, 12:21 AM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6274457
Default Alt Text
D16242.diff (1 KB)

Event Timeline