From c4aa5cdb5e90ad4b420e22772797d16980232a2b Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 15 Apr 2026 18:38:55 +0000
Subject: [PATCH] =Updating custom tables to utilize CustomTable.php
---
inc/registrar/helpers/MakeVerification.php | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/inc/registrar/helpers/MakeVerification.php b/inc/registrar/helpers/MakeVerification.php
index edf6d0e..6574bdb 100644
--- a/inc/registrar/helpers/MakeVerification.php
+++ b/inc/registrar/helpers/MakeVerification.php
@@ -5,6 +5,25 @@
exit;
}
+use JVBase\registrar\Registrar;
+use JVBase\managers\CustomTable;
class MakeVerification {
+ protected CustomTable $table;
+ public function __construct()
+ {
+ $this->defineTables();
+ }
+ protected function defineTables():void
+ {
+ $types = implode(',', array_map(function($item) { return "`{$item}`"; },Registrar::getFeatured('verify_entry')));
+
+ $table = CustomTable::for('verify_entry');
+
+ $table->setColumns([
+ 'id' => 'bigint(20) unsigned NOT NULL AUTO_INCREMENT',
+ 'user_id' => "{$table->getUserIDType()} NOT NULL",
+ 'content'
+ ])
+ }
}
--
Gitblit v1.10.0