-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PostgreSQL and MySQL script for database session table - table name *…
…must* be "dmvc_session"
- Loading branch information
1 parent
0cc3738
commit 4bdc4a4
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- mydb.sessions definition | ||
|
||
CREATE TABLE `dmvc_sessions` ( | ||
`session_id` varchar(100) NOT NULL, | ||
`session_data` longtext NOT NULL, | ||
`session_expiration` timestamp, | ||
`session_created_at` timestamp NOT NULL DEFAULT current_timestamp(), | ||
PRIMARY KEY (`session_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE TABLE dmvc_sessions ( | ||
session_id varchar(100) NOT NULL, | ||
session_data varchar NOT NULL, | ||
session_expiration timestamp, | ||
session_created_at timestamp NOT NULL DEFAULT current_timestamp, | ||
PRIMARY KEY (session_id) | ||
); |