Skip to content

Commit

Permalink
set the ordering to the itemid on update
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Jul 13, 2023
1 parent 70bd691 commit ec76eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ALTER TABLE `#__menu_types` ADD COLUMN `ordering` int NOT NULL DEFAULT 0 AFTER `client_id`;
UPDATE `#__menu_types` SET `ordering` = `id` WHERE `client_id` = 0;
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ALTER TABLE "#__menu_types" ADD COLUMN "ordering" int NOT NULL DEFAULT 0 AFTER "client_id";
UPDATE "#__menu_types" SET "ordering" = "id" WHERE "client_id" = 0;

0 comments on commit ec76eff

Please sign in to comment.