Skip to content

Commit

Permalink
PostgreSQL and MySQL script for database session table - table name *…
Browse files Browse the repository at this point in the history
…must* be "dmvc_session"
  • Loading branch information
danieleteti committed Jan 15, 2025
1 parent 0cc3738 commit 4bdc4a4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/dmvc_session_dbactiverecord_mysql.sql
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;
7 changes: 7 additions & 0 deletions docs/dmvc_session_dbactiverecord_postgresql.sql
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)
);

0 comments on commit 4bdc4a4

Please sign in to comment.