Skip to content

Commit 3507fdc

Browse files
authored
Merge pull request #132 from BeAPI/fix/syntax-sql-relations
Fix/syntax sql relations
2 parents 963fe0c + 5d2099c commit 3507fdc

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ If you really like what we do or want to thank us for our quick work, feel free
4444

4545
## Changelog
4646

47+
### 3.9.3
48+
49+
* Fixed : Correction of the syntax for the creation of the relations table. (Missing commas)
50+
4751
### 3.9.2
4852

4953
* Feature : Added synchronisation of Gutenberg ACF blocks

bea-content-sync-fusion.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: BEA - Content Sync Fusion
44
Plugin URI: https://beapi.fr
55
Description: Manage content synchronization across a WordPress multisite.
6-
Version: 3.9.2
6+
Version: 3.9.3
77
Author: Be API
88
Author URI: http://beapi.fr
99
Network: true
@@ -14,7 +14,7 @@
1414

1515
// Plugin constants
1616

17-
define( 'BEA_CSF_VERSION', '3.9.2' );
17+
define( 'BEA_CSF_VERSION', '3.9.3' );
1818
define( 'BEA_CSF_DB_VERSION', '1649671234' );
1919
define( 'BEA_CSF_OPTION', 'bea-content-sync-fusion' );
2020
define( 'BEA_CSF_CRON_QTY', 500 );

classes/plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public static function create_relations_table() {
3939
`receiver_blog_id` INT(20) NOT NULL ,
4040
`receiver_id` INT(20) NOT NULL ,
4141
PRIMARY KEY (id),
42-
UNIQUE KEY `type_emitter_receiver` (`type`(191), `emitter_blog_id`, `emitter_id`, `receiver_blog_id`, `receiver_id`)
43-
KEY `emitters` ( `type`(191), `emitter_blog_id`, `emitter_id` )
42+
UNIQUE KEY `type_emitter_receiver` (`type`(191), `emitter_blog_id`, `emitter_id`, `receiver_blog_id`, `receiver_id`),
43+
KEY `emitters` ( `type`(191), `emitter_blog_id`, `emitter_id` ),
4444
KEY `receivers` ( `type`(191), `receiver_blog_id`, `receiver_id` )
4545
);";
4646

0 commit comments

Comments
 (0)