[BUGFIX] Allow setting "ready to publish" workspace state again 01/57301/4
authorOliver Hader <oliver@typo3.org>
Fri, 22 Jun 2018 17:16:40 +0000 (19:16 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Fri, 22 Jun 2018 19:48:39 +0000 (21:48 +0200)
The "ready to publish" workspace state has the internal negative
identifier -10 which is not supported anymore since system fields
are auto-generated and t3ver_stage defined to be of type unsigned
(positive) integer.

Resolves: #85345
Releases: master
Change-Id: I2cb1f3f5bc65ec30fb510c5f2d2f9fbb9e0d55e9
Reviewed-on: https://review.typo3.org/57301
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Aljoscha Weber <aweber@w-commerce.de>
Tested-by: Aljoscha Weber <aweber@w-commerce.de>
Reviewed-by: Jonas Götze <jonnsn@gmail.com>
Tested-by: Jonas Götze <jonnsn@gmail.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php
typo3/sysext/core/Tests/Unit/Database/Schema/DefaultTcaSchemaTest.php

index 4247253..0410abd 100644 (file)
@@ -454,7 +454,7 @@ class DefaultTcaSchema
                     [
                         'default' => 0,
                         'notnull' => true,
-                        'unsigned' => true,
+                        'unsigned' => false,
                     ]
                 );
             }
index 6459f65..e76bac7 100644 (file)
@@ -756,7 +756,7 @@ class DefaultTcaSchemaTest extends UnitTestCase
             [
                 'default' => 0,
                 'notnull' => true,
-                'unsigned' => true,
+                'unsigned' => false,
             ]
         );
         $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_stage'));