Skip to content

Commit cb600c9

Browse files
committed
Plugin: PENS: Fix plugin issue trying to create the plugin_pens table even if it already exists
1 parent 9fe3a37 commit cb600c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/pens/lib/PENSPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private function installDatabase()
7171
{
7272
$pensTable = Database::get_main_table(PENSPlugin::TABLE_PENS);
7373

74-
$sql = "CREATE TABLE $pensTable (
74+
$sql = "CREATE TABLE IF NOT EXISTS $pensTable (
7575
id int unsigned NOT NULL auto_increment,
7676
pens_version varchar(255) NOT NULL,
7777
package_type varchar(255) NOT NULL,

0 commit comments

Comments
 (0)