-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.php
28 lines (23 loc) · 1014 Bytes
/
install.php
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
<?php
rex_sql_table::get(rex::getTable('synchronisation'))
->ensurePrimaryIdColumn()
->ensureColumn(new rex_sql_column('identifier', 'VARCHAR(255)', true))
->ensureColumn(new rex_sql_column('name', 'VARCHAR(255)', true))
->ensureColumn(new rex_sql_column('info', 'TEXT', true))
->ensureColumn(new rex_sql_column('active', 'tinyint(1)', true))
->ensureColumn(new rex_sql_column('Status', 'VARCHAR(255)', true))
->ensureColumn(new rex_sql_column('customer', 'VARCHAR(255)', true))
->ensureColumn(new rex_sql_column('user_id', 'INTEGER', true))
->ensureColumn(new rex_sql_column('moco_id', 'INTEGER', true))
->ensureColumn(new rex_sql_column('trello_cardId', 'VARCHAR(255)', true))
->ensure();
if (!$this->hasConfig()) {
}
$somethingIsWrong = false;
if ($somethingIsWrong) {
throw new rex_functional_exception('Something is wrong');
}
if ($somethingIsWrong) {
$this->setProperty('installmsg', 'Something is wrong');
$this->setProperty('install', false);
}