| 1 |
<?php |
| 2 |
|
| 3 |
namespace BitCode\BitForm\Core\Fallback; |
| 4 |
|
| 5 |
use BitCode\BitForm\Core\Database\DB; |
| 6 |
|
| 7 |
/** |
| 8 |
* Init-time schema guard for columns the FRONTEND read path depends on. |
| 9 |
* |
| 10 |
*/ |
| 11 |
class SchemaFallback |
| 12 |
{ |
| 13 |
public function ensureEmailTemplateStatusColumn() |
| 14 |
{ |
| 15 |
DB::ensureEmailTemplateStatusColumn(); |
| 16 |
} |
| 17 |
|
| 18 |
public function ensureWorkflowCategoryColumn() |
| 19 |
{ |
| 20 |
DB::ensureWorkflowCategoryColumn(); |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* Repair every workflows column the read path needs (order/info/category/status). |
| 25 |
* |
| 26 |
* @return bool |
| 27 |
*/ |
| 28 |
public function ensureWorkflowSchema() |
| 29 |
{ |
| 30 |
return DB::ensureWorkflowSchema(); |
| 31 |
} |
| 32 |
} |
| 33 |
|