diff --git a/files/db/update_v9_to_v10.sql b/files/db/update_v9_to_v10.sql index f21c504..896452c 100644 --- a/files/db/update_v9_to_v10.sql +++ b/files/db/update_v9_to_v10.sql @@ -1,6 +1,5 @@ ALTER TABLE users ADD COLUMN timezone char(64) AFTER language; ALTER TABLE users MODIFY COLUMN email VARCHAR(320) NOT NULL; -ALTER TABLE users ADD COLUMN frequency VARCHAR(1) NOT NULL AFTER active; -UPDATE users SET timezone = 'Europe/Paris', frequency = 'P'; +UPDATE users SET timezone = 'Europe/Paris'; ALTER TABLE projects MODIFY COLUMN timezone char(64); diff --git a/inc/spot.php b/inc/spot.php index 5ac7038..7169356 100755 --- a/inc/spot.php +++ b/inc/spot.php @@ -80,7 +80,7 @@ class Spot extends Main Project::PROJ_TABLE => array('name', 'codename', 'active_from', 'active_to', 'timezone'), self::POST_TABLE => array(Db::getId(Project::PROJ_TABLE), Db::getId(User::USER_TABLE), 'name', 'content', 'site_time'), Media::MEDIA_TABLE => array(Db::getId(Project::PROJ_TABLE), 'filename', 'type', 'taken_on', 'posted_on', 'rotate', 'comment'), - User::USER_TABLE => array('name', 'email', 'language', 'timezone', 'active', 'frequency') + User::USER_TABLE => array('name', 'email', 'language', 'timezone', 'active') ), 'types' => array ( @@ -94,7 +94,6 @@ class Spot extends Main 'description' => "VARCHAR(100)", 'email' => "VARCHAR(320) NOT NULL", 'filename' => "VARCHAR(100) NOT NULL", - 'frequency' => "VARCHAR(1) NOT NULL", 'iso_time' => "VARCHAR(24)", 'language' => "VARCHAR(2)", 'last_update' => "TIMESTAMP DEFAULT 0",