add big filed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user