mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
Persisting presets defined with prebuilds to DB
Signed-off-by: Danny Kopping <danny@coder.com>
This commit is contained in:
6
coderd/database/migrations/000292_system_user.up.sql
Normal file
6
coderd/database/migrations/000292_system_user.up.sql
Normal file
@ -0,0 +1,6 @@
|
||||
ALTER TABLE users
|
||||
ADD COLUMN is_system bool DEFAULT false;
|
||||
|
||||
CREATE INDEX user_is_system_idx ON users USING btree (is_system);
|
||||
|
||||
COMMENT ON COLUMN users.is_system IS 'Determines if a user is a system user, and therefore cannot login or perform normal actions';
|
Reference in New Issue
Block a user