Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 886 (installer with php8) #910

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion modules/base/classes/factTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
// $Id$
//

// this is pre-config default. It is not used unitl after configuration is done.
defined('OWA_DTD_VARCHAR255') or define('OWA_DTD_VARCHAR255', 'VARCHAR(255)');
defined('OWA_DTD_BOOLEAN') or define('OWA_DTD_BOOLEAN', 'TINYINT(1)');
defined('OWA_DTD_INT') or define('OWA_DTD_INT', 'INT');
defined('OWA_DTD_TINYINT2') or define('OWA_DTD_TINYINT2', 'TINYINT(2)');
defined('OWA_DTD_VARCHAR10') or define('OWA_DTD_VARCHAR10', 'VARCHAR(10)');

/**
* Abstract Fact Table Entity Class
*
Expand All @@ -29,7 +36,7 @@
* @version $Revision$
* @since owa 1.5.0
*/

class owa_factTable extends owa_entity {

function __construct() {
Expand Down
6 changes: 6 additions & 0 deletions modules/base/entities/configuration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php


//
// Open Web Analytics - An Open Source Web Analytics Framework
//
Expand Down Expand Up @@ -28,6 +29,11 @@
* @since owa 1.0.0
*/

// during installation-phase these constants are not yet set, thus, use
// "useful" defaults here. During initialization this will be configured.
defined('OWA_DTD_BIGINT') or define('OWA_DTD_BIGINT', 'BIGINT');
defined('OWA_DTD_BLOB') or define('OWA_DTD_BLOB', 'BLOB');

class owa_configuration extends owa_entity {

function __construct() {
Expand Down
2 changes: 2 additions & 0 deletions modules/base/entities/request.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

require_once( OWA_BASE_CLASS_DIR . 'factTable.php');

defined('OWA_DTD_TINYINT') or define('OWA_DTD_TINYINT', 'TINYINT(1)');

/**
* page Request Entity
*
Expand Down
4 changes: 4 additions & 0 deletions modules/base/entities/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

require_once( OWA_BASE_CLASS_DIR . 'factTable.php');

//
defined('OWA_DTD_TINYINT4') or define('OWA_DTD_TINYINT4', 'TINYINT(4)');


/**
* Session Entity
*
Expand Down
2 changes: 2 additions & 0 deletions modules/base/entities/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// $Id$
//

defined('OWA_DTD_SERIAL') or define('OWA_DTD_SERIAL', 'SERIAL');

/**
* User Entity
*
Expand Down