Parce que «Ça peut toujours servir»™ et que de toutes façons il y en a déjà des bouts qui sont dans le dépôt et que c'est chiant de git add -f.
Et puis bon, ça fait que 3Mo
This commit is contained in:
parent
29f50c2ed9
commit
3bde363deb
299 changed files with 17466 additions and 0 deletions
54
archive/bdd/reset.py
Executable file
54
archive/bdd/reset.py
Executable file
|
@ -0,0 +1,54 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import connection
|
||||
|
||||
from proprio import Proprio
|
||||
from proprio import HistProprio
|
||||
from comptes import CompteUnix
|
||||
from comptes import GroupeUnix
|
||||
from comptes import Attribut
|
||||
from comptes import Permission
|
||||
|
||||
erreurs = 0
|
||||
|
||||
try:
|
||||
Proprio.dropTable(cascade=True)
|
||||
except:
|
||||
erreurs += 1
|
||||
|
||||
Proprio.createTable()
|
||||
|
||||
try:
|
||||
HistProprio.dropTable(cascade=True)
|
||||
except:
|
||||
erreurs += 1
|
||||
HistProprio.createTable()
|
||||
|
||||
try:
|
||||
CompteUnix.dropTable(cascade=True)
|
||||
except:
|
||||
erreurs += 1
|
||||
CompteUnix.createTable()
|
||||
|
||||
|
||||
|
||||
try:
|
||||
GroupeUnix.dropTable(cascade=True)
|
||||
except:
|
||||
erreurs += 1
|
||||
GroupeUnix.createTable()
|
||||
|
||||
|
||||
try:
|
||||
Attribut.dropTable(cascade=True)
|
||||
except:
|
||||
erreurs += 1
|
||||
Attribut.createTable()
|
||||
|
||||
try:
|
||||
Permission.dropTable(cascade=True)
|
||||
except:
|
||||
erreurs += 1
|
||||
Permission.createTable()
|
||||
|
||||
print 'erreurs : ', erreurs
|
Loading…
Add table
Add a link
Reference in a new issue