--
-- Alter table structure for email_activation
--

ALTER TABLE email_activation
  ADD `type` varchar(60) default NULL
;

-- set all previously created entries to the guest type
-- as it was the only supported type at the time
UPDATE email_activation SET type = 'guest';

--
-- Alter table structure for node_category to add max_nodes_per_pid
--

ALTER TABLE node_category
  ADD `max_nodes_per_pid` int default 0 AFTER name
;

--
-- Create index on the radacct table for callingstationid
--

CREATE INDEX callingstationid ON radacct ( callingstationid );
