Skip to content

Commit

Permalink
update core statement
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Nov 27, 2016
1 parent 4b56259 commit 0930640
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
-- Add core field to extensions table.
ALTER TABLE `#__extensions` MODIFY `protected` tinyint(3) NOT NULL DEFAULT 0 COMMENT 'Flag to indicate if the extension can be enabled/disabled.',
ALTER TABLE `#__extensions` ADD COLUMN `core` tinyint(3) NOT NULL DEFAULT 0 COMMENT 'Flag to indicate if is a Joomla core extension. Core extensions can not be uninstalled.',

UPDATE `#__extensions`
SET `core` = 1
WHERE `element` IN ();
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ ALTER TABLE "#__extensions" ADD COLUMN "core" smallint DEFAULT 0 NOT NULL;

COMMENT ON COLUMN "#__extensions"."protected" IS 'Flag to indicate if the extension can be enabled/disabled.';
COMMENT ON COLUMN "#__extensions"."core" IS 'Flag to indicate if is a Joomla core extension. Core extensions can not be uninstalled.';

UPDATE "#__extensions"
SET "core" = 1
WHERE "element" IN ();
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
-- Add core field to extensions table.
ALTER TABLE [#__extensions] ADD [core] [smallint] NOT NULL DEFAULT 0;

UPDATE [#__extensions]
SET [core] = 1
WHERE [element] IN ();

0 comments on commit 0930640

Please sign in to comment.