Adds promo 1920 in database.
authorStéphane Jacob <jacou@melix.net>
Mon, 29 Sep 2008 19:10:57 +0000 (21:10 +0200)
committerStéphane Jacob <jacou@melix.net>
Mon, 29 Sep 2008 19:10:57 +0000 (21:10 +0200)
upgrade/merge-0.0.1/000_1920.sql [new file with mode: 0644]

diff --git a/upgrade/merge-0.0.1/000_1920.sql b/upgrade/merge-0.0.1/000_1920.sql
new file mode 100644 (file)
index 0000000..0e6a0ed
--- /dev/null
@@ -0,0 +1,9 @@
+set @n = 19200001;
+
+INSERT INTO  auth_user_md5 (matricule, matricule_ax, promo, promo_sortie, nom_ini, prenom_ini, perms, nom, prenom)
+     SELECT  @n := @n + 1, id_ancien, promotion_etude, promotion_etude + 3, CONCAT(partic_patro, Nom_patronymique), prenom,
+             'pending', CONCAT(partic_patro, Nom_patronymique), prenom
+       FROM  fusionax_anciens
+      WHERE  promotion_etude = 1920;
+
+-- vim:set syntax=mysql: