PluginProbe
Meow Gallery / 5.5.5
Meow Gallery v5.5.5
5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 All 157 releases
← All changes | classes/migrations.php +3 -4 5.4.85.5.5 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2
3 3 class Meow_MGL_Migrations {
4 - private static $db_version = '2.8';
4 + private static $db_version = '2.9';
5 5
6 6 public function __construct( ) {
7 7
8 8 }
@@ -53,8 +53,9 @@
53 53 posts longtext,
54 54 latest_posts int( 11 ) DEFAULT NULL,
55 55 tags longtext,
56 56 dynamic_source varchar( 50 ) DEFAULT NULL,
57 + rml varchar( 255 ) DEFAULT NULL,
57 58 pref_rank int( 11 ) DEFAULT 0,
58 59 created_at datetime DEFAULT CURRENT_TIMESTAMP,
59 60 updated_at datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
60 61 PRIMARY KEY ( id )
@@ -103,9 +104,9 @@
103 104 'id' => $id,
104 105 'name' => $shortcode['name'],
105 106 'description' => $shortcode['description'] ?? '',
106 107 'layout' => $shortcode['layout'],
107 - 'medias' => serialize( $shortcode['medias'] ),
108 + 'medias' => serialize( Meow_MGL_Core::normalize_medias( $shortcode['medias'] ?? null ) ),
108 109 'lead_image_id' => $shortcode['lead_image_id'] ?? null,
109 110 'order_by' => $shortcode['order_by'] ?? null,
110 111 'is_post_mode' => ( isset( $shortcode['is_post_mode'] ) && $shortcode['is_post_mode'] ) ? 1 : 0,
111 112 'is_hero_mode' => isset( $shortcode['hero'] ) && $shortcode['hero'] ? 1 : 0,
@@ -130,10 +131,8 @@
130 131 'name' => $collection['name'],
131 132 'description' => $collection['description'] ?? '',
132 133 'layout' => $collection['layout'],
133 134 'galleries_ids' => serialize( $collection['galleries_ids'] ),
134 - 'tags' => isset( $collection['tags'] ) ? serialize( $collection['tags'] ) : null,
135 - 'dynamic_source' => $collection['dynamic_source'] ?? null,
136 135 'updated_at' => date( 'Y-m-d H:i:s', $collection['updated'] )
137 136 )
138 137 );
139 138 }