Skip to content

Commit

Permalink
Simplify installation remove useless files
Browse files Browse the repository at this point in the history
  • Loading branch information
gillesdubois committed Jun 15, 2020
1 parent 6e1ff1b commit 4221451
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 652 deletions.
20 changes: 17 additions & 3 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,24 @@ function extension_install_officepack()
{
$commonObject = new ExtensionCommon;

// Officepack table creation
// Remove older tables
$commonObject -> sqlQuery("DROP TABLE IF EXISTS `officepack_sku` , `officepack_lang` , `officepack_type` , `officepack_version` , `officepack`;");

include 'sql/officepack.php';
include 'sql/officepack-guid-fr.php';
// Install tables
$commonObject -> sqlQuery("CREATE TABLE IF NOT EXISTS `officepack` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`HARDWARE_ID` int(11) NOT NULL,
`OFFICEVERSION` varchar(255) DEFAULT NULL,
`PRODUCT` varchar(255) DEFAULT NULL,
`PRODUCTID` varchar(255) DEFAULT NULL,
`TYPE` int(11) DEFAULT NULL,
`OFFICEKEY` varchar(255) DEFAULT NULL,
`GUID` varchar(255) DEFAULT NULL,
`INSTALL` int(11) DEFAULT NULL,
`NOTE` varchar(255) DEFAULT NULL,
PRIMARY KEY (`ID`,`HARDWARE_ID`)
) ENGINE=INNODB ;");

}

/**
Expand Down
Loading

0 comments on commit 4221451

Please sign in to comment.