support soft delete of clients (includes database upgrade patch)

This commit is contained in:
Keith Woodlock
2012-07-24 16:12:19 +01:00
parent 2527563841
commit b5a4f9a206
7 changed files with 54 additions and 21 deletions
@@ -196,6 +196,7 @@ CREATE TABLE `admin_appuser_role` (
-- DDL for portfolio tables
CREATE TABLE `portfolio_client` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`is_deleted` tinyint(1) NOT NULL DEFAULT 0,
`office_id` bigint(20) NOT NULL,
`external_id` varchar(100) DEFAULT NULL,
`firstname` varchar(50) DEFAULT NULL,
@@ -0,0 +1,3 @@
-- add soft delete flag for clients
ALTER TABLE `portfolio_client` ADD COLUMN `is_deleted` tinyint(1) NOT NULL DEFAULT 0;