- Timestamp:
- Dec 26, 2018, 11:13:00 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Meet.php
r24 r25 350 350 if ($DbResult->num_rows == 0) 351 351 { 352 if ($this->Age == '') $Age = null; 353 else $Age = $this->Age; 354 if ($this->Height == '') $Height = null; 355 else $Height = $this->Height; 356 if ($this->Weight == '') $Weight = null; 357 else $Weight = $this->Weight; 352 358 $this->Database->insert('MeetItem', array( 353 359 'Message' => $this->Message, 354 360 'Date' => TimeToMysqlDate($this->Date), 355 361 'Gender' => $this->Gender, 356 'Age' => $ this->Age,362 'Age' => $Age, 357 363 'Email' => $this->Email, 358 364 'Phone' => $this->Phone, 359 365 'Name' => $this->Name, 360 'Height' => $ this->Height,361 'Weight' => $ this->Weight,366 'Height' => $Height, 367 'Weight' => $Weight, 362 368 'Location' => $this->Location, 363 369 'Source' => $this->Source, -
trunk/SQL/Update.php
r10 r25 1 1 ALTER TABLE `MeetItem` ADD `Link` VARCHAR(255) NOT NULL AFTER `Location`; 2 2 3 ALTER TABLE `MeetItem` CHANGE `Age` `Age` INT NULL DEFAULT NULL; 4 UPDATE `MeetItem` SET `Age`=NULL WHERE `Age`=0; 5 ALTER TABLE `MeetItem` CHANGE `Height` `Height` INT NULL DEFAULT NULL; 6 UPDATE `MeetItem` SET `Height`=NULL WHERE `Height`=0; 7 ALTER TABLE `MeetItem` CHANGE `Weight` `Weight` INT NULL DEFAULT NULL; 8 UPDATE `MeetItem` SET `Weight`=NULL WHERE `Weight`=0;
Note:
See TracChangeset
for help on using the changeset viewer.