Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-09-19 15:19:33 +0300
committerJoas Schilling <coding@schilljs.com>2017-09-19 21:09:10 +0300
commitd5c2b98207378e3dc548fc7290fb0d8ebd27188e (patch)
tree03a098044647a89da2254f110ca8f12be6b4c734 /core/Command/Db/Migrations
parent11d2006b44b7d70e11f74e941de52a41d934d5e0 (diff)
Fix missing "unsigned" on integer columns
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command/Db/Migrations')
-rw-r--r--core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php7
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'
]);