diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-20 11:55:14 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-10-17 18:31:44 +0200 |
commit | e314d521184514aca4d36c264995d728b04b2f49 (patch) | |
tree | ec64afc6f78c904104706ec40e7cfeeed506b21c /lib/public | |
parent | ee02e3246dc18a6390cd9fbfd7b66f441e71ccc1 (diff) | |
download | nextcloud-server-e314d521184514aca4d36c264995d728b04b2f49.tar.gz nextcloud-server-e314d521184514aca4d36c264995d728b04b2f49.zip |
fix: Adjust parameter type usage and add SQLite support
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Migration/Attributes/ColumnType.php | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/lib/public/Migration/Attributes/ColumnType.php b/lib/public/Migration/Attributes/ColumnType.php index 57bea920763..ab6044e3ae2 100644 --- a/lib/public/Migration/Attributes/ColumnType.php +++ b/lib/public/Migration/Attributes/ColumnType.php @@ -8,8 +8,6 @@ declare(strict_types=1); */ namespace OCP\Migration\Attributes; -use OCP\DB\Types; - /** * enum ColumnType based on OCP\DB\Types * @@ -18,45 +16,45 @@ use OCP\DB\Types; */ enum ColumnType : string { /** @since 30.0.0 */ - case BIGINT = Types::BIGINT; + case BIGINT = 'bigint'; /** @since 30.0.0 */ - case BINARY = Types::BINARY; + case BINARY = 'binary'; /** @since 30.0.0 */ - case BLOB = Types::BLOB; + case BLOB = 'blob'; /** @since 30.0.0 */ - case BOOLEAN = Types::BOOLEAN; + case BOOLEAN = 'boolean'; /** * A column created with `DATE` can be used for both `DATE` and `DATE_IMMUTABLE` * on the `\OCP\AppFramework\Db\Entity`. * @since 30.0.0 */ - case DATE = Types::DATE; + case DATE = 'date'; /** * A column created with `DATETIME` can be used for both `DATETIME` and `DATETIME_IMMUTABLE` * on the `\OCP\AppFramework\Db\Entity`. * @since 30.0.0 */ - case DATETIME = Types::DATETIME; + case DATETIME = 'datetime'; /** * A column created with `DATETIME_TZ` can be used for both `DATETIME_TZ` and `DATETIME_TZ_IMMUTABLE` * on the `\OCP\AppFramework\Db\Entity`. * @since 31.0.0 */ - case DATETIME_TZ = Types::DATETIME_TZ; + case DATETIME_TZ = 'datetimetz'; /** @since 30.0.0 */ - case DECIMAL = Types::DECIMAL; + case DECIMAL = 'decimal'; /** @since 30.0.0 */ - case FLOAT = Types::FLOAT; + case FLOAT = 'float'; /** @since 30.0.0 */ - case INTEGER = Types::INTEGER; + case INTEGER = 'integer'; /** @since 30.0.0 */ - case SMALLINT = Types::SMALLINT; + case SMALLINT = 'smallint'; /** @since 30.0.0 */ - case STRING = Types::STRING; + case STRING = 'string'; /** @since 30.0.0 */ - case TEXT = Types::TEXT; + case TEXT = 'text'; /** @since 30.0.0 */ - case TIME = Types::TIME; + case TIME = 'time'; /** @since 30.0.0 */ - case JSON = Types::JSON; + case JSON = 'json'; } |