Skip to content

Commit 220513c

Browse files
authored
Merge pull request #6 from hackclub/staging
Disable admin on everyone, add super admin system, clear out migrations ahead of coolify deployment
2 parents 965835a + dec9b0f commit 220513c

File tree

11 files changed

+23
-1331
lines changed

11 files changed

+23
-1331
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ APP_SECRET_KEY=changeme
1515
SLACK_BOT_TOKEN=changeme
1616
SLACK_TEAM=T0266FRGM
1717

18+
SUPER_ADMIN_SLACK_ID=changeme
19+
1820
IDV_DOMAIN=account.hackclub.com
1921
IDV_CLIENT_ID=changeme
2022
IDV_CLIENT_SECRET=changeme

drizzle/0000_magical_dreaming_celestial.sql renamed to drizzle/0000_lean_black_bolt.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ CREATE TABLE "user" (
6868
"clay" real DEFAULT 0 NOT NULL,
6969
"brick" real DEFAULT 0 NOT NULL,
7070
"shopScore" real DEFAULT 0 NOT NULL,
71-
"hasSessionAuditLogs" boolean DEFAULT false NOT NULL,
71+
"hasBasePrinter" boolean DEFAULT false NOT NULL,
7272
"hasProjectAuditLogs" boolean DEFAULT false NOT NULL,
7373
"hasT1Review" boolean DEFAULT false NOT NULL,
7474
"hasT2Review" boolean DEFAULT false NOT NULL,
75+
"hasAdmin" boolean DEFAULT false NOT NULL,
7576
"createdAt" timestamp DEFAULT now() NOT NULL,
7677
"lastLoginAt" timestamp DEFAULT now() NOT NULL,
7778
CONSTRAINT "user_idvId_unique" UNIQUE("idvId"),

drizzle/0001_marvelous_human_robot.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

drizzle/0002_elite_morg.sql

Lines changed: 0 additions & 1 deletion
This file was deleted.

drizzle/meta/0000_snapshot.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "dfb546c6-445e-4182-a5fc-a7e86af24239",
2+
"id": "b66eed48-ea19-49f0-9540-11d963c5c5f7",
33
"prevId": "00000000-0000-0000-0000-000000000000",
44
"version": "7",
55
"dialect": "postgresql",
@@ -507,8 +507,8 @@
507507
"notNull": true,
508508
"default": 0
509509
},
510-
"hasSessionAuditLogs": {
511-
"name": "hasSessionAuditLogs",
510+
"hasBasePrinter": {
511+
"name": "hasBasePrinter",
512512
"type": "boolean",
513513
"primaryKey": false,
514514
"notNull": true,
@@ -535,6 +535,13 @@
535535
"notNull": true,
536536
"default": false
537537
},
538+
"hasAdmin": {
539+
"name": "hasAdmin",
540+
"type": "boolean",
541+
"primaryKey": false,
542+
"notNull": true,
543+
"default": false
544+
},
538545
"createdAt": {
539546
"name": "createdAt",
540547
"type": "timestamp",

0 commit comments

Comments
 (0)