Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
class UpdateSystem { static int numberOfUpdates = 5; static Version updates[] = { new Version(110,"CREATE TABLE tester (row1 int, row2 int)"), new Version(111,"ALTER TABLE tester ADD row3 char(4) default 'abcd'"), new Version(111,"ALTER TABLE tester ADD newcolumn int"), new Version(200,"CREATE TABLE diditwork (row1 int, row2 char(3))"), new Version(202,"ALTER TABLE diditwork ADD newrow int") }; static void updateSql(Context ctx) { SqlMaster mDbHelper = new SqlMaster(ctx); mDbHelper.open(); //get last known version + newest version int currVer = 0; int oldVer = 0; try { currVer = ctx.getPackageManager().getPackageInfo(ctx.getPackageName(), 0).versionCode; } catch (NameNotFoundException e) { e.printStackTrace(); } oldVer = mDbHelper.getOldVersion(); //Replace sql queries mDbHelper.clearTable(SqlMaster.TABLE_SQL_UPDATES); for(int i = 0;numberOfUpdates>i;i++) { mDbHelper.addNewVersion(updates[i]); } //start running SQL commands from last recorded version # + 1 //if we dont have an old update line, run newest one if(oldVer == 0) { oldVer = currVer - 1; } if(currVer > oldVer) { mDbHelper.updateToVersion(currVer, oldVer); } mDbHelper.close(); } }