Plugin Directory

Changeset 493910


Ignore:
Timestamp:
01/23/2012 11:19:09 AM (14 years ago)
Author:
atvdev
Message:
 
Location:
amazon-s3-uploads/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • amazon-s3-uploads/trunk/asssu-models.php

    r493877 r493910  
    325325   
    326326    function check_db_table() {
     327        $columns = @$this->db->get_results('SHOW COLUMNS FROM `'.$this->config->db_table.'`', ARRAY_A);
     328        if ($columns !== false) {
     329            $site_url = false;
     330            $location = false;
     331            foreach ($columns as $k => $v)
     332                if ($v['Field'] === 'site_url')
     333                    $site_url = true;
     334                else if ($v['Field'] === 'location')
     335                    $location = true;
     336            if (!$site_url || !$location)
     337                $this->db->query('DROP TABLE `'.$this->config->db_table.'`');
     338        }
    327339        $query = 'CREATE TABLE IF NOT EXISTS `'.$this->config->db_table.'` (
    328340          `id` varchar(32) NOT NULL,
    329           `path` varchar(255) NOT NULL,
    330           `status` enum(\'queue\', \'done\', \'error\') NOT NULL,
    331           `added` datetime NOT NULL,
     341          `site_url` varchar(255) NOT NULL,
     342          `location` varchar(255) NOT NULL,
    332343          PRIMARY KEY (`id`)
    333344        ) ENGINE=MyISAM;';
  • amazon-s3-uploads/trunk/asssu.php

    r493877 r493910  
    66Author URI: http://code.google.com/u/117859515361389646005/
    77Description: Moves your uploads to Amazon S3 via cron jobs.
    8 Version: 1.05
     8Version: 1.06
    99*/
    1010
  • amazon-s3-uploads/trunk/readme.txt

    r493877 r493910  
    55Requires at least: 2.3
    66Tested up to: 3.3
    7 Stable tag: 1.05
     7Stable tag: 1.06
    88
    99Moves your uploads to Amazon S3 via cron jobs.
     
    5252== Changelog ==
    5353
     54= 1.06 =
     55* Minor bug fixes
     56
    5457= 1.05 =
    5558* Minor fixes
     
    7578== Upgrade Notice ==
    7679
     80= 1.06 =
     81Minor bug fixes
     82
    7783= 1.05 =
    7884Minor fixes
Note: See TracChangeset for help on using the changeset viewer.