Change rename SQL

This commit is contained in:
Michael RICOIS 2016-08-02 21:08:04 +02:00
parent 811c5ef87d
commit e53a3ce091
3 changed files with 3 additions and 7 deletions

View File

@ -1,3 +1,2 @@
DROP TABLE IF EXISTS jo.etablissements_act_old;
RENAME TABLE jo.etablissements_act TO jo.etablissements_act_old;
RENAME TABLE jo.etablissements_act_tmp TO jo.etablissements_act;
RENAME TABLE jo.etablissements_act TO jo.etablissements_act_old, jo.etablissements_act_tmp TO jo.etablissements_act;

View File

@ -1,3 +1,2 @@
DROP TABLE IF EXISTS jo.dirigeants_old;
RENAME TABLE jo.dirigeants TO jo.dirigeants_old;
RENAME TABLE jo.dirigeants_tmp TO jo.dirigeants;
RENAME TABLE jo.dirigeants TO jo.dirigeants_old, jo.dirigeants_tmp TO jo.dirigeants;

View File

@ -1,4 +1,2 @@
DROP TABLE IF EXISTS jo.etablissements_old;
RENAME TABLE jo.etablissements TO jo.etablissements_old;
RENAME TABLE jo.etablissements_tmp TO jo.etablissements;
ALTER TABLE jo.etablissements_old ADD INDEX(source, siege, actif, adr_dep, capital, cj, ape_entrep, ape_etab, age_entrep, teff_entrep, teff_etab, tca);
RENAME TABLE jo.etablissements TO jo.etablissements_old, jo.etablissements_tmp TO jo.etablissements;