Skip to content

Commit 296368b

Browse files
committed
Update SQL table creation fields
1 parent 7037a70 commit 296368b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

java/src/org/openqa/selenium/grid/commands/sessionmaps.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,29 @@ java -jar selenium.jar \
1919

2020
The `JdbcBackedSessionMap` uses JDBC to talk to use any supported database for session map store.
2121

22-
The table name used to store sessions is: `sessions_map` It consists of three columns of string datatype: `session_ids`, `session_caps`, `session_uri`
22+
The table name used to store sessions is: `sessions_map`.
23+
It consists of three columns of string datatype: `session_ids`, `session_caps`, `session_uri`, `session_stereotype`, `session_start`
2324

2425
Prerequisites
2526

2627
1. Ensure the appropriate JDBC driver jar is downloaded on the host machine.
2728

28-
2. Ensure the "sessions_map" table with varchar "session_ids", "session_caps" and "session_uri" columns is created in the database.
29+
2. Ensure the "sessions_map" table with varchar "session_ids", "session_caps", "session_uri", "session_stereotype" and "session_start" columns is created in the database.
2930

3031
You can create the required table using something similar to:
3132

3233
```
3334
CREATE TABLE sessions_map(
3435
session_ids varchar(256),
3536
session_caps varchar(1000),
36-
session_uri varchar(256)
37+
session_uri varchar(256),
38+
session_stereotype varchar(1000),
39+
session_start varchar(256)
3740
);
3841
```
3942

4043
Here the size of each column is an arbitrary number. Ensure the datatype and limit matches the selected database. Also, the limit for varchar type should be able to accommodate the
41-
capabilities json stored in "sessions_caps".
44+
capabilities json stored in "session_caps" and stereotype json stored in "session_stereotype".
4245

4346
To start the `JdbcBackedSessionMap`:
4447

0 commit comments

Comments
 (0)