From 2fd2dc603ce6ad8189f8e9bd439c9acac5cfee1d Mon Sep 17 00:00:00 2001 From: abijah Date: Tue, 25 Aug 2009 16:26:28 +0000 Subject: [PATCH] Modified the unit types to have boolean flags to indicate their properties git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@783 97e9348a-65ac-dc4b-aefc-98561f571b83 --- db/property_manager.sql | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/db/property_manager.sql b/db/property_manager.sql index 47d2421..95fa1a6 100644 --- a/db/property_manager.sql +++ b/db/property_manager.sql @@ -5664,6 +5664,11 @@ SET character_set_client = utf8; CREATE TABLE `pmgr_unit_types` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(12) NOT NULL, + `residential` tinyint(1) unsigned NOT NULL DEFAULT '0', + `enclosed` tinyint(1) unsigned NOT NULL DEFAULT '0', + `climate` tinyint(1) unsigned NOT NULL DEFAULT '0', + `outdoor` tinyint(1) unsigned NOT NULL DEFAULT '0', + `covered` tinyint(1) unsigned NOT NULL DEFAULT '0', `name` varchar(80) NOT NULL, `comment` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) @@ -5676,9 +5681,9 @@ SET character_set_client = @saved_cs_client; LOCK TABLES `pmgr_unit_types` WRITE; /*!40000 ALTER TABLE `pmgr_unit_types` DISABLE KEYS */; -INSERT INTO `pmgr_unit_types` VALUES (1,'xxx','Self Storage',NULL); -INSERT INTO `pmgr_unit_types` VALUES (2,'xxx','Yard Parking',NULL); -INSERT INTO `pmgr_unit_types` VALUES (3,'xxx','Apartment',NULL); +INSERT INTO `pmgr_unit_types` VALUES (1,'xxx',0,1,0,0,0,'Self Storage',NULL); +INSERT INTO `pmgr_unit_types` VALUES (2,'xxx',0,0,0,1,0,'Yard Parking',NULL); +INSERT INTO `pmgr_unit_types` VALUES (3,'xxx',1,0,0,0,0,'Apartment',NULL); /*!40000 ALTER TABLE `pmgr_unit_types` ENABLE KEYS */; UNLOCK TABLES; @@ -5859,4 +5864,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2009-08-25 6:17:13 +-- Dump completed on 2009-08-25 16:25:35