/** * Hook for ensuring our tables are created * * Ensures that the user_flag_profile table exists * and has the right columns. * * @return boolean hook return */ function onCheckSchema() { $schema = Schema::get(); // For storing user-submitted flags on profiles $schema->ensureTable('user_flag_profile', User_flag_profile::schemaDef()); return true; }