Skip to content

Commit

Permalink
rbac: order columns for migration (sourcegraph#48001)
Browse files Browse the repository at this point in the history
Adds an explicit order to the columns for the roles insert statement to improve robustness when running migrations up and down.
  • Loading branch information
courier-new committed Feb 22, 2023
1 parent c70e9f8 commit 69c7f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/frontend/1671543381_add_default_roles/up.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- system roles that come with every sourcegraph instance
INSERT INTO
roles
roles (id, name, created_at, deleted_at, readonly)
VALUES
(1, 'USER', '2023-01-04 16:29:41.195966+00', NULL, TRUE),
(2, 'SITE_ADMINISTRATOR', '2023-01-04 16:29:41.195966+00', NULL, TRUE)
Expand Down

0 comments on commit 69c7f65

Please sign in to comment.