diff --git a/administrator/components/com_admin/sql/updates/mysql/5.3.0-2024-12-23.sql b/administrator/components/com_admin/sql/updates/mysql/5.3.0-2024-12-23.sql new file mode 100644 index 0000000000000..595576a6389d2 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/mysql/5.3.0-2024-12-23.sql @@ -0,0 +1,2 @@ +ALTER TABLE `#__assets` MODIFY `name` varchar(255) NOT NULL; +ALTER TABLE `#__assets` MODIFY `title` varchar(255) NOT NULL; \ No newline at end of file diff --git a/administrator/components/com_admin/sql/updates/postgresql/5.3.0-2024-12-23.sql b/administrator/components/com_admin/sql/updates/postgresql/5.3.0-2024-12-23.sql new file mode 100644 index 0000000000000..13e61fdc52d13 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/postgresql/5.3.0-2024-12-23.sql @@ -0,0 +1,2 @@ +ALTER TABLE "#__assets" ALTER COLUMN "name" TYPE varchar(255) NOT NULL; +ALTER TABLE "#__assets" ALTER COLUMN "title" TYPE varchar(255) NOT NULL; \ No newline at end of file diff --git a/installation/sql/mysql/base.sql b/installation/sql/mysql/base.sql index afa2ca94d1577..32c50901ea0b5 100644 --- a/installation/sql/mysql/base.sql +++ b/installation/sql/mysql/base.sql @@ -11,8 +11,8 @@ CREATE TABLE IF NOT EXISTS `#__assets` ( `lft` int NOT NULL DEFAULT 0 COMMENT 'Nested set lft.', `rgt` int NOT NULL DEFAULT 0 COMMENT 'Nested set rgt.', `level` int unsigned NOT NULL COMMENT 'The cached level in the nested tree.', - `name` varchar(50) NOT NULL COMMENT 'The unique name for the asset.', - `title` varchar(100) NOT NULL COMMENT 'The descriptive title for the asset.', + `name` varchar(255) NOT NULL COMMENT 'The unique name for the asset.', + `title` varchar(255) NOT NULL COMMENT 'The descriptive title for the asset.', `rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.', PRIMARY KEY (`id`), UNIQUE KEY `idx_asset_name` (`name`), diff --git a/installation/sql/postgresql/base.sql b/installation/sql/postgresql/base.sql index 7d89b0cf41c98..f386cecc6292f 100644 --- a/installation/sql/postgresql/base.sql +++ b/installation/sql/postgresql/base.sql @@ -8,8 +8,8 @@ CREATE TABLE IF NOT EXISTS "#__assets" ( "lft" bigint DEFAULT 0 NOT NULL, "rgt" bigint DEFAULT 0 NOT NULL, "level" integer NOT NULL, - "name" varchar(50) NOT NULL, - "title" varchar(100) NOT NULL, + "name" varchar(255) NOT NULL, + "title" varchar(255) NOT NULL, "rules" varchar(5120) NOT NULL, PRIMARY KEY ("id"), CONSTRAINT "#__assets_idx_asset_name" UNIQUE ("name")