]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Revert "Bug 1471701 - Remove is_markdown (to be replaced by a new comment type)"
authorDylan William Hardison <dylan@hardison.net>
Wed, 27 Jun 2018 23:03:19 +0000 (19:03 -0400)
committerGitHub <noreply@github.com>
Wed, 27 Jun 2018 23:03:19 +0000 (19:03 -0400)
Bugzilla/DB/Schema.pm
Bugzilla/Install/DB.pm

index d2ac7944b3823a491d823007119957d87dbe0ce9..67ee9071c1d29fbc13105569ae5d61ffa44a6da3 100644 (file)
@@ -398,7 +398,8 @@ use constant ABSTRACT_SCHEMA => {
                                 DEFAULT => 'FALSE'},
             type            => {TYPE => 'INT2', NOTNULL => 1,
                                 DEFAULT => '0'},
-            extra_data      => {TYPE => 'varchar(255)'}
+            extra_data      => {TYPE => 'varchar(255)'},
+            is_markdown     => {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE'}
         ],
         INDEXES => [
             longdescs_bug_id_idx   => ['bug_id'],
index fe87342b133ea09087be352024e7d4de24afd482..d81bcfbdcc91f608a5443c295367d5e3e6fb4c6f 100644 (file)
@@ -710,6 +710,11 @@ sub update_table_definitions {
     # 2014-07-27 LpSolit@gmail.com - Bug 1044561
     _fix_user_api_keys_indexes();
 
+
+    # 2018-06-14 dylan@mozilla.com - Bug 1468818
+    $dbh->bz_add_column('longdescs', 'is_markdown',
+                        {TYPE => 'BOOLEAN', NOTNULL => 1, DEFAULT => 'FALSE'});
+
     # 2014-10-?? dkl@mozilla.com - Bug 1062940
     $dbh->bz_alter_column('bugs', 'alias', { TYPE => 'varchar(40)' });
 
@@ -769,8 +774,6 @@ sub update_table_definitions {
     $dbh->bz_add_index('profiles', 'profiles_realname_ft_idx',
                        {TYPE => 'FULLTEXT', FIELDS => ['realname']});
 
-    $dbh->bz_drop_column('longdescs', 'is_markdown');
-
     ################################################################
     # New --TABLE-- changes should go *** A B O V E *** this point #
     ################################################################