Skip to content

Commit 4c1abb5

Browse files
authored
Update table names for DFS setup
1 parent 40b74e8 commit 4c1abb5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/infrastructure_and_maintenance/clustering/clustering.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ For production, it's recommended to create the DFS table in its own database, ma
9494
!!! note "dfs_schema.sql (MySQL)"
9595

9696
``` sql
97-
CREATE TABLE ezdfsfile (
97+
CREATE TABLE ibexa_dfs_file (
9898
name text NOT NULL,
9999
name_trunk text NOT NULL,
100100
name_hash varchar(34) NOT NULL DEFAULT '',
@@ -105,17 +105,17 @@ For production, it's recommended to create the DFS table in its own database, ma
105105
expired tinyint(1) NOT NULL DEFAULT '0',
106106
status tinyint(1) NOT NULL DEFAULT '0',
107107
PRIMARY KEY (name_hash),
108-
KEY ezdfsfile_name (name (191)),
109-
KEY ezdfsfile_name_trunk (name_trunk (191)),
110-
KEY ezdfsfile_mtime (mtime),
111-
KEY ezdfsfile_expired_name (expired,name (191))
108+
KEY ibexa_dfs_file_name (name (191)),
109+
KEY ibexa_dfs_file_name_trunk (name_trunk (191)),
110+
KEY ibexa_dfs_file_mtime (mtime),
111+
KEY ibexa_dfs_file_expired_name (expired,name (191))
112112
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
113113
```
114114

115115
!!! note "dfs_schema.sql (PostgreSQL)"
116116

117117
``` sql
118-
CREATE TABLE ezdfsfile (
118+
CREATE TABLE ibexa_dfs_file (
119119
name_hash varchar(34) DEFAULT '' NOT NULL,
120120
name text NOT NULL,
121121
name_trunk text NOT NULL,
@@ -127,13 +127,13 @@ For production, it's recommended to create the DFS table in its own database, ma
127127
status boolean DEFAULT false NOT NULL
128128
);
129129

130-
ALTER TABLE ONLY ezdfsfile
131-
ADD CONSTRAINT ezdfsfile_pkey PRIMARY KEY (name_hash);
130+
ALTER TABLE ONLY ibexa_dfs_file
131+
ADD CONSTRAINT ibexa_dfs_file_pkey PRIMARY KEY (name_hash);
132132

133-
CREATE INDEX ezdfsfile_expired_name ON ezdfsfile USING btree (expired, name);
134-
CREATE INDEX ezdfsfile_mtime ON ezdfsfile USING btree (mtime);
135-
CREATE INDEX ezdfsfile_name ON ezdfsfile USING btree (name);
136-
CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile USING btree (name_trunk);
133+
CREATE INDEX ibexa_dfs_file_expired_name ON ibexa_dfs_file USING btree (expired, name);
134+
CREATE INDEX ibexa_dfs_file_mtime ON ibexa_dfs_file USING btree (mtime);
135+
CREATE INDEX ibexa_dfs_file_name ON ibexa_dfs_file USING btree (name);
136+
CREATE INDEX ibexa_dfs_file_name_trunk ON ibexa_dfs_file USING btree (name_trunk);
137137
```
138138

139139
!!! note

0 commit comments

Comments
 (0)