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
This commit is contained in:
abijah
2009-08-25 16:26:28 +00:00
parent 439e9a3de6
commit 2fd2dc603c

View File

@@ -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