File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
# 相对于原版的改动
2
2
3
3
## init-scripts
4
- 1 . 排除` 00-extensions.sql ` 。(pg_stat_statements默认已安装)
5
- 2 . 修改` 00000000000000-initial-schema.sql `
4
+ 1 . 修改` 00000000000000-initial-schema.sql `
6
5
- ` create user ` 、` create role login ` 必须加密码。(瀚高数据库限制)
7
6
- 注释掉` grant pg_read_all_data to supabase_read_only_user; ` 。(PG12无pg_read_all_data角色)
8
7
- 增加` create extension postgis ` 。(pg_tileserv\pg_featureserv要求)
9
8
- ` anon ` 、` authenticated ` 、` service_role ` 增加` inherit ` 属性。(瀚高数据库限制)
10
9
- ` anon ` 和` authenticated ` 角色的` statement_timeout ` 设置为60s。
11
- 3 . 修改` 00000000000001-auth-schema.sql `
10
+ 2 . 修改` 00000000000001-auth-schema.sql `
12
11
- ` supabase_auth_admin ` 增加密码。(瀚高数据库限制)
13
12
- 增加` GRANT USAGE ON SCHEMA extensions TO supabase_auth_admin; ` 。(为了调用gen_rand_uuid函数)
14
13
- ` search_path ` 增加` extensions ` 。(为了调用gen_rand_uuid函数)
15
- 4 . 修改` 00000000000002-storage-schema.sql `
14
+ 3 . 修改` 00000000000002-storage-schema.sql `
16
15
- ` supabase_storage_admin ` 增加密码。(瀚高数据库限制)
17
16
- 增加` GRANT USAGE ON SCHEMA extensions TO supabase_storage_admin; ` 。(为了调用gen_rand_uuid函数)
18
17
- ` search_path ` 增加` extensions ` 。(为了调用gen_rand_uuid函数)
19
- 5 . 修改` 00000000000003-post-setup.sql `
18
+ 4 . 修改` 00000000000003-post-setup.sql `
20
19
- 注释` GRANT ALL ON DATABASE postgres TO dashboard_user; ` 。(瀚高数据库限制)
21
- 6 . 修改` 99-jwt.sql `
20
+ 5 . 修改` 99-jwt.sql `
22
21
- 增加` db ` 参数。(用来设置数据库名,而不是默认postgres数据库)
23
- 7 . 修改` 99-roles.sql `
24
- - 注释` ALTER USER pgbouncer WITH PASSWORD :'pgpass'; ` 。(无此用户)
25
22
26
23
## migrations
27
24
Original file line number Diff line number Diff line change
6196
101
101
$$;
102
102
103
103
-- Supabase dashboard user
104
- -- CREATE ROLE dashboard_user NOSUPERUSER CREATEDB CREATEROLE REPLICATION;
104
+ CREATE ROLE dashboard_user NOSUPERUSER CREATEDB CREATEROLE REPLICATION;
105
105
-- GRANT ALL ON DATABASE postgres TO dashboard_user;
106
106
GRANT ALL ON SCHEMA auth TO dashboard_user;
107
107
GRANT ALL ON SCHEMA extensions TO dashboard_user;
You can’t perform that action at this time.
0 commit comments