Files
opensourcepos/app/Database/Migrations/sqlscripts/3.4.0_ci4_conversion.sql
objecttothis 7b224be665 PSR compliance and formatting changes
- Replaced TRUE/FALSE constants with true/false keywords
- Replaced NULL constant with null keyword
- Replaced `<?php echo` in views with shortened `<?=`
- Added missing variable declaration
- Added missing function return type in declaration
- replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
2024-06-15 17:19:15 +02:00

13 lines
336 B
SQL

DROP TABLE `ospos_sessions`;
CREATE TABLE IF NOT EXISTS `ospos_sessions` (
`id` varchar(128) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL,
`data` blob NOT NULL,
KEY `ospos_sessions_timestamp` (`timestamp`)
);
ALTER TABLE ospos_sessions ADD PRIMARY KEY (id, ip_address);