[4.0] Modules can't be created#19836
Conversation
|
Looks good to me. Can you do some update files as well please - I want to start gearing up for a 3.9 alpha 1 where you can upgrade to 4.0 |
|
There is an update file. Only the one for postgres is missing. |
| "title" varchar(100) DEFAULT '' NOT NULL, | ||
| "note" varchar(255) DEFAULT '' NOT NULL, | ||
| "content" text DEFAULT '' NOT NULL, | ||
| "content" text DEFAULT '' NULL, |
There was a problem hiding this comment.
It doesn't make sense to have a default value specified if the field is allowed to be NULL, right?
|
add in administrator/components/com_admin/sql/updates/postgresql/4.0.0-2018-03-05.sql but shouldn't work without #19707 p.s |
|
Thanks @alikon, added the script. Can you double check the changes in the joomla.sql of postgres? Are they ok? |
| "title" varchar(100) DEFAULT '' NOT NULL, | ||
| "note" varchar(255) DEFAULT '' NOT NULL, | ||
| "content" text DEFAULT '' NOT NULL, | ||
| "content" text NULL, |
|
I guess we are here fine. |
|
#19707 apart yes |
|
@laoneo its fine modules |
|
You need to use Alter Column in the mysql change please otherwise the schema checker (https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Schema/ChangeItem/MysqlChangeItem.php) won't pick it up |
|
There is no |
|
OK I'm just being dumb. We also have support for change https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Schema/ChangeItem/MysqlChangeItem.php#L168 But looks like currently it's only going to work for changing column types. Not for swapping things to not null. In fact the "kludge" for integer unsigned is going to trigger with |
|
Isnt this the same as #17752 ?? |
|
Where do we stay here? I think it would be not bad when we release the next alpha to be able to create modules. |
After PR and database fix, the modules table stayed the same. |
It's not possible to create a module in J4. An error is displayed:
Save failed with the following error: Field 'content' doesn't have a default value
I guess it is not required to have a content for the module, so we can remove it from the table structure.
@alikon can you help me out with the update script of postgres?