J4 Issue ?
avatar mbabker
mbabker
26 Oct 2016

The JSchemaChange* API and its schema validation right now relies on the update SQL files to ensure the database is in an expected state. This API cannot work with a base SQL file which should have the full schema (for an extension this would be their install.sql type files, for core this would be joomla.sql).

Core cannot use joomla.sql for validation because it mixes data and schema, and this SQL lives only in the installation directory so it is not persistent on a site.

Therefore, I propose several things if someone can find time and interest:

  1. Splitting joomla.sql into the base schema itself and data statements
  2. Moving the schema only version of joomla.sql to a location that persists on a site
  3. Improving the schema validation API to be able to take into consideration a base schema file in addition to change deltas as a means for validating the schema is in an expected state
avatar mbabker mbabker - open - 26 Oct 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 26 Oct 2016

1) Splitting joomla.sql into the base schema itself and data statements
2) Moving the schema only version of joomla.sql to a location that persists on a site

Propose moving the joomla db schema part to /administrator/components/com_admin/install/<dbdriver>/schema.sql

avatar brianteeman brianteeman - change - 26 Oct 2016
Category Libraries
avatar zero-24 zero-24 - change - 27 Oct 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 1 Dec 2016
Milestone Added:
avatar brianteeman brianteeman - change - 1 Dec 2016
Labels Removed: ?
avatar brianteeman brianteeman - edited - 1 Dec 2016
avatar joomla-cms-bot joomla-cms-bot - change - 1 Dec 2016
Title
[4.0] Refactor Schema Validation and Management
[4.0] Refactor Schema Validation and Mangement
avatar joomla-cms-bot joomla-cms-bot - edited - 1 Dec 2016
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Title
[4.0] Refactor Schema Validation and Mangement
[4.0] Refactor Schema Validation and Management
Status New Needs Review
avatar joomla-cms-bot joomla-cms-bot - change - 5 Apr 2017
Title
[4.0] Refactor Schema Validation and Mangement
[4.0] Refactor Schema Validation and Management
avatar joomla-cms-bot joomla-cms-bot - unlabeled - 5 Apr 2017
avatar brianteeman brianteeman - change - 25 Apr 2017
Labels Added: ?
avatar brianteeman brianteeman - labeled - 25 Apr 2017
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar mbabker
mbabker - comment - 3 Apr 2018

Already spending too much time on prepared statement on my own, not interested in adding more database tooling in my workload and don't see much interest otherwise.

avatar mbabker mbabker - change - 3 Apr 2018
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2018-04-03 12:31:11
Closed_By mbabker
avatar mbabker mbabker - close - 3 Apr 2018
avatar alikon
alikon - comment - 3 Apr 2018

sorry for not demonstrating interest before now, but this goes out of my radar till now like many others i'm afraid
but yes, it seems like 4 is only focused on frontend stuff no one cares about schema/db's and backend stuffs

Add a Comment

Login with GitHub to post a comment