blob: b2039c4bebaa4a844fbe796eca85df5d3c69c82e (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Updater\Migration;
use Piwik\Updater\Migration;
/**
* Base class for a single database migration. Any database migration must extend this class.
*
* @api
*/
abstract class Db extends Migration
{
/**
* Table '%s' already exists
*/
const ERROR_CODE_TABLE_EXISTS = 1050;
/**
* Unknown table '%s'
*/
const ERROR_CODE_UNKNOWN_TABLE = 1051;
/**
* Unknown column '%s' in '%s'
*/
const ERROR_CODE_UNKNOWN_COLUMN = 1054;
/**
* Duplicate column name '%s'
*/
const ERROR_CODE_DUPLICATE_COLUMN = 1060;
/**
* Duplicate key name '%s'
*/
const ERROR_CODE_DUPLICATE_KEY = 1061;
/**
* Duplicate entry '%s' for key %d
*/
const ERROR_CODE_DUPLICATE_ENTRY = 1062;
/**
* Multiple primary key defined
*/
const ERROR_CODE_DUPLICATE_PRIMARY_KEY = 1068;
/**
* Key column '%s' doesn't exist in table
*/
const ERROR_CODE_KEY_COLUMN_NOT_EXISTS = 1072;
/**
* Can't DROP '%s'; check that column/key exists
*/
const ERROR_CODE_COLUMN_NOT_EXISTS = 1091;
/**
* Table '%s.%s' doesn't exist
*/
const ERROR_CODE_TABLE_NOT_EXISTS = 1146;
/**
* Query execution was interrupted, maximum statement execution time exceeded
*/
const ERROR_CODE_MAX_EXECUTION_TIME_EXCEEDED_QUERY_INTERRUPTED = 3024;
/**
* Sort aborted: Query execution was interrupted, maximum statement execution time exceeded
*/
const ERROR_CODE_MAX_EXECUTION_TIME_EXCEEDED_SORT_ABORTED = 1028;
}
|