add big filed

This commit is contained in:
2026-05-12 14:11:00 +02:00
parent ed67849629
commit 851c9d3674
4 changed files with 80 additions and 14 deletions

View File

@@ -20,7 +20,8 @@ CREATE TABLE wp_go_form_entries (
created_at date DEFAULT CURRENT_TIMESTAMP NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (form_id) REFERENCES wp_go_form_forms(id) ON DELETE CASCADE,
INDEX (form_id)
INDEX (form_id),
INDEX (egd_number)
);
-- ========== Custom Fields Tables ==========
@@ -29,10 +30,11 @@ CREATE TABLE wp_go_form_custom_fields (
id int NOT NULL AUTO_INCREMENT,
form_id int NOT NULL,
field_name varchar(100) NOT NULL,
field_type enum('select','text','checkbox', 'email') NOT NULL DEFAULT 'text',
field_type enum('select','text','checkbox', 'email', 'textarea') NOT NULL DEFAULT 'text',
field_options text,
is_public tinyint(1) NOT NULL DEFAULT 0,
is_required tinyint(1) NOT NULL DEFAULT 0,
is_full_width tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (id),
FOREIGN KEY (form_id) REFERENCES wp_go_form_forms(id) ON DELETE CASCADE,
INDEX (form_id)