Kaynağa Gözat

Migration traduction base de données

dev
Guillaume Bourgeois 6 yıl önce
ebeveyn
işleme
8078809b18
5 değiştirilmiş dosya ile 367 ekleme ve 28 silme
  1. +2
    -2
      common/models/Invoice.php
  2. +6
    -8
      common/models/Product.php
  3. +4
    -4
      common/models/ProductOrder.php
  4. +12
    -14
      common/models/User.php
  5. +343
    -0
      console/migrations/m181220_080234_translate_database.php

+ 2
- 2
common/models/Invoice.php Dosyayı Görüntüle

@@ -52,7 +52,7 @@ use Yii;
* @property double $amount_without_tax
* @property integer $paid
* @property string $date_payment
* @property string $means_payment
* @property string $mean_payment
*/
class Invoice extends \yii\db\ActiveRecord
{
@@ -75,7 +75,7 @@ class Invoice extends \yii\db\ActiveRecord
[['date', 'date_payment'], 'safe'],
[['texte'], 'string'],
[['amount_without_tax', 'ca'], 'number'],
[['reference', 'wording', 'means_payment'], 'string', 'max' => 255],
[['reference', 'wording', 'mean_payment'], 'string', 'max' => 255],
];
}


+ 6
- 8
common/models/Product.php Dosyayı Görüntüle

@@ -42,18 +42,16 @@ use Yii;
use common\components\ActiveRecordCommon ;

/**
* This is the model class for table "produit".
* This is the model class for table "product".
*
* @property integer $id
* @property string $nom
* @property string $name
* @property string $description
* @property integer $actif
* @property string $illustration
* @property integer $active
* @property string $photo
* @property string $saison
* @property double $prix
* @property double $poids
* @property string $recette
* @property double $price
* @property double $pweight
* @property string $recipe
*/
class Product extends ActiveRecordCommon
{

+ 4
- 4
common/models/ProductOrder.php Dosyayı Görüntüle

@@ -41,12 +41,12 @@ namespace common\models;
use Yii;

/**
* This is the model class for table "commande_produit".
* This is the model class for table "product_order".
*
* @property integer $id
* @property integer $id_commande
* @property integer $id_produit
* @property double $quantite
* @property integer $id_order
* @property integer $id_product
* @property double $quantity
*/
class ProductOrder extends \yii\db\ActiveRecord
{

+ 12
- 14
common/models/User.php Dosyayı Görüntüle

@@ -41,6 +41,7 @@ namespace common\models;
use yii\web\IdentityInterface;
use yii\db\Query ;
use common\components\ActiveRecordCommon ;

/**
* User model
*
@@ -94,10 +95,9 @@ class User extends ActiveRecordCommon implements IdentityInterface
public function rules()
{
return [
['confiance', 'default', 'value' => 1],
[['no_mail', 'mail_prod_lundi', 'mail_prod_mardi', 'mail_prod_mercredi', 'mail_prod_jeudi', 'mail_prod_vendredi', 'mail_prod_samedi', 'mail_prod_dimanche'], 'boolean'],
[['nom', 'prenom', 'telephone', 'adresse'], 'string'],
[['nom', 'prenom'], 'required', 'message' => 'Ce champs ne peut être vide'],
[['no_mail', 'mail_distribution_monday', 'mail_distribution_tuesday', 'mail_distribution_wednesday', 'mail_distribution_thursday', 'mail_distribution_friday', 'mail_distribution_saterday', 'mail_distribution_sunday'], 'boolean'],
[['lastname', 'name', 'phone', 'address'], 'string'],
[['lastname', 'name'], 'required', 'message' => 'Ce champs ne peut être vide'],
['email', 'email', 'message' => 'Cette adresse email n\'est pas valide'],
['email', 'verifyEmail'],
['status', 'default', 'value' => self::STATUS_ACTIVE],
@@ -105,7 +105,7 @@ class User extends ActiveRecordCommon implements IdentityInterface
['password_old', 'verifyPasswordOld'],
['password_new', 'verifyPasswordNew'],
['password_new_confirm', 'verifyPasswordNewConfirm'],
[['date_derniere_connexion', 'password_old', 'password_new', 'password_new_confirm', 'password_hash'], 'safe'],
[['date_last_connection', 'password_old', 'password_new', 'password_new_confirm', 'password_hash'], 'safe'],
];
}
@@ -116,19 +116,17 @@ class User extends ActiveRecordCommon implements IdentityInterface
'username' => 'Identifiant',
'password' => 'Mot de passe',
'rememberMe' => 'Se souvenir de moi',
'confiance' => 'De confiance',
'no_mail' => 'Ne pas recevoir d\'email de la part du Chat des Noisettes',
'mail_prod_lundi' => 'Lundi',
'mail_prod_mardi' => 'Mardi',
'mail_prod_mercredi' => 'Mercredi',
'mail_prod_jeudi' => 'Jeudi',
'mail_prod_vendredi' => 'Vendredi',
'mail_prod_samedi' => 'Samedi',
'mail_prod_dimanche' => 'Dimanche',
'mail_distribution_monday' => 'Lundi',
'mail_distribution_tuesday' => 'Mardi',
'mail_distribution_wednesday' => 'Mercredi',
'mail_distribution_thursday' => 'Jeudi',
'mail_distribution_friday' => 'Vendredi',
'mail_distribution_saterday' => 'Samedi',
'mail_distribution_sunday' => 'Dimanche',
'password_old' => 'Ancien mot de passe',
'password_new' => 'Nouveau mot de passe',
'password_new_confirm' => 'Confirmation du nouveau mot de passe',
'prix_libre' => 'Prix libre',
];
}

+ 343
- 0
console/migrations/m181220_080234_translate_database.php Dosyayı Görüntüle

@@ -0,0 +1,343 @@
<?php

use yii\db\Migration;

class m181220_080234_translate_database extends Migration
{
public function up()
{
$this->renameTable('commande', 'order') ;
$this->renameColumn('order', 'id_point_vente', 'id_point_sale') ;
$this->renameColumn('order', 'id_production', 'id_distribution') ;
$this->renameColumn('order', 'commentaire', 'comment') ;
$this->renameColumn('order', 'commentaire_point_vente', 'comment_point_sale') ;
$this->renameColumn('order', 'paiement_automatique', 'auto_payment') ;
$this->renameTable('commande_auto', 'subscription') ;
$this->renameColumn('subscription', 'id_etablissement', 'id_producer') ;
$this->renameColumn('subscription', 'date_debut', 'date_debin') ;
$this->renameColumn('subscription', 'date_fin', 'date_end') ;
$this->renameColumn('subscription', 'lundi', 'monday') ;
$this->renameColumn('subscription', 'mardi', 'tuesday') ;
$this->renameColumn('subscription', 'mercredi', 'wednesday') ;
$this->renameColumn('subscription', 'jeudi', 'thursday') ;
$this->renameColumn('subscription', 'vendredi', 'friday') ;
$this->renameColumn('subscription', 'samedi', 'saterday') ;
$this->renameColumn('subscription', 'dimanche', 'sunday') ;
$this->renameColumn('subscription', 'periodicite_semaine', 'week_frequency') ;
$this->renameColumn('subscription', 'id_point_vente', 'id_point_sale') ;
$this->renameColumn('subscription', 'paiement_automatique', 'auto_payment') ;
$this->renameTable('commande_auto_produit', 'product_subscription') ;
$this->renameColumn('product_subscription', 'id_commande_auto', 'id_subscription') ;
$this->renameColumn('product_subscription', 'id_produit', 'id_product') ;
$this->renameColumn('product_subscription', 'quantite', 'quantity') ;
$this->renameTable('commande_produit', 'product_order') ;
$this->renameColumn('product_order', 'id_commande', 'id_order') ;
$this->renameColumn('product_order', 'id_produit', 'id_product') ;
$this->renameColumn('product_order', 'quantite', 'quantity') ;
$this->renameColumn('product_order', 'prix', 'price') ;
$this->renameColumn('product_order', 'mode_vente', 'sale_mode') ;
$this->renameTable('credit_historique', 'credit_history') ;
$this->renameColumn('credit_history', 'id_commande', 'id_order') ;
$this->renameColumn('credit_history', 'montant', 'amount') ;
$this->renameColumn('credit_history', 'id_etablissement', 'id_producer') ;
$this->renameColumn('credit_history', 'moyen_paiement', 'mean_payment') ;
$this->renameColumn('credit_history', 'commentaire', 'comment') ;
$this->renameTable('developpement', 'development') ;
$this->renameColumn('development', 'objet', 'subject') ;
$this->renameColumn('development', 'avancement', 'progress') ;
$this->renameColumn('development', 'statut', 'status') ;
$this->renameColumn('development', 'estimation_temps', 'time_estimate') ;
$this->renameColumn('development', 'date_livraison', 'date_delivery') ;
$this->renameTable('developpement_priorite', 'development_priority') ;
$this->renameColumn('development_priority', 'id_developpement', 'id_development') ;
$this->renameColumn('development_priority', 'id_etablissement', 'id_producer') ;
$this->renameColumn('development_priority', 'priorite', 'priority') ;
$this->renameTable('etablissement', 'producer') ;
$this->dropColumn('producer', 'gratuit') ;
$this->renameColumn('producer', 'nom', 'name') ;
$this->renameColumn('producer', 'code_postal', 'postcode') ;
$this->renameColumn('producer', 'ville', 'city') ;
$this->renameColumn('producer', 'date_paiement', 'date_payment') ;
$this->renameColumn('producer', 'heure_limite_commande', 'order_deadline') ;
$this->renameColumn('producer', 'delai_commande', 'order_delay') ;
$this->renameColumn('producer', 'solde_negatif', 'negative_balance') ;
$this->renameColumn('producer', 'credit_pain', 'credit') ;
$this->renameColumn('producer', 'actif', 'active') ;
$this->renameColumn('producer', 'prix_libre', 'free_price') ;
$this->renameColumn('producer', 'infos_commande', 'order_infos') ;
$this->renameTable('facture', 'invoice') ;
$this->renameColumn('invoice', 'id_etablissement', 'id_producer') ;
$this->renameColumn('invoice', 'libelle', 'wording') ;
$this->renameColumn('invoice', 'texte', 'text') ;
$this->renameColumn('invoice', 'montant_ht', 'amount_without_tax') ;
$this->renameColumn('invoice', 'paye', 'paid') ;
$this->renameColumn('invoice', 'date_paiement', 'date_payment') ;
$this->renameColumn('invoice', 'methode_paiement', 'mean_payment') ;
$this->renameColumn('invoice', 'periode', 'period') ;
$this->renameColumn('invoice', 'ca', 'turnover') ;
$this->renameTable('point_vente', 'point_sale') ;
$this->dropColumn('point_sale', 'pain') ;
$this->dropColumn('point_sale', 'vrac') ;
$this->renameColumn('point_sale', 'nom', 'name') ;
$this->renameColumn('point_sale', 'adresse', 'address') ;
$this->renameColumn('point_sale', 'horaires_lundi', 'infos_monday') ;
$this->renameColumn('point_sale', 'horaires_mardi', 'infos_tuesday') ;
$this->renameColumn('point_sale', 'horaires_mercredi', 'infos_wednesday') ;
$this->renameColumn('point_sale', 'horaires_jeudi', 'infos_thursday') ;
$this->renameColumn('point_sale', 'horaires_vendredi', 'infos_friday') ;
$this->renameColumn('point_sale', 'horaires_samedi', 'infos_saterday') ;
$this->renameColumn('point_sale', 'horaires_dimanche', 'infos_sunday') ;
$this->renameColumn('point_sale', 'localite', 'locality') ;
$this->renameColumn('point_sale', 'point_fabrication', 'point_production') ;
$this->renameColumn('point_sale', 'id_etablissement', 'id_producer') ;
$this->renameColumn('point_sale', 'acces_restreint', 'restricted_access') ;
$this->renameColumn('point_sale', 'credit_pain', 'credit') ;
$this->renameColumn('point_sale', 'livraison_lundi', 'delivery_monday') ;
$this->renameColumn('point_sale', 'livraison_mardi', 'delivery_tuesday') ;
$this->renameColumn('point_sale', 'livraison_mercredi', 'delivery_wednesday') ;
$this->renameColumn('point_sale', 'livraison_jeudi', 'delivery_thursday') ;
$this->renameColumn('point_sale', 'livraison_vendredi', 'delivery_friday') ;
$this->renameColumn('point_sale', 'livraison_samedi', 'delivery_saterday') ;
$this->renameColumn('point_sale', 'livraison_dimanche', 'delivery_sunday') ;
$this->renameTable('point_vente_user', 'user_point_sale') ;
$this->renameColumn('user_point_sale', 'id_point_vente', 'id_point_sale') ;
$this->renameColumn('user_point_sale', 'commentaire', 'comment') ;
$this->renameTable('production', 'distribution') ;
$this->renameColumn('distribution', 'actif', 'active') ;
$this->renameColumn('distribution', 'livraison', 'delivery') ;
$this->renameColumn('distribution', 'id_etablissement', 'id_producer') ;
$this->renameTable('production_point_vente', 'point_sale_distribution') ;
$this->renameColumn('point_sale_distribution', 'id_production', 'id_distribution') ;
$this->renameColumn('point_sale_distribution', 'id_point_vente', 'id_point_sale') ;
$this->renameColumn('point_sale_distribution', 'livraison', 'delivery') ;
$this->renameTable('production_produit', 'product_distribution') ;
$this->renameColumn('product_distribution', 'id_production', 'id_distribution') ;
$this->renameColumn('product_distribution', 'id_produit', 'id_product') ;
$this->renameColumn('product_distribution', 'actif', 'active') ;
$this->renameColumn('product_distribution', 'quantite_max', 'quantity_max') ;
$this->renameTable('produit', 'product') ;
$this->dropColumn('product', 'illustration') ;
$this->dropColumn('product', 'saison') ;
$this->dropColumn('product', 'diminutif') ;
$this->dropColumn('product', 'vrac') ;
$this->renameColumn('product', 'nom', 'name') ;
$this->renameColumn('product', 'actif', 'active') ;
$this->renameColumn('product', 'prix', 'price') ;
$this->renameColumn('product', 'poids', 'weight') ;
$this->renameColumn('product', 'recette', 'recipe') ;
$this->renameColumn('product', 'lundi', 'monday') ;
$this->renameColumn('product', 'mardi', 'tuesday') ;
$this->renameColumn('product', 'mercredi', 'w<ednesday') ;
$this->renameColumn('product', 'jeudi', 'thursday') ;
$this->renameColumn('product', 'vendredi', 'friday') ;
$this->renameColumn('product', 'samedi', 'saterday') ;
$this->renameColumn('product', 'dimanche', 'sunday') ;
$this->renameColumn('product', 'quantite_max', 'quantity_max') ;
$this->renameColumn('product', 'epuise', 'unavailable') ;
$this->renameColumn('product', 'id_etablissement', 'id_producer') ;
$this->renameColumn('product', 'mode_vente', 'sale_mode') ;
$this->dropColumn('user', 'confiance') ;
$this->renameColumn('user', 'nom', 'lastname') ;
$this->renameColumn('user', 'prenom', 'name') ;
$this->renameColumn('user', 'telephone', 'phone') ;
$this->renameColumn('user', 'adresse', 'address') ;
$this->renameColumn('user', 'mail_prod_lundi', 'mail_distribution_monday') ;
$this->renameColumn('user', 'mail_prod_mardi', 'mail_distribution_tuesday') ;
$this->renameColumn('user', 'mail_prod_mercredi', 'mail_distribution_wednesday') ;
$this->renameColumn('user', 'mail_prod_jeudi', 'mail_distribution_thursday') ;
$this->renameColumn('user', 'mail_prod_vendredi', 'mail_distribution_friday') ;
$this->renameColumn('user', 'mail_prod_samedi', 'mail_distribution_saterday') ;
$this->renameColumn('user', 'mail_prod_dimanche', 'mail_distribution_sunday') ;
$this->renameColumn('user', 'id_etablissement', 'id_producer') ;
$this->renameColumn('user', 'date_derniere_connexion', 'date_last_connection') ;

$this->renameTable('user_etablissement', 'user_producer') ;
$this->renameColumn('user_producer', 'id_etablissement', 'id_producer') ;
$this->renameColumn('user_producer', 'actif', 'active') ;
$this->renameColumn('user_producer', 'favoris', 'bookmark') ;
}

public function down()
{
$this->renameTable('order', 'commande') ;
$this->renameColumn('commande', 'id_point_sale', 'id_point_vente') ;
$this->renameColumn('commande', 'id_distribution', 'id_production') ;
$this->renameColumn('commande', 'comment', 'commentaire') ;
$this->renameColumn('commande', 'comment_point_sale', 'commentaire_point_vente') ;
$this->renameColumn('commande', 'auto_payment', 'paiement_automatique') ;
$this->renameTable('subscription', 'commande_auto') ;
$this->renameColumn('commande_auto', 'id_producer', 'id_etablissement') ;
$this->renameColumn('commande_auto', 'date_debin', 'date_debut') ;
$this->renameColumn('commande_auto', 'date_end', 'date_fin') ;
$this->renameColumn('commande_auto', 'monday', 'lundi') ;
$this->renameColumn('commande_auto', 'tuesday', 'mardi') ;
$this->renameColumn('commande_auto', 'wednesday', 'mercredi') ;
$this->renameColumn('commande_auto', 'thursday', 'jeudi') ;
$this->renameColumn('commande_auto', 'friday', 'vendredi') ;
$this->renameColumn('commande_auto', 'saterday', 'samedi') ;
$this->renameColumn('commande_auto', 'sunday', 'dimanche') ;
$this->renameColumn('commande_auto', 'week_frequency', 'periodicite_semaine') ;
$this->renameColumn('commande_auto', 'id_point_sale', 'id_point_vente') ;
$this->renameColumn('commande_auto', 'auto_payment', 'paiement_automatique') ;
$this->renameTable('product_subscription', 'commande_auto_produit') ;
$this->renameColumn('commande_auto_produit', 'id_subscription', 'id_commande_auto') ;
$this->renameColumn('commande_auto_produit', 'id_product', 'id_produit') ;
$this->renameColumn('commande_auto_produit', 'quantity', 'quantite') ;
$this->renameTable('product_order', 'commande_produit') ;
$this->renameColumn('commande_produit', 'id_order', 'id_commande') ;
$this->renameColumn('commande_produit', 'id_product', 'id_produit') ;
$this->renameColumn('commande_produit', 'quantity', 'quantite') ;
$this->renameColumn('commande_produit', 'price', 'prix') ;
$this->renameColumn('commande_produit', 'sale_mode', 'mode_vente') ;
$this->renameTable('credit_history', 'credit_historique') ;
$this->renameColumn('credit_historique', 'id_order', 'id_commande') ;
$this->renameColumn('credit_historique', 'amount', 'montant') ;
$this->renameColumn('credit_historique', 'id_producer', 'id_etablissement') ;
$this->renameColumn('credit_historique', 'mean_payment', 'moyen_paiement') ;
$this->renameColumn('credit_historique', 'comment', 'commentaire') ;
$this->renameTable('development', 'developpement') ;
$this->renameColumn('developpement', 'subject', 'objet') ;
$this->renameColumn('developpement', 'progress', 'avancement') ;
$this->renameColumn('developpement', 'status', 'statut') ;
$this->renameColumn('developpement', 'time_estimate', 'estimation_temps') ;
$this->renameColumn('developpement', 'date_delivery', 'date_livraison') ;
$this->renameTable('development_priority', 'developpement_priorite') ;
$this->renameColumn('developpement_priorite', 'id_development', 'id_developpement') ;
$this->renameColumn('developpement_priorite', 'id_producer', 'id_etablissement') ;
$this->renameColumn('developpement_priorite', 'priority', 'priorite') ;
$this->renameTable('producer', 'etablissement') ;
$this->addColumn('etablissement', 'gratuit', 'boolean') ;
$this->renameColumn('etablissement', 'name', 'nom') ;
$this->renameColumn('etablissement', 'postcode', 'code_postal') ;
$this->renameColumn('etablissement', 'city', 'ville') ;
$this->renameColumn('etablissement', 'date_payment', 'date_paiement') ;
$this->renameColumn('etablissement', 'order_deadline', 'heure_limite_commande') ;
$this->renameColumn('etablissement', 'order_delay', 'delai_commande') ;
$this->renameColumn('etablissement', 'negative_balance', 'solde_negatif') ;
$this->renameColumn('etablissement', 'credit', 'credit_pain') ;
$this->renameColumn('etablissement', 'active', 'actif') ;
$this->renameColumn('etablissement', 'free_price', 'prix_libre') ;
$this->renameColumn('etablissement', 'order_infos', 'infos_commande') ;
$this->renameTable('invoice', 'facture') ;
$this->renameColumn('facture', 'id_producer', 'id_etablissement') ;
$this->renameColumn('facture', 'wording', 'libelle') ;
$this->renameColumn('facture', 'text', 'texte') ;
$this->renameColumn('facture', 'amount_without_tax', 'montant_ht') ;
$this->renameColumn('facture', 'paid', 'paye') ;
$this->renameColumn('facture', 'date_payment', 'date_paiement') ;
$this->renameColumn('facture', 'mean_payment', 'methode_paiement') ;
$this->renameColumn('facture', 'period', 'periode') ;
$this->renameColumn('facture', 'turnover', 'ca') ;
$this->renameTable('point_sale', 'point_vente') ;
$this->addColumn('point_vente', 'pain', 'boolean') ;
$this->addColumn('point_vente', 'vrac', 'boolean') ;
$this->renameColumn('point_vente', 'name', 'nom') ;
$this->renameColumn('point_vente', 'address', 'adresse') ;
$this->renameColumn('point_vente', 'infos_monday', 'horaires_lundi') ;
$this->renameColumn('point_vente', 'infos_tuesday', 'horaires_mardi') ;
$this->renameColumn('point_vente', 'infos_wednesday', 'horaires_mercredi') ;
$this->renameColumn('point_vente', 'infos_thursday', 'horaires_jeudi') ;
$this->renameColumn('point_vente', 'infos_friday', 'horaires_vendredi') ;
$this->renameColumn('point_vente', 'infos_saterday', 'horaires_samedi') ;
$this->renameColumn('point_vente', 'infos_sunday', 'horaires_dimanche') ;
$this->renameColumn('point_vente', 'locality', 'localite') ;
$this->renameColumn('point_vente', 'point_production', 'point_fabrication') ;
$this->renameColumn('point_vente', 'id_producer', 'id_etablissement') ;
$this->renameColumn('point_vente', 'restricted_access', 'access_restreint') ;
$this->renameColumn('point_vente', 'credit', 'credit_pain') ;
$this->renameColumn('point_vente', 'delivery_monday', 'livraison_lundi') ;
$this->renameColumn('point_vente', 'delivery_tuesday', 'livraison_mardi') ;
$this->renameColumn('point_vente', 'delivery_wednesday', 'livraison_mercredi') ;
$this->renameColumn('point_vente', 'delivery_thursday', 'livraison_jeudi') ;
$this->renameColumn('point_vente', 'delivery_friday', 'livraison_vendredi') ;
$this->renameColumn('point_vente', 'delivery_saterday', 'livraison_samedi') ;
$this->renameColumn('point_vente', 'delivery_sunday', 'livraison_dimanche') ;
$this->renameTable('user_point_sale', 'point_vente_user') ;
$this->renameColumn('point_vente_user', 'id_point_sale', 'id_point_vente') ;
$this->renameColumn('point_vente_user', 'comment', 'commentaire') ;
$this->renameTable('distribution', 'production') ;
$this->renameColumn('production', 'active', 'actif') ;
$this->renameColumn('production', 'delivery', 'livraison') ;
$this->renameColumn('production', 'id_producer', 'id_etablissement') ;
$this->renameTable('point_sale_distribution', 'production_point_vente') ;
$this->renameColumn('production_point_vente', 'id_distribution', 'id_production') ;
$this->renameColumn('production_point_vente', 'id_point_sale', 'id_point_vente') ;
$this->renameColumn('production_point_vente', 'delivery', 'livraison') ;
$this->renameTable('product_distribution', 'production_produit') ;
$this->renameColumn('production_produit', 'id_distribution', 'id_production') ;
$this->renameColumn('production_produit', 'id_product', 'id_produit') ;
$this->renameColumn('production_produit', 'active', 'actif') ;
$this->renameColumn('production_produit', 'quantity_max', 'quantite_max') ;
$this->renameTable('product', 'produit') ;
$this->addColumn('produit', 'illustration', 'varchar(255)') ;
$this->addColumn('produit', 'saison', 'varchar(255)') ;
$this->addColumn('produit', 'diminutif', 'varchar(255)') ;
$this->addColumn('produit', 'vrac', 'boolean') ;
$this->renameColumn('produit', 'name', 'nom') ;
$this->renameColumn('produit', 'active', 'actif') ;
$this->renameColumn('produit', 'price', 'prix') ;
$this->renameColumn('produit', 'weight', 'poids') ;
$this->renameColumn('produit', 'recipe', 'recette') ;
$this->renameColumn('produit', 'monday', 'lundi') ;
$this->renameColumn('produit', 'tuesday', 'mardi') ;
$this->renameColumn('produit', 'wednesday', 'mercredi') ;
$this->renameColumn('produit', 'thursday', 'jeudi') ;
$this->renameColumn('produit', 'friday', 'vendredi') ;
$this->renameColumn('produit', 'saterday', 'samedi') ;
$this->renameColumn('produit', 'sunday', 'dimanche') ;
$this->renameColumn('produit', 'quantity_max', 'quantite_max') ;
$this->renameColumn('produit', 'unavailable', 'epuise') ;
$this->renameColumn('produit', 'id_producer', 'id_etablissement') ;
$this->renameColumn('produit', 'sale_mode', 'mode_vente') ;
$this->addColumn('user', 'confiance', 'boolean') ;
$this->renameColumn('user', 'lastname', 'nom') ;
$this->renameColumn('user', 'name', 'prenom') ;
$this->renameColumn('user', 'phone', 'telephone') ;
$this->renameColumn('user', 'address', 'adresse') ;
$this->renameColumn('user', 'mail_distribution_monday', 'mail_prod_lundi') ;
$this->renameColumn('user', 'mail_distribution_tuesday', 'mail_prod_mardi') ;
$this->renameColumn('user', 'mail_distribution_wednesday', 'mail_prod_mercredi') ;
$this->renameColumn('user', 'mail_distribution_thursday', 'mail_prod_jeudi') ;
$this->renameColumn('user', 'mail_distribution_friday', 'mail_prod_vendredi') ;
$this->renameColumn('user', 'mail_distribution_saterday', 'mail_prod_samedi') ;
$this->renameColumn('user', 'mail_distribution_sunday', 'mail_prod_dimanche') ;
$this->renameColumn('user', 'id_producer', 'id_etablissement') ;
$this->renameColumn('user', 'date_last_connection', 'date_derniere_connexion') ;

$this->renameTable('user_producer', 'user_etablissement') ;
$this->renameColumn('user_etablissement', 'id_producer', 'id_etablissement') ;
$this->renameColumn('user_etablissement', 'active', 'actif') ;
$this->renameColumn('user_etablissement', 'bookmark', 'favoris') ;
}
}

Yükleniyor…
İptal
Kaydet