Changeset 8758
- Timestamp:
- 02/02/10 03:19:01 (3 years ago)
- Files:
-
- modules/branches/2.7/backup/install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.7/backup/install.php
r8753 r8758 115 115 $migrate=$db->getAll('show tables like "Backup"'); 116 116 if(DB::IsError($check)) { 117 die_freepbx("Can check for Backup table ");117 die_freepbx("Can check for Backup table \n".$result->getMessage()); 118 118 } 119 119 if(count($migrate) > 0){//migrate to new backup structure 120 $sql=$db->query('insert into backup ( Name, Voicemail, Recordings, Configurations, CDR, FOP, Minutes, Hours, Days, Months, Weekdays, Command, Method, ID) select * from Backup;');120 $sql=$db->query('insert into backup (name, voicemail, recordings, configurations, cdr, fop, minutes, hours, days, months, weekdays, command, method, id) select * from Backup;'); 121 121 if(DB::IsError($sql)) { 122 die_freepbx("Cannot migrate Backup table ");122 die_freepbx("Cannot migrate Backup table\n".$sql->getMessage()); 123 123 } 124 124 //get data from amportal and populate the table with it
