V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
azure
V2EX  ›  Python

SQLAlchmy有没有类似django-south的工具?在项目没有稳定之前,数据库表结构,字段都可能发生一些修改。怎样无痛修改并且保留数据?

  •  
  •   azure · 2012-10-13 16:03:27 +08:00 · 3179 次点击
    这是一个创建于 4225 天前的主题,其中的信息可能已经有所发展或是发生改变。
    目前项目并不稳定,数据库的结构,表的字段可能发生变动,有没有什么工具快捷的只是结构变动并且保留当前的数据呢?
    3 条回复    1970-01-01 08:00:00 +08:00
    iiduce
        1
    iiduce  
       2012-10-13 16:14:48 +08:00
    俺用mongodb毫无压力。
    monsterxx03
        2
    monsterxx03  
       2012-10-14 11:14:09 +08:00
    sqlalchemy-migrate
    yaozhifeng
        3
    yaozhifeng  
       2012-10-16 09:15:47 +08:00
    https://bitbucket.org/zzzeek/alembic

    官方推荐的migration工具
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1023 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:24 · PVG 05:24 · LAX 14:24 · JFK 17:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.