diff options
| author | Greg Roach <fisharebest@gmail.com> | 2014-10-06 18:46:02 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2014-10-06 18:46:02 +0100 |
| commit | 7c40eec3677a97abda8d7d61656e9f478442222e (patch) | |
| tree | 3b10459e73bff3a6654750e1bc9e177d371e37e2 /includes/db_schema/db_schema_6_7.php | |
| parent | 2398c950b762551b14a2b5715fc71fefafba0a15 (diff) | |
| download | webtrees-7c40eec3677a97abda8d7d61656e9f478442222e.tar.gz webtrees-7c40eec3677a97abda8d7d61656e9f478442222e.tar.bz2 webtrees-7c40eec3677a97abda8d7d61656e9f478442222e.zip | |
Tidy up DB schema updates
Diffstat (limited to 'includes/db_schema/db_schema_6_7.php')
| -rw-r--r-- | includes/db_schema/db_schema_6_7.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/includes/db_schema/db_schema_6_7.php b/includes/db_schema/db_schema_6_7.php index 82dc89bfad..44e6722b38 100644 --- a/includes/db_schema/db_schema_6_7.php +++ b/includes/db_schema/db_schema_6_7.php @@ -26,13 +26,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -if (!defined('WT_WEBTREES')) { - header('HTTP/1.0 403 Forbidden'); - exit; -} - try { - self::exec( + WT_DB::exec( "DROP TABLE `##remotelinks`" ); } catch (PDOException $ex) { @@ -40,7 +35,7 @@ try { } try { - self::exec( + WT_DB::exec( "ALTER TABLE `##sources` DROP INDEX ix2" ); } catch (PDOException $ex) { @@ -48,7 +43,7 @@ try { } try { - self::exec( + WT_DB::exec( "ALTER TABLE `##sources` DROP COLUMN s_dbid" ); } catch (PDOException $ex) { @@ -57,4 +52,3 @@ try { // Update the version to indicate success WT_Site::setPreference($schema_name, $next_version); - |
