Skip to content

Commit 7fa8cba

Browse files
committed
[BUGFIX] Remove "NOT NULL" annotation from text fields
Seems that TYPO3 also does not use it for "text" fields Related: #1342
1 parent af4c06d commit 7fa8cba

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ext_tables.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ CREATE TABLE tx_powermail_domain_model_field (
3232
page int(11) unsigned DEFAULT '0' NOT NULL,
3333
title varchar(255) DEFAULT '' NOT NULL,
3434
type varchar(255) DEFAULT '' NOT NULL,
35-
settings text NOT NULL,
35+
settings text,
3636
path varchar(255) DEFAULT '' NOT NULL,
3737
content_element int(11) DEFAULT '0' NOT NULL,
38-
text text NOT NULL,
39-
prefill_value text NOT NULL,
40-
placeholder text NOT NULL,
41-
placeholder_repeat text NOT NULL,
42-
create_from_typoscript text NOT NULL,
38+
text text,
39+
prefill_value text,
40+
placeholder text,
41+
placeholder_repeat text,
42+
create_from_typoscript text,
4343
validation int(11) DEFAULT '0' NOT NULL,
4444
validation_configuration varchar(255) DEFAULT '' NOT NULL,
4545
css varchar(255) DEFAULT '' NOT NULL,
@@ -73,10 +73,10 @@ CREATE TABLE tx_powermail_domain_model_mail (
7373
sender_mail varchar(255) DEFAULT '' NOT NULL,
7474
subject varchar(255) DEFAULT '' NOT NULL,
7575
receiver_mail varchar(1024) DEFAULT '' NOT NULL,
76-
body text NOT NULL,
76+
body text,
7777
feuser int(11) DEFAULT '0' NOT NULL,
7878
sender_ip tinytext NOT NULL,
79-
user_agent text NOT NULL,
79+
user_agent text,
8080
time int(11) DEFAULT '0' NOT NULL,
8181
form int(11) DEFAULT '0' NOT NULL,
8282
answers int(11) unsigned DEFAULT '0' NOT NULL,
@@ -99,7 +99,7 @@ CREATE TABLE tx_powermail_domain_model_mail (
9999
CREATE TABLE tx_powermail_domain_model_answer (
100100
mail int(11) unsigned DEFAULT '0' NOT NULL,
101101

102-
value text NOT NULL,
102+
value text,
103103
value_type int(11) unsigned DEFAULT '0' NOT NULL,
104104
field int(11) unsigned DEFAULT '0' NOT NULL,
105105

0 commit comments

Comments
 (0)