| @@ 26-43 (lines=18) @@ | ||
| 23 | * |
|
| 24 | * @param Schema $schema |
|
| 25 | */ |
|
| 26 | public static function createCallDirectionTranslationTable(Schema $schema) |
|
| 27 | { |
|
| 28 | /** Generate table orocrm_call_direction_trans **/ |
|
| 29 | $table = $schema->createTable('orocrm_call_direction_trans'); |
|
| 30 | $table->addColumn('id', 'integer', array('autoincrement' => true)); |
|
| 31 | $table->addColumn('foreign_key', 'string', array('length' => 32)); |
|
| 32 | $table->addColumn('content', 'string', array('length' => 255)); |
|
| 33 | $table->addColumn('locale', 'string', array('length' => 8)); |
|
| 34 | $table->addColumn('object_class', 'string', array('length' => 255)); |
|
| 35 | $table->addColumn('field', 'string', array('length' => 32)); |
|
| 36 | $table->setPrimaryKey(array('id')); |
|
| 37 | $table->addIndex( |
|
| 38 | array('locale', 'object_class', 'field', 'foreign_key'), |
|
| 39 | 'call_direction_translation_idx', |
|
| 40 | array() |
|
| 41 | ); |
|
| 42 | /** End of generate table orocrm_call_direction_trans **/ |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Generate table orocrm_call_status_trans |
|
| @@ 50-67 (lines=18) @@ | ||
| 47 | * |
|
| 48 | * @param Schema $schema |
|
| 49 | */ |
|
| 50 | public static function createCallStatusTranslationTable(Schema $schema) |
|
| 51 | { |
|
| 52 | /** Generate table orocrm_call_status_trans **/ |
|
| 53 | $table = $schema->createTable('orocrm_call_status_trans'); |
|
| 54 | $table->addColumn('id', 'integer', array('autoincrement' => true)); |
|
| 55 | $table->addColumn('foreign_key', 'string', array('length' => 32)); |
|
| 56 | $table->addColumn('content', 'string', array('length' => 255)); |
|
| 57 | $table->addColumn('locale', 'string', array('length' => 8)); |
|
| 58 | $table->addColumn('object_class', 'string', array('length' => 255)); |
|
| 59 | $table->addColumn('field', 'string', array('length' => 32)); |
|
| 60 | $table->setPrimaryKey(array('id')); |
|
| 61 | $table->addIndex( |
|
| 62 | array('locale', 'object_class', 'field', 'foreign_key'), |
|
| 63 | 'call_status_translation_idx', |
|
| 64 | array() |
|
| 65 | ); |
|
| 66 | /** End of generate table orocrm_call_status_trans **/ |
|
| 67 | } |
|
| 68 | } |
|
| 69 | ||
| @@ 129-144 (lines=16) @@ | ||
| 126 | * |
|
| 127 | * @param Schema $schema |
|
| 128 | */ |
|
| 129 | public static function createOrocrmCaseSourceTranslationTable(Schema $schema) |
|
| 130 | { |
|
| 131 | $table = $schema->createTable('orocrm_case_source_trans'); |
|
| 132 | $table->addColumn('id', 'integer', ['autoincrement' => true]); |
|
| 133 | $table->addColumn('foreign_key', 'string', ['length' => 16]); |
|
| 134 | $table->addColumn('content', 'string', ['length' => 255]); |
|
| 135 | $table->addColumn('locale', 'string', ['length' => 8]); |
|
| 136 | $table->addColumn('object_class', 'string', ['length' => 255]); |
|
| 137 | $table->addColumn('field', 'string', ['length' => 32]); |
|
| 138 | $table->setPrimaryKey(['id']); |
|
| 139 | $table->addIndex( |
|
| 140 | ['locale', 'object_class', 'field', 'foreign_key'], |
|
| 141 | 'case_source_translation_idx', |
|
| 142 | [] |
|
| 143 | ); |
|
| 144 | } |
|
| 145 | ||
| 146 | /** |
|
| 147 | * Create orocrm_case_status table |
|
| @@ 165-180 (lines=16) @@ | ||
| 162 | * |
|
| 163 | * @param Schema $schema |
|
| 164 | */ |
|
| 165 | public static function createOrocrmCaseStatusTranslationTable(Schema $schema) |
|
| 166 | { |
|
| 167 | $table = $schema->createTable('orocrm_case_status_trans'); |
|
| 168 | $table->addColumn('id', 'integer', ['autoincrement' => true]); |
|
| 169 | $table->addColumn('foreign_key', 'string', ['length' => 16]); |
|
| 170 | $table->addColumn('content', 'string', ['length' => 255]); |
|
| 171 | $table->addColumn('locale', 'string', ['length' => 8]); |
|
| 172 | $table->addColumn('object_class', 'string', ['length' => 255]); |
|
| 173 | $table->addColumn('field', 'string', ['length' => 32]); |
|
| 174 | $table->setPrimaryKey(['id']); |
|
| 175 | $table->addIndex( |
|
| 176 | ['locale', 'object_class', 'field', 'foreign_key'], |
|
| 177 | 'case_status_translation_idx', |
|
| 178 | [] |
|
| 179 | ); |
|
| 180 | } |
|
| 181 | ||
| 182 | /** |
|
| 183 | * Create orocrm_case_priority table |
|
| @@ 201-216 (lines=16) @@ | ||
| 198 | * |
|
| 199 | * @param Schema $schema |
|
| 200 | */ |
|
| 201 | public static function createOrocrmCasePriorityTranslationTable(Schema $schema) |
|
| 202 | { |
|
| 203 | $table = $schema->createTable('orocrm_case_priority_trans'); |
|
| 204 | $table->addColumn('id', 'integer', ['autoincrement' => true]); |
|
| 205 | $table->addColumn('foreign_key', 'string', ['length' => 16]); |
|
| 206 | $table->addColumn('content', 'string', ['length' => 255]); |
|
| 207 | $table->addColumn('locale', 'string', ['length' => 8]); |
|
| 208 | $table->addColumn('object_class', 'string', ['length' => 255]); |
|
| 209 | $table->addColumn('field', 'string', ['length' => 32]); |
|
| 210 | $table->setPrimaryKey(['id']); |
|
| 211 | $table->addIndex( |
|
| 212 | ['locale', 'object_class', 'field', 'foreign_key'], |
|
| 213 | 'case_priority_translation_idx', |
|
| 214 | [] |
|
| 215 | ); |
|
| 216 | } |
|
| 217 | ||
| 218 | /** |
|
| 219 | * Create orocrm_case_comment table |
|
| @@ 75-92 (lines=18) @@ | ||
| 72 | * |
|
| 73 | * @param Schema $schema |
|
| 74 | */ |
|
| 75 | public static function createCaseSourceTranslationTable(Schema $schema) |
|
| 76 | { |
|
| 77 | /** Generate table orocrm_case_source_trans **/ |
|
| 78 | $table = $schema->createTable('orocrm_case_source_trans'); |
|
| 79 | $table->addColumn('id', 'integer', array('autoincrement' => true)); |
|
| 80 | $table->addColumn('foreign_key', 'string', array('length' => 16)); |
|
| 81 | $table->addColumn('content', 'string', array('length' => 255)); |
|
| 82 | $table->addColumn('locale', 'string', array('length' => 8)); |
|
| 83 | $table->addColumn('object_class', 'string', array('length' => 255)); |
|
| 84 | $table->addColumn('field', 'string', array('length' => 32)); |
|
| 85 | $table->setPrimaryKey(array('id')); |
|
| 86 | $table->addIndex( |
|
| 87 | array('locale', 'object_class', 'field', 'foreign_key'), |
|
| 88 | 'case_source_translation_idx', |
|
| 89 | array() |
|
| 90 | ); |
|
| 91 | /** End of generate table orocrm_case_source_trans **/ |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * @param Schema $schema |
|
| @@ 111-128 (lines=18) @@ | ||
| 108 | * |
|
| 109 | * @param Schema $schema |
|
| 110 | */ |
|
| 111 | public static function createCaseStatusTranslationTable(Schema $schema) |
|
| 112 | { |
|
| 113 | /** Generate table orocrm_case_status_trans **/ |
|
| 114 | $table = $schema->createTable('orocrm_case_status_trans'); |
|
| 115 | $table->addColumn('id', 'integer', array('autoincrement' => true)); |
|
| 116 | $table->addColumn('foreign_key', 'string', array('length' => 16)); |
|
| 117 | $table->addColumn('content', 'string', array('length' => 255)); |
|
| 118 | $table->addColumn('locale', 'string', array('length' => 8)); |
|
| 119 | $table->addColumn('object_class', 'string', array('length' => 255)); |
|
| 120 | $table->addColumn('field', 'string', array('length' => 32)); |
|
| 121 | $table->setPrimaryKey(array('id')); |
|
| 122 | $table->addIndex( |
|
| 123 | array('locale', 'object_class', 'field', 'foreign_key'), |
|
| 124 | 'case_status_translation_idx', |
|
| 125 | array() |
|
| 126 | ); |
|
| 127 | /** End of generate table orocrm_case_status_trans **/ |
|
| 128 | } |
|
| 129 | ||
| 130 | /** |
|
| 131 | * @param Schema $schema |
|
| @@ 147-164 (lines=18) @@ | ||
| 144 | * |
|
| 145 | * @param Schema $schema |
|
| 146 | */ |
|
| 147 | public static function createCasePriorityTranslationTable(Schema $schema) |
|
| 148 | { |
|
| 149 | /** Generate table orocrm_case_priority_trans **/ |
|
| 150 | $table = $schema->createTable('orocrm_case_priority_trans'); |
|
| 151 | $table->addColumn('id', 'integer', array('autoincrement' => true)); |
|
| 152 | $table->addColumn('foreign_key', 'string', array('length' => 16)); |
|
| 153 | $table->addColumn('content', 'string', array('length' => 255)); |
|
| 154 | $table->addColumn('locale', 'string', array('length' => 8)); |
|
| 155 | $table->addColumn('object_class', 'string', array('length' => 255)); |
|
| 156 | $table->addColumn('field', 'string', array('length' => 32)); |
|
| 157 | $table->setPrimaryKey(array('id')); |
|
| 158 | $table->addIndex( |
|
| 159 | array('locale', 'object_class', 'field', 'foreign_key'), |
|
| 160 | 'case_priority_translation_idx', |
|
| 161 | array() |
|
| 162 | ); |
|
| 163 | /** End of generate table orocrm_case_priority_trans **/ |
|
| 164 | } |
|
| 165 | ||
| 166 | /** |
|
| 167 | * @param Schema $schema |
|