Version 4.1.19.4
This commit is contained in:
1 parent
2bd5025018
commit
0dc2aee5ed
312 files changed
+53730
-32118
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"core_members",
|
||||
{
|
||||
"name": "conv_password",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"null": true,
|
||||
"default": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"core_members",
|
||||
{
|
||||
"name": "conv_password_extra",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"null": true,
|
||||
"default": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Whitespace-only changes.
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "renameTable",
|
||||
"params": [
|
||||
"conv_apps",
|
||||
"convert_apps"
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "renameTable",
|
||||
"params": [
|
||||
"conv_link",
|
||||
"convert_link"
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"method": "renameTable",
|
||||
"params": [
|
||||
"conv_link_pms",
|
||||
"convert_link_pms"
|
||||
]
|
||||
},
|
||||
"4": {
|
||||
"method": "renameTable",
|
||||
"params": [
|
||||
"conv_link_topics",
|
||||
"convert_link_topics"
|
||||
]
|
||||
},
|
||||
"5": {
|
||||
"method": "renameTable",
|
||||
"params": [
|
||||
"conv_link_posts",
|
||||
"convert_link_posts"
|
||||
]
|
||||
},
|
||||
"6": {
|
||||
"method": "createTable",
|
||||
"params": [
|
||||
{
|
||||
"name": "convert_logs",
|
||||
"columns": {
|
||||
"log_id": {
|
||||
"name": "log_id",
|
||||
"type": "BIGINT",
|
||||
"length": 20,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": null,
|
||||
"comment": "ID Number",
|
||||
"unsigned": true,
|
||||
"zerofill": false,
|
||||
"auto_increment": true,
|
||||
"binary": false
|
||||
},
|
||||
"log_message": {
|
||||
"name": "log_message",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "Log Message",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"log_app": {
|
||||
"name": "log_app",
|
||||
"type": "BIGINT",
|
||||
"length": 20,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "The conversion app.",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"log_severity": {
|
||||
"name": "log_severity",
|
||||
"type": "TINYINT",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "Flag to indicate the type of log (notice, warning, error)",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"log_method": {
|
||||
"name": "log_method",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "Conversion step that triggered this log",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"PRIMARY": {
|
||||
"type": "primary",
|
||||
"name": "PRIMARY",
|
||||
"columns": [
|
||||
"log_id"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
},
|
||||
"log_app": {
|
||||
"type": "key",
|
||||
"name": "log_app",
|
||||
"columns": [
|
||||
"log_app"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"7": {
|
||||
"method": "createTable",
|
||||
"params": [
|
||||
{
|
||||
"name": "convert_app_sessions",
|
||||
"columns": {
|
||||
"session_app_id": {
|
||||
"name": "session_app_id",
|
||||
"type": "BIGINT",
|
||||
"length": 20,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "ID Number",
|
||||
"unsigned": true,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"session_app_data": {
|
||||
"name": "session_app_data",
|
||||
"type": "MEDIUMTEXT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "Session Data containing rows converted, completed steps, etc.",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"PRIMARY": {
|
||||
"type": "primary",
|
||||
"name": "PRIMARY",
|
||||
"columns": [
|
||||
"session_app_id"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace IPS\convert\setup\upg_100000;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 4.0.0 Upgrade Code
|
||||
*/
|
||||
class _Upgrade
|
||||
{
|
||||
/**
|
||||
* Make sure conv_password and conv_password_extra are present and accurate.
|
||||
*
|
||||
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
if ( \IPS\Db::i()->checkForColumn( 'core_members', 'conv_password' ) )
|
||||
{
|
||||
\IPS\Db::i()->changeColumn( 'core_members', 'conv_password', array( 'name' => 'conv_password', 'type' => 'VARCHAR', 'length' => 255, 'null' => TRUE, 'default' => NULL ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
\IPS\Db::i()->addColumn( 'core_members', array( 'name' => 'conv_password', 'type' => 'VARCHAR', 'length' => 255, 'null' => TRUE, 'default' => NULL ) );
|
||||
}
|
||||
|
||||
if ( \IPS\Db::i()->checkForColumn( 'core_members', 'misc' ) )
|
||||
{
|
||||
\IPS\Db::i()->changeColumn( 'core_members', 'misc', array( 'name' => 'conv_password_extra', 'type' => 'VARCHAR', 'length' => 255, 'null' => TRUE, 'default' => NULL ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
\IPS\Db::i()->addColumn( 'core_members', array( 'name' => 'conv_password_extra', 'type' => 'VARCHAR', 'length' => 255, 'null' => TRUE, 'default' => NULL ) );
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"convert_apps",
|
||||
{
|
||||
"name": "start_date",
|
||||
"type": "INT",
|
||||
"length": 10,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace IPS\convert\setup\upg_101003;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 4.1.0 Upgrade Code
|
||||
*/
|
||||
class _Upgrade
|
||||
{
|
||||
/**
|
||||
* Fix 3.x Converter Columns
|
||||
*
|
||||
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
$queries = array();
|
||||
|
||||
/* This does not include all of the columns the IPS4 Converters use - only the ones set by the 3.x converters */
|
||||
$old = array(
|
||||
'downloads' => array(
|
||||
array(
|
||||
'table' => 'downloads_categories',
|
||||
'old' => 'conv_parent',
|
||||
'new' => 'cconv_parent'
|
||||
)
|
||||
),
|
||||
'gallery' => array(
|
||||
array(
|
||||
'table' => 'gallery_categories',
|
||||
'old' => 'conv_parent',
|
||||
'new' => 'category_conv_parent'
|
||||
)
|
||||
),
|
||||
'cms' => array(
|
||||
array(
|
||||
'table' => 'cms_database_categories',
|
||||
'old' => 'conv_parent',
|
||||
'new' => 'category_conv_parent',
|
||||
)
|
||||
),
|
||||
'nexus' => array(
|
||||
array(
|
||||
'table' => 'nexus_package_groups',
|
||||
'old' => 'conv_pg_parent',
|
||||
'new' => 'pg_conv_parent'
|
||||
),
|
||||
array(
|
||||
'table' => 'nexus_packages',
|
||||
'old' => 'conv_p_associable',
|
||||
'new' => 'p_conv_associable'
|
||||
),
|
||||
array(
|
||||
'table' => 'nexus_purchases',
|
||||
'old' => 'conv_ps_parent',
|
||||
'new' => 'ps_conv_parent'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
foreach( $old AS $app => $tables )
|
||||
{
|
||||
foreach( $tables AS $data )
|
||||
{
|
||||
/* Does the table and old column exist? */
|
||||
if ( \IPS\Db::i()->checkForTable( $data['table'] ) AND \IPS\Db::i()->checkForColumn( $data['table'], $data['old'] ) )
|
||||
{
|
||||
/* Does the new column exist? */
|
||||
if ( \IPS\Db::i()->checkForColumn( $data['table'], $data['new'] ) )
|
||||
{
|
||||
/* Drop it */
|
||||
\IPS\Db::i()->dropColumn( $data['table'], $data['new'] );
|
||||
}
|
||||
|
||||
/* Alter the old one */
|
||||
\IPS\Db::i()->changeColumn( $data['table'], $data['old'], array(
|
||||
'name' => $data['new'],
|
||||
'type' => 'BIGINT',
|
||||
'length' => 20,
|
||||
'default' => 0
|
||||
) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"convert_logs",
|
||||
{
|
||||
"name": "log_item_id",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,369 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "changeColumn",
|
||||
"params": [
|
||||
"convert_link_posts",
|
||||
"foreign_id",
|
||||
{
|
||||
"name": "foreign_id",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": "",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "changeColumn",
|
||||
"params": [
|
||||
"convert_link_pms",
|
||||
"foreign_id",
|
||||
{
|
||||
"name": "foreign_id",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": "",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"method": "changeColumn",
|
||||
"params": [
|
||||
"convert_link_topics",
|
||||
"foreign_id",
|
||||
{
|
||||
"name": "foreign_id",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": "",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"4": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link_posts",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "local_lookup",
|
||||
"columns": [
|
||||
"ipb_id",
|
||||
"type",
|
||||
"app"
|
||||
],
|
||||
"length": [
|
||||
null,
|
||||
null,
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"5": {
|
||||
"method": "changeIndex",
|
||||
"params": [
|
||||
"convert_link_posts",
|
||||
"ipb_id",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "ipb_id",
|
||||
"columns": [
|
||||
"ipb_id"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"6": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"convert_link_posts",
|
||||
"ipb_id"
|
||||
]
|
||||
},
|
||||
"7": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"convert_link_posts",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"8": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"convert_link_topics",
|
||||
"ipb_id"
|
||||
]
|
||||
},
|
||||
"9": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"convert_link_topics",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"10": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link_topics",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "local_lookup",
|
||||
"columns": [
|
||||
"ipb_id",
|
||||
"type",
|
||||
"app"
|
||||
],
|
||||
"length": [
|
||||
null,
|
||||
null,
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"11": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"convert_link_pms",
|
||||
"ipb_id"
|
||||
]
|
||||
},
|
||||
"12": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"convert_link_pms",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"13": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link_pms",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "local_lookup",
|
||||
"columns": [
|
||||
"ipb_id",
|
||||
"type",
|
||||
"app"
|
||||
],
|
||||
"length": [
|
||||
null,
|
||||
null,
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"14": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"convert_link",
|
||||
"foreign_id"
|
||||
]
|
||||
},
|
||||
"15": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"convert_link",
|
||||
"ipb_id"
|
||||
]
|
||||
},
|
||||
"16": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"convert_link",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"17": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "foreign_id",
|
||||
"columns": [
|
||||
"foreign_id"
|
||||
],
|
||||
"length": [
|
||||
250
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"18": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "local_lookup",
|
||||
"columns": [
|
||||
"ipb_id",
|
||||
"type",
|
||||
"app"
|
||||
],
|
||||
"length": [
|
||||
null,
|
||||
null,
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"19": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "type",
|
||||
"columns": [
|
||||
"type"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"20": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "app",
|
||||
"columns": [
|
||||
"app"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"21": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link_pms",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "type",
|
||||
"columns": [
|
||||
"type"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"22": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link_pms",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "app",
|
||||
"columns": [
|
||||
"app"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"23": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link_posts",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "type",
|
||||
"columns": [
|
||||
"type"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"24": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link_posts",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "app",
|
||||
"columns": [
|
||||
"app"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"25": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link_topics",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "type",
|
||||
"columns": [
|
||||
"type"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"26": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"convert_link_topics",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "app",
|
||||
"columns": [
|
||||
"app"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,435 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace IPS\convert\setup\upg_101007;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 4.1.4 Upgrade Code
|
||||
*/
|
||||
class _Upgrade
|
||||
{
|
||||
/**
|
||||
* Rename or Create custom_bbcode and bbcode_mediatag
|
||||
*
|
||||
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
if ( \IPS\Db::i()->checkForTable( 'custom_bbcode' ) )
|
||||
{
|
||||
\IPS\Db::i()->renameTable( 'custom_bbcode', 'convert_custom_bbcode' );
|
||||
}
|
||||
else
|
||||
{
|
||||
\IPS\Db::i()->createTable( array (
|
||||
'name' => 'convert_custom_bbcode',
|
||||
'columns' => array(
|
||||
'bbcode_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 10,
|
||||
'name' => 'bbcode_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_title' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '',
|
||||
'length' => 255,
|
||||
'name' => 'bbcode_title',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array (),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_desc' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 0,
|
||||
'name' => 'bbcode_desc',
|
||||
'type' => 'TEXT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_tag' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '',
|
||||
'length' => 255,
|
||||
'name' => 'bbcode_tag',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_replace' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 0,
|
||||
'name' => 'bbcode_replace',
|
||||
'type' => 'TEXT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_useoption' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '0',
|
||||
'length' => 1,
|
||||
'name' => 'bbcode_useoption',
|
||||
'type' => 'TINYINT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_example' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 0,
|
||||
'name' => 'bbcode_example',
|
||||
'type' => 'TEXT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_switch_option' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '0',
|
||||
'length' => 1,
|
||||
'name' => 'bbcode_switch_option',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_menu_option_text' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '',
|
||||
'length' => 200,
|
||||
'name' => 'bbcode_menu_option_text',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_menu_content_text' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '',
|
||||
'length' => 200,
|
||||
'name' => 'bbcode_menu_content_text',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_single_tag' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '0',
|
||||
'length' => 1,
|
||||
'name' => 'bbcode_single_tag',
|
||||
'type' => 'TINYINT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_groups' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 255,
|
||||
'name' => 'bbcode_groups',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_sections' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 255,
|
||||
'name' => 'bbcode_sections',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_php_plugin' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 255,
|
||||
'name' => 'bbcode_php_plugin',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_no_parsing' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '0',
|
||||
'length' => 1,
|
||||
'name' => 'bbcode_no_parsing',
|
||||
'type' => 'TINYINT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_protected' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '0',
|
||||
'length' => 1,
|
||||
'name' => 'bbcode_protected',
|
||||
'type' => 'TINYINT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_aliases' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 255,
|
||||
'name' => 'bbcode_aliases',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_optional_option' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '0',
|
||||
'length' => 1,
|
||||
'name' => 'bbcode_optional_option',
|
||||
'type' => 'TINYINT',
|
||||
'unsigned' => false,
|
||||
'values' => array (),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_image' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 255,
|
||||
'name' => 'bbcode_image',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_app' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '',
|
||||
'length' => 50,
|
||||
'name' => 'bbcode_app',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'bbcode_custom_regex' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 0,
|
||||
'name' => 'bbcode_custom_regex',
|
||||
'type' => 'TEXT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'PRIMARY' => array(
|
||||
'type' => 'primary',
|
||||
'name' => 'PRIMARY',
|
||||
'length' => array( 0 => NULL ),
|
||||
'columns' => array( 0 => 'bbcode_id' ),
|
||||
),
|
||||
)
|
||||
) );
|
||||
}
|
||||
|
||||
if ( \IPS\Db::i()->checkForTable( 'bbcode_mediatag' ) )
|
||||
{
|
||||
\IPS\Db::i()->renameTable( 'bbcode_mediatag', 'convert_bbcode_mediatag' );
|
||||
}
|
||||
else
|
||||
{
|
||||
\IPS\Db::i()->createTable( array(
|
||||
'name' => 'convert_bbcode_mediatag',
|
||||
'columns' => array(
|
||||
'mediatag_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 10,
|
||||
'name' => 'mediatag_id',
|
||||
'type' => 'SMALLINT',
|
||||
'unsigned' => true,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'mediatag_name' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '',
|
||||
'length' => 255,
|
||||
'name' => 'mediatag_name',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'mediatag_match' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 0,
|
||||
'name' => 'mediatag_match',
|
||||
'type' => 'TEXT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'mediatag_replace' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 0,
|
||||
'name' => 'mediatag_replace',
|
||||
'type' => 'TEXT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'mediatag_position' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => false,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => '0',
|
||||
'length' => 6,
|
||||
'name' => 'mediatag_position',
|
||||
'type' => 'SMALLINT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'PRIMARY' => array(
|
||||
'type' => 'primary',
|
||||
'name' => 'PRIMARY',
|
||||
'length' => array( 0 => NULL ),
|
||||
'columns' => array( 0 => 'mediatag_id' ),
|
||||
),
|
||||
)
|
||||
) );
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// You can create as many additional methods (step2, step3, etc.) as is necessary.
|
||||
// Each step will be executed in a new HTTP request
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"convert_apps",
|
||||
{
|
||||
"name": "db_port",
|
||||
"type": "INT",
|
||||
"length": 10,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "3066",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "changeColumn",
|
||||
"params": [
|
||||
"convert_apps",
|
||||
"db_port",
|
||||
{
|
||||
"name": "db_port",
|
||||
"type": "INT",
|
||||
"length": 10,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "3306",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "update",
|
||||
"params": [
|
||||
"convert_apps",
|
||||
{
|
||||
"db_port": 3306
|
||||
},
|
||||
[
|
||||
"db_port=?",
|
||||
3066
|
||||
]
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"convert_logs",
|
||||
{
|
||||
"name": "log_time",
|
||||
"type": "INT",
|
||||
"length": 10,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief Upgrader: Custom Post Upgrade Message
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @since 16 May 2016
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
|
||||
/* Check for the older style redirect scripts, and if present tell the admin to remove. */
|
||||
$redirectScriptNames = array(
|
||||
'forumdisplay.php',
|
||||
'member.php',
|
||||
'showthread.php',
|
||||
'showgallery.php',
|
||||
'showphoto.php',
|
||||
'memberlist.php',
|
||||
'viewforum.php',
|
||||
'viewtopic.php',
|
||||
'board.php',
|
||||
'profile.php',
|
||||
'topic.php',
|
||||
'album.php',
|
||||
'attachment.php',
|
||||
'picture.php',
|
||||
'showpost.php',
|
||||
'showthread.php',
|
||||
'tags.php',
|
||||
'archive/index.php',
|
||||
'vb_gateway.php',
|
||||
'proxy.php'
|
||||
);
|
||||
|
||||
$filesPresent = array();
|
||||
|
||||
foreach( $redirectScriptNames as $filename )
|
||||
{
|
||||
if( file_exists( \IPS\ROOT_PATH . '/' . $filename ) )
|
||||
{
|
||||
$filesPresent[] = $filename;
|
||||
}
|
||||
}
|
||||
|
||||
if( count( $filesPresent ) )
|
||||
{
|
||||
$message = <<<EOF
|
||||
<div class='ipsType_left'>The following files are present in your Community Suite root directory to handle redirects for a conversion, but are no longer needed and should be removed:
|
||||
<br><br>•
|
||||
EOF;
|
||||
|
||||
$message .= implode( "<br>• ", $filesPresent );
|
||||
|
||||
$message .= <<<EOF
|
||||
<br><br>
|
||||
Please also be sure that your .htaccess file is reset back to the default Community Suite .htaccess code. You can download the default .htaccess file for the Community Suite in the ACP under System -> Site Promotion -> Search Engine Optimization by clicking the link in the setting "Rewrite URLs?".
|
||||
</div>
|
||||
EOF;
|
||||
|
||||
$message = \IPS\Theme::i()->getTemplate( 'global' )->block( NULL, $message );
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "update",
|
||||
"params": [
|
||||
"convert_apps",
|
||||
{
|
||||
"app_key": "vbulletin"
|
||||
},
|
||||
[
|
||||
"app_key=?",
|
||||
"vbuletin_legacy"
|
||||
]
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "update",
|
||||
"params": [
|
||||
"convert_apps",
|
||||
{
|
||||
"app_key": "vbulletin"
|
||||
},
|
||||
[
|
||||
"app_key=?",
|
||||
"vbulletin_legacy36"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "update",
|
||||
"params": [
|
||||
"convert_apps",
|
||||
{
|
||||
"app_key": "vbulletin"
|
||||
},
|
||||
[
|
||||
"app_key=?",
|
||||
"vbuletin_legacy"
|
||||
]
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "update",
|
||||
"params": [
|
||||
"convert_apps",
|
||||
{
|
||||
"app_key": "vbulletin"
|
||||
},
|
||||
[
|
||||
"app_key=?",
|
||||
"vbulletin_legacy36"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,338 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief 1.2.3 Upgrade Code
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Community Suite
|
||||
* @subpackage Converter
|
||||
* @since 01 Feb 2017
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
|
||||
namespace IPS\convert\setup\upg_33001;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1.2.3 Upgrade Code
|
||||
*/
|
||||
class _Upgrade
|
||||
{
|
||||
/**
|
||||
* Create extra conv_link tables
|
||||
*
|
||||
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
if ( !\IPS\Db::i()->checkForTable( 'conv_link_pms' ) )
|
||||
{
|
||||
\IPS\Db::i()->createTable( array (
|
||||
'name' => 'conv_link_pms',
|
||||
'columns' => array(
|
||||
'link_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 10,
|
||||
'name' => 'link_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'ipb_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 10,
|
||||
'name' => 'ipb_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'foreign_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 10,
|
||||
'name' => 'foreign_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'type' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 32,
|
||||
'name' => 'type',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'duplicate' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 1,
|
||||
'name' => 'duplicate',
|
||||
'type' => 'TINYINT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'app' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 10,
|
||||
'name' => 'app',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'PRIMARY' => array(
|
||||
'type' => 'primary',
|
||||
'name' => 'PRIMARY',
|
||||
'length' => array( 0 => NULL ),
|
||||
'columns' => array( 0 => 'link_id' ),
|
||||
),
|
||||
)
|
||||
) );
|
||||
}
|
||||
|
||||
if ( !\IPS\Db::i()->checkForTable( 'conv_link_topics' ) )
|
||||
{
|
||||
\IPS\Db::i()->createTable( array (
|
||||
'name' => 'conv_link_topics',
|
||||
'columns' => array(
|
||||
'link_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 10,
|
||||
'name' => 'link_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'ipb_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 10,
|
||||
'name' => 'ipb_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'foreign_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 10,
|
||||
'name' => 'foreign_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'type' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 32,
|
||||
'name' => 'type',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'duplicate' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 1,
|
||||
'name' => 'duplicate',
|
||||
'type' => 'TINYINT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'app' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 10,
|
||||
'name' => 'app',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'PRIMARY' => array(
|
||||
'type' => 'primary',
|
||||
'name' => 'PRIMARY',
|
||||
'length' => array( 0 => NULL ),
|
||||
'columns' => array( 0 => 'link_id' ),
|
||||
),
|
||||
)
|
||||
) );
|
||||
}
|
||||
|
||||
if ( !\IPS\Db::i()->checkForTable( 'conv_link_posts' ) )
|
||||
{
|
||||
\IPS\Db::i()->createTable( array (
|
||||
'name' => 'conv_link_posts',
|
||||
'columns' => array(
|
||||
'link_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 10,
|
||||
'name' => 'link_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'ipb_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 10,
|
||||
'name' => 'ipb_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'foreign_id' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 10,
|
||||
'name' => 'foreign_id',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'type' => array(
|
||||
'allow_null' => true,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => NULL,
|
||||
'length' => 32,
|
||||
'name' => 'type',
|
||||
'type' => 'VARCHAR',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'duplicate' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 1,
|
||||
'name' => 'duplicate',
|
||||
'type' => 'TINYINT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
'app' => array(
|
||||
'allow_null' => false,
|
||||
'auto_increment' => true,
|
||||
'binary' => false,
|
||||
'comment' => '',
|
||||
'decimals' => NULL,
|
||||
'default' => 0,
|
||||
'length' => 10,
|
||||
'name' => 'app',
|
||||
'type' => 'INT',
|
||||
'unsigned' => false,
|
||||
'values' => array(),
|
||||
'zerofill' => false,
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'PRIMARY' => array(
|
||||
'type' => 'primary',
|
||||
'name' => 'PRIMARY',
|
||||
'length' => array( 0 => NULL ),
|
||||
'columns' => array( 0 => 'link_id' ),
|
||||
),
|
||||
)
|
||||
) );
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user