]> source.dussan.org Git - nextcloud-server.git/commitdiff
Going from text to clob is not something we do.
authorBart Visscher <bartv@thisnet.nl>
Fri, 28 Jun 2013 14:07:22 +0000 (16:07 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 28 Jun 2013 18:16:01 +0000 (20:16 +0200)
Also Oracle DB has problems with this, see
http://abhijitbashetti.blogspot.de/2011/10/converting-varchar2-to-clob-and-clob-to.html

tests/data/db_structure2.xml
tests/lib/dbschema.php

index fc6fe0bba7d513d14e997fc97631f3bc85d6a79b..6f12f81f477d94cb7a118288d9a41c0285f0ccdc 100644 (file)
@@ -49,8 +49,9 @@
 
    <field>
     <name>description</name>
-    <type>clob</type>
+    <type>text</type>
     <notnull>false</notnull>
+    <length>1024</length>
    </field>
 
    <field>
index 103909e2e2581cd0724781781e544759fb1a4c04..c2e55eabf4b6b18026fec3732c135f2d1365cd90 100644 (file)
@@ -53,12 +53,6 @@ class Test_DBSchema extends PHPUnit_Framework_TestCase {
        }
 
        public function doTestSchemaChanging() {
-               if (OC_Config::getValue( 'dbtype', 'sqlite' ) === 'oci') {
-                       $this->markTestSkipped(
-                               // see http://abhijitbashetti.blogspot.de/2011/10/converting-varchar2-to-clob-and-clob-to.html
-                               'Oracle does not simply ALTER a VARCHAR into a CLOB.'
-                       );
-               }
                OC_DB::updateDbFromStructure($this->schema_file2);
                $this->assertTableExist($this->table2);
        }