Agents
This commit is contained in:
@@ -59,9 +59,9 @@ class Migration_Version_210 extends App_module_migration
|
||||
WHERE request_limit IS NULL OR request_limit = 0
|
||||
");
|
||||
|
||||
// Drop the separate user_api_quotas table (no longer needed)
|
||||
$this->db->query("DROP TABLE IF EXISTS `" . db_prefix() . "user_api_quotas`");
|
||||
}
|
||||
// Drop the separate user_api_quotas table (no longer needed)
|
||||
$this->db->query("DROP TABLE IF EXISTS `" . db_prefix() . "user_api_quotas`");
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
@@ -101,15 +101,15 @@ class Migration_Version_210 extends App_module_migration
|
||||
WHERE request_limit IS NOT NULL
|
||||
");
|
||||
|
||||
// Remove quota fields from user_api table
|
||||
$this->db->query("
|
||||
ALTER TABLE `" . db_prefix() . "user_api`
|
||||
DROP COLUMN `request_limit`,
|
||||
DROP COLUMN `time_window`,
|
||||
DROP COLUMN `burst_limit`,
|
||||
DROP COLUMN `quota_active`,
|
||||
DROP COLUMN `quota_created_at`,
|
||||
DROP COLUMN `quota_updated_at`
|
||||
");
|
||||
}
|
||||
// Remove quota fields from user_api table
|
||||
$this->db->query("
|
||||
ALTER TABLE `" . db_prefix() . "user_api`
|
||||
DROP COLUMN `request_limit`,
|
||||
DROP COLUMN `time_window`,
|
||||
DROP COLUMN `burst_limit`,
|
||||
DROP COLUMN `quota_active`,
|
||||
DROP COLUMN `quota_created_at`,
|
||||
DROP COLUMN `quota_updated_at`
|
||||
");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user