Skip to content

Commit 69c7f65

Browse files
authored
rbac: order columns for migration (sourcegraph#48001)
Adds an explicit order to the columns for the roles insert statement to improve robustness when running migrations up and down.
1 parent c70e9f8 commit 69c7f65

File tree

1 file changed

+1
-1
lines changed
  • migrations/frontend/1671543381_add_default_roles

1 file changed

+1
-1
lines changed

migrations/frontend/1671543381_add_default_roles/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- system roles that come with every sourcegraph instance
22
INSERT INTO
3-
roles
3+
roles (id, name, created_at, deleted_at, readonly)
44
VALUES
55
(1, 'USER', '2023-01-04 16:29:41.195966+00', NULL, TRUE),
66
(2, 'SITE_ADMINISTRATOR', '2023-01-04 16:29:41.195966+00', NULL, TRUE)

0 commit comments

Comments
 (0)