"Fossies" - the Fresh Open Source Software Archive

Member "administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-10-17.sql" (13 Sep 2021, 1085 Bytes) of package /linux/www/Joomla_4.0.3-Stable-Full_Package.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PL/SQL source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 -- From 4.0.0-2019-10-13.sql
    2 UPDATE "#__content_types"
    3    SET "field_mappings" = REPLACE("field_mappings",'"core_created_time":"registerdate"','"core_created_time":"registerDate"')
    4  WHERE "type_alias" = 'com_users.user';
    5 
    6 -- From 4.0.0-2019-10-17.sql
    7 ALTER TABLE "#__users" ALTER COLUMN "registerDate" DROP DEFAULT;
    8 
    9 ALTER TABLE "#__users" ALTER COLUMN "lastvisitDate" DROP NOT NULL;
   10 ALTER TABLE "#__users" ALTER COLUMN "lastvisitDate" DROP DEFAULT;
   11 
   12 ALTER TABLE "#__users" ALTER COLUMN "lastResetTime" DROP NOT NULL;
   13 ALTER TABLE "#__users" ALTER COLUMN "lastResetTime" DROP DEFAULT;
   14 
   15 UPDATE "#__users" SET "registerDate" = '1980-01-01 00:00:00' WHERE "registerDate" = '1970-01-01 00:00:00';
   16 UPDATE "#__users" SET "lastvisitDate" = NULL WHERE "lastvisitDate" = '1970-01-01 00:00:00';
   17 UPDATE "#__users" SET "lastResetTime" = NULL WHERE "lastResetTime" = '1970-01-01 00:00:00';
   18 
   19 UPDATE "#__content_types"
   20    SET "field_mappings" = REPLACE("field_mappings",'"core_modified_time":"lastvisitDate"','"core_modified_time":"null"')
   21  WHERE "type_alias" = 'com_users.user';