?
avatar waader
waader
8 Jan 2017

Steps to reproduce the issue

You will get:
515 [Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'core_xreference', table 'joomla35.dbo.#__ucm_content'; column does not allow nulls. INSERT fails.

Expected result

Actual result

System information (as much as possible)

Additional comments

avatar waader waader - open - 8 Jan 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jan 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Jan 2017
avatar andrepereiradasilva
andrepereiradasilva - comment - 8 Jan 2017

this https://github.com/joomla/joomla-cms/blob/staging/installation/sql/sqlazure/joomla.sql#L2883 needs a defaultt value.
Similiar to this one https://github.com/joomla/joomla-cms/pull/13035/files (in this case was mysql).

bottom line is all db systems (mysql, postgresql, sqlazure) need to have a default value in the db table columns when they are set as NOT NULL, normally DEFAULT '' for strings and DEFAULT 0 for integers.

What needs to be done in this cases:

  • Add the default value to the joomla.sql installation file for each of the 3 database systems (if they all need)
  • Add 1 update files for each of the 3 database systems (if they all need)

This particular case:

So you need to change the mysql and sqlazure joomla.sql file to have DEFAULT '' in the core_xreference and make update sqls for mysql and sqlzaure.

avatar waader
waader - comment - 8 Jan 2017

Thanks for your explanation: With this default value it would work:
[core_xreference] nvarchar NOT NULL DEFAULT '',

avatar andrepereiradasilva
andrepereiradasilva - comment - 8 Jan 2017

ok i'm doing a PR to normalize those values in ucm_content table

avatar andrepereiradasilva
andrepereiradasilva - comment - 8 Jan 2017

Please test #13513

avatar zero-24 zero-24 - change - 8 Jan 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-01-08 15:00:29
Closed_By zero-24
avatar zero-24 zero-24 - close - 8 Jan 2017

Add a Comment

Login with GitHub to post a comment