Files
opensourcepos/application/migrations/sqlscripts/3.2.0_to_3.2.1.sql
2018-04-29 14:13:00 +01:00

16 lines
484 B
SQL

--
-- Add support for GDPR utility
--
-- Add columns to customer table for tracking purposes and explicit consent of data registration
ALTER TABLE `ospos_customers`
ADD COLUMN `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN `employee_id` int(10) NOT NULL,
ADD COLUMN `consent` int(1) NOT NULL DEFAULT '0';
-- This is to enforce privacy by means of scrambling customer details
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('enforce_privacy', '0');