diff options
author | Joas Schilling <coding@schilljs.com> | 2017-09-19 14:19:33 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-09-19 20:09:10 +0200 |
commit | d5c2b98207378e3dc548fc7290fb0d8ebd27188e (patch) | |
tree | 03a098044647a89da2254f110ca8f12be6b4c734 /core/Command | |
parent | 11d2006b44b7d70e11f74e941de52a41d934d5e0 (diff) | |
download | nextcloud-server-d5c2b98207378e3dc548fc7290fb0d8ebd27188e.tar.gz nextcloud-server-d5c2b98207378e3dc548fc7290fb0d8ebd27188e.zip |
Fix missing "unsigned" on integer columns
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php b/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php index 54a4d95738e..4f888b38a14 100644 --- a/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php +++ b/core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php @@ -139,6 +139,13 @@ EOT EOT ); } + if ($column->getUnsigned()) { + $content .= <<<'EOT' + 'unsigned' => true, + +EOT; + } + $content .= <<<'EOT' ]); |