Cleaning de code inutile
[auf_rh_dae.git] / project / budget / migrations / 0004_auto__del_classement__del_tauxchange__del_poste__del_dossier__del_vale.py
1 # encoding: utf-8
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7 class Migration(SchemaMigration):
8
9 def forwards(self, orm):
10
11 # Deleting model 'Classement'
12 db.delete_table('budget_classement')
13
14 # Deleting model 'TauxChange'
15 db.delete_table('budget_tauxchange')
16
17 # Deleting model 'Poste'
18 db.delete_table('budget_poste')
19
20 # Deleting model 'Dossier'
21 db.delete_table('budget_dossier')
22
23 # Deleting model 'ValeurPoint'
24 db.delete_table('budget_valeurpoint')
25
26 # Deleting model 'Remuneration'
27 db.delete_table('budget_remuneration')
28
29 # Deleting model 'Evenement'
30 db.delete_table('budget_evenement')
31
32 # Deleting model 'Simulation'
33 db.delete_table('budget_simulation')
34
35 # Deleting model 'EvenementRemuneration'
36 db.delete_table('budget_evenementremuneration')
37
38
39 def backwards(self, orm):
40
41 # Adding model 'Classement'
42 db.create_table('budget_classement', (
43 ('coefficient', self.gf('django.db.models.fields.FloatField')(default=0)),
44 ('user_desactivation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_desactivation', blank=True)),
45 ('commentaire', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
46 ('degre', self.gf('django.db.models.fields.IntegerField')()),
47 ('date_creation', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
48 ('date_desactivation', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
49 ('user_creation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_creation', blank=True)),
50 ('user_modification', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_modification', blank=True)),
51 ('date_modification', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)),
52 ('echelon', self.gf('django.db.models.fields.IntegerField')()),
53 ('type', self.gf('django.db.models.fields.CharField')(max_length=10)),
54 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
55 ('actif', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
56 ('simulation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['budget.Simulation'])),
57 ))
58 db.send_create_signal('budget', ['Classement'])
59
60 # Adding model 'TauxChange'
61 db.create_table('budget_tauxchange', (
62 ('user_desactivation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_desactivation', blank=True)),
63 ('devise', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', to_field='code', db_column='devise', to=orm['rh.Devise'])),
64 ('actif', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
65 ('date_creation', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
66 ('date_desactivation', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
67 ('user_creation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_creation', blank=True)),
68 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
69 ('user_modification', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_modification', blank=True)),
70 ('date_modification', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)),
71 ('simulation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['budget.Simulation'])),
72 ('taux', self.gf('django.db.models.fields.FloatField')()),
73 ('annee', self.gf('django.db.models.fields.IntegerField')()),
74 ))
75 db.send_create_signal('budget', ['TauxChange'])
76
77 # Adding model 'Poste'
78 db.create_table('budget_poste', (
79 ('indemn_min', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=12, decimal_places=2)),
80 ('implantation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', db_column='implantation', to=orm['datamaster_modeles.Implantation'])),
81 ('salaire_min', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=12, decimal_places=2)),
82 ('expatrie', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
83 ('date_fin', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
84 ('comp_locale_min', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
85 ('devise_max', self.gf('django.db.models.fields.related.ForeignKey')(default=5, related_name='+', db_column='devise_max', to=orm['rh.Devise'])),
86 ('type_poste', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, db_column='type_poste', to=orm['rh.TypePoste'])),
87 ('comp_ong_max', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
88 ('date_validation', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
89 ('simulation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['budget.Simulation'])),
90 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
91 ('regime_travail_nb_heure_semaine', self.gf('django.db.models.fields.DecimalField')(default=35.0, max_digits=12, decimal_places=2)),
92 ('service', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='+', db_column='service', to=orm['rh.Service'])),
93 ('valeur_point_max', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['rh.ValeurPoint'], db_column='valeur_point_max', blank=True)),
94 ('indemn_max', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=12, decimal_places=2)),
95 ('devise_min', self.gf('django.db.models.fields.related.ForeignKey')(default=5, related_name='+', db_column='devise_min', to=orm['rh.Devise'])),
96 ('date_debut', self.gf('django.db.models.fields.DateField')()),
97 ('comp_fonctionpub_max', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
98 ('responsable', self.gf('django.db.models.fields.related.ForeignKey')(default=149, related_name='+', db_column='responsable', to=orm['rh.Poste'])),
99 ('comp_fonctionpub_min', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
100 ('comp_ong_min', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
101 ('regime_travail', self.gf('django.db.models.fields.DecimalField')(default=100.0, max_digits=12, decimal_places=2)),
102 ('date_modification', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)),
103 ('local', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
104 ('mise_a_disposition', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
105 ('nom', self.gf('django.db.models.fields.CharField')(max_length=255)),
106 ('justification', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
107 ('nom_feminin', self.gf('django.db.models.fields.CharField')(max_length=255, null=True)),
108 ('autre_min', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=12, decimal_places=2)),
109 ('user_creation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_creation', blank=True)),
110 ('appel', self.gf('django.db.models.fields.CharField')(default='interne', max_length=10)),
111 ('user_modification', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_modification', blank=True)),
112 ('comp_locale_max', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
113 ('comp_universite_max', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
114 ('date_creation', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
115 ('comp_autre_min', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
116 ('autre_max', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=12, decimal_places=2)),
117 ('user_desactivation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_desactivation', blank=True)),
118 ('valeur_point_min', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['rh.ValeurPoint'], db_column='valeur_point_min', blank=True)),
119 ('actif', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
120 ('comp_autre_max', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
121 ('date_desactivation', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
122 ('classement_max', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['rh.Classement'], db_column='classement_max', blank=True)),
123 ('comp_universite_min', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=12, decimal_places=2, blank=True)),
124 ('devise_comparaison', self.gf('django.db.models.fields.related.ForeignKey')(default=5, related_name='+', db_column='devise_comparaison', to=orm['rh.Devise'])),
125 ('salaire_max', self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=12, decimal_places=2)),
126 ('classement_min', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['rh.Classement'], db_column='classement_min', blank=True)),
127 ))
128 db.send_create_signal('budget', ['Poste'])
129
130 # Adding model 'Dossier'
131 db.create_table('budget_dossier', (
132 ('employe', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', db_column='employe', to=orm['rh.Employe'])),
133 ('regime_travail_nb_heure_semaine', self.gf('django.db.models.fields.DecimalField')(default=35.0, max_digits=12, decimal_places=2)),
134 ('classement', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['rh.Classement'], db_column='classement', blank=True)),
135 ('organisme_bstg', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['rh.OrganismeBstg'], db_column='organisme_bstg', blank=True)),
136 ('user_desactivation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_desactivation', blank=True)),
137 ('statut', self.gf('django.db.models.fields.related.ForeignKey')(default=3, related_name='+', to=orm['rh.Statut'])),
138 ('statut_residence', self.gf('django.db.models.fields.CharField')(default='local', max_length=10)),
139 ('date_fin', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
140 ('date_creation', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
141 ('simulation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['budget.Simulation'])),
142 ('user_creation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_creation', blank=True)),
143 ('date_modification', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)),
144 ('remplacement', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
145 ('regime_travail', self.gf('django.db.models.fields.DecimalField')(default=100.0, max_digits=12, decimal_places=2)),
146 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
147 ('user_modification', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_modification', blank=True)),
148 ('poste', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', db_column='poste', to=orm['rh.Poste'])),
149 ('date_desactivation', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
150 ('actif', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
151 ('date_debut', self.gf('django.db.models.fields.DateField')()),
152 ))
153 db.send_create_signal('budget', ['Dossier'])
154
155 # Adding model 'ValeurPoint'
156 db.create_table('budget_valeurpoint', (
157 ('user_desactivation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_desactivation', blank=True)),
158 ('implantation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='budget_valeur_point', db_column='implantation', to=orm['datamaster_modeles.Implantation'])),
159 ('date_creation', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
160 ('date_desactivation', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
161 ('devise', self.gf('django.db.models.fields.related.ForeignKey')(default=5, related_name='+', db_column='devise', to=orm['rh.Devise'])),
162 ('user_creation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_creation', blank=True)),
163 ('date_modification', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)),
164 ('valeur', self.gf('django.db.models.fields.FloatField')()),
165 ('user_modification', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_modification', blank=True)),
166 ('annee', self.gf('django.db.models.fields.IntegerField')()),
167 ('simulation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['budget.Simulation'])),
168 ('actif', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
169 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
170 ))
171 db.send_create_signal('budget', ['ValeurPoint'])
172
173 # Adding model 'Remuneration'
174 db.create_table('budget_remuneration', (
175 ('user_desactivation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_desactivation', blank=True)),
176 ('montant', self.gf('django.db.models.fields.FloatField')(default=0, null=True, blank=True)),
177 ('devise', self.gf('django.db.models.fields.related.ForeignKey')(default=5, related_name='+', db_column='devise', to=orm['rh.Devise'])),
178 ('commentaire', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
179 ('date_fin', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
180 ('date_creation', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
181 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
182 ('dossier', self.gf('django.db.models.fields.related.ForeignKey')(related_name='budget_remuneration_remunerations', db_column='dossier', to=orm['rh.Dossier'])),
183 ('user_creation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_creation', blank=True)),
184 ('date_modification', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)),
185 ('user_modification', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_modification', blank=True)),
186 ('type_revalorisation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['rh.TypeRevalorisation'], db_column='type_revalorisation', blank=True)),
187 ('date_desactivation', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
188 ('type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', db_column='type', to=orm['rh.TypeRemuneration'])),
189 ('date_debut', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
190 ('actif', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
191 ('simulation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['budget.Simulation'])),
192 ))
193 db.send_create_signal('budget', ['Remuneration'])
194
195 # Adding model 'Evenement'
196 db.create_table('budget_evenement', (
197 ('nom', self.gf('django.db.models.fields.CharField')(max_length=255)),
198 ('user_desactivation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_desactivation', blank=True)),
199 ('dossier', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', db_column='dossier', to=orm['rh.Dossier'])),
200 ('user_creation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_creation', blank=True)),
201 ('date_creation', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
202 ('date_desactivation', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
203 ('date_fin', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
204 ('date_debut', self.gf('django.db.models.fields.DateField')()),
205 ('user_modification', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_modification', blank=True)),
206 ('date_modification', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)),
207 ('simulation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['budget.Simulation'])),
208 ('actif', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
209 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
210 ))
211 db.send_create_signal('budget', ['Evenement'])
212
213 # Adding model 'Simulation'
214 db.create_table('budget_simulation', (
215 ('nom', self.gf('django.db.models.fields.CharField')(max_length=255)),
216 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
217 ))
218 db.send_create_signal('budget', ['Simulation'])
219
220 # Adding model 'EvenementRemuneration'
221 db.create_table('budget_evenementremuneration', (
222 ('user_desactivation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_desactivation', blank=True)),
223 ('montant', self.gf('django.db.models.fields.FloatField')(default=0, null=True, blank=True)),
224 ('devise', self.gf('django.db.models.fields.related.ForeignKey')(default=5, related_name='+', db_column='devise', to=orm['rh.Devise'])),
225 ('commentaire', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
226 ('evenement', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', db_column='evenement', to=orm['rh.Evenement'])),
227 ('date_fin', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
228 ('date_creation', self.gf('django.db.models.fields.DateField')(auto_now_add=True, blank=True)),
229 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
230 ('dossier', self.gf('django.db.models.fields.related.ForeignKey')(related_name='budget_evenementremuneration_remunerations', db_column='dossier', to=orm['rh.Dossier'])),
231 ('user_creation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_creation', blank=True)),
232 ('date_modification', self.gf('django.db.models.fields.DateField')(auto_now=True, blank=True)),
233 ('user_modification', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['auth.User'], db_column='user_modification', blank=True)),
234 ('type_revalorisation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', null=True, to=orm['rh.TypeRevalorisation'], db_column='type_revalorisation', blank=True)),
235 ('date_desactivation', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
236 ('type', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', db_column='type', to=orm['rh.TypeRemuneration'])),
237 ('date_debut', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
238 ('actif', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
239 ('simulation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['budget.Simulation'])),
240 ))
241 db.send_create_signal('budget', ['EvenementRemuneration'])
242
243
244 models = {
245
246 }
247
248 complete_apps = ['budget']