blob: ab6044e3ae2c1e1d465eee89fe1620691288396c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Migration\Attributes;
/**
* enum ColumnType based on OCP\DB\Types
*
* @see \OCP\DB\Types
* @since 30.0.0
*/
enum ColumnType : string {
/** @since 30.0.0 */
case BIGINT = 'bigint';
/** @since 30.0.0 */
case BINARY = 'binary';
/** @since 30.0.0 */
case BLOB = 'blob';
/** @since 30.0.0 */
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 = '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 = '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 = 'datetimetz';
/** @since 30.0.0 */
case DECIMAL = 'decimal';
/** @since 30.0.0 */
case FLOAT = 'float';
/** @since 30.0.0 */
case INTEGER = 'integer';
/** @since 30.0.0 */
case SMALLINT = 'smallint';
/** @since 30.0.0 */
case STRING = 'string';
/** @since 30.0.0 */
case TEXT = 'text';
/** @since 30.0.0 */
case TIME = 'time';
/** @since 30.0.0 */
case JSON = 'json';
}
|