 
 
 CREATE TABLE IF NOT EXISTS pH7_AffiliatesLogSess (
-  profileId int(10) unsigned DEFAULT NULL,
+  profileId int(10) unsigned NOT NULL,
   username varchar(40) DEFAULT NULL,
   password varchar(120) DEFAULT NULL,
   email varchar(120) DEFAULT NULL,



CREATE TABLE IF NOT EXISTS pH7_MembersLogSess (
  profileId int(10) unsigned DEFAULT NULL,
  username varchar(40) DEFAULT NULL,
  password varchar(120) DEFAULT NULL,
  email varchar(120) DEFAULT NULL,



CREATE TABLE IF NOT EXISTS pH7_AdminsLogSess (
  profileId tinyint(3) unsigned NOT NULL,
  username varchar(40) DEFAULT NULL,
  password varchar(240) DEFAULT NULL,
  email varchar(120) DEFAULT NULL,
