Merge branch 'sqlrename'

This commit is contained in:
Michael RICOIS 2016-08-02 21:08:57 +02:00
commit 3d9149b983
4 changed files with 4 additions and 7 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.project

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;