mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-04 15:37:55 -05:00
- Added conversion to migration file for delimiter in image_allowed_types - Corrected business logic for image upload in items form. - Removed log message used for debugging. - Replaced '|' with ',' in image_allowed_types save/populate.
17 lines
439 B
SQL
17 lines
439 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);
|
|
|
|
UPDATE `ospos_app_config`
|
|
SET `value` = REPLACE(value, '|', ',')
|
|
WHERE `key` = 'image_allowed_types';
|