Change rename SQL
This commit is contained in:
parent
811c5ef87d
commit
e53a3ce091
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user