-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Modules can't be created #19836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be
"content" text,
|
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?