+1
Taskfile.yml
+1
Taskfile.yml
+2
priv/sql/clean_users.sql
+2
priv/sql/clean_users.sql
+39
taskfiles/DevTasks.yml
+39
taskfiles/DevTasks.yml
···
1
+
version: "3"
2
+
3
+
tasks:
4
+
rebuild-empty:
5
+
desc: ๏ Rebuild the database empty
6
+
cmds:
7
+
- psql $DATABASE_URL -f priv/sql/drop.sql
8
+
- psql $DATABASE_URL -f priv/sql/create/tables.sql
9
+
- psql $DATABASE_URL -f priv/sql/create/triggers.sql
10
+
- psql $DATABASE_URL -f priv/sql/create/functions.sql
11
+
- psql $DATABASE_URL -f priv/sql/create/views.sql
12
+
13
+
rebuild-dummy:
14
+
desc: ๏ Rebuild the database with mock data
15
+
cmds:
16
+
- task: rebuild-empty
17
+
- task: seed
18
+
19
+
clean_users:
20
+
desc: ๎ฎ Delete all users execpt for the default one
21
+
cmd: psql $DATABASE_URL -f priv/sql/clean_users.sql
22
+
23
+
list-users:
24
+
desc: ๓ฐ List all registred users
25
+
cmd: psql $DATABASE_URL -f priv/sql/query/dev_list_user_accounts.sql
26
+
27
+
list-brigades:
28
+
desc: ๓ฐ List all registred brigades
29
+
cmd: psql $DATABASE_URL -f priv/sql/query/dev_list_brigades.sql
30
+
31
+
dummy:
32
+
internal: true
33
+
desc: ๓ฐฉ Generate Mock data
34
+
cmd: gleam dev -- dummy
35
+
36
+
seed:
37
+
internal: true
38
+
desc: ๎ถง Setup the first admin
39
+
cmd: gleam dev -- admin
+1
-1
taskfiles/GleamTasks.yml
+1
-1
taskfiles/GleamTasks.yml
taskfiles/PostgreTasks.yml
taskfiles/PostgreTasks.yml
This is a binary file and will not be displayed.