All Projects → colanconnon → apistar_alembic_migrations

colanconnon / apistar_alembic_migrations

Licence: other
Alembic migrations for apistar

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to apistar alembic migrations

flask-db
A Flask CLI extension to help migrate and manage your SQL database.
Stars: ✭ 56 (+211.11%)
Mutual labels:  migrations, alembic
Flask Migrate
SQLAlchemy database migrations for Flask applications using Alembic
Stars: ✭ 1,971 (+10850%)
Mutual labels:  migrations, alembic
Request Migrations
HTTP Request Migrations for API Versioning like Stripe
Stars: ✭ 149 (+727.78%)
Mutual labels:  migrations
gloat
Next-gen database migrations framework for Go.
Stars: ✭ 15 (-16.67%)
Mutual labels:  migrations
Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 2,315 (+12761.11%)
Mutual labels:  migrations
Express Typescript Boilerplate
A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch
Stars: ✭ 2,293 (+12638.89%)
Mutual labels:  migrations
Django Migration Linter
🚀 Detect backward incompatible migrations for your django project
Stars: ✭ 231 (+1183.33%)
Mutual labels:  migrations
Activerecord Pg enum
Integrate PostgreSQL's enumerated types with the Rails enum feature
Stars: ✭ 125 (+594.44%)
Mutual labels:  migrations
alembic utils
An alembic/sqlalchemy extension for migrating sql views, functions, triggers, and policies
Stars: ✭ 105 (+483.33%)
Mutual labels:  alembic
Cli
The Sequelize CLI
Stars: ✭ 2,248 (+12388.89%)
Mutual labels:  migrations
MoalemYar
A personal project for class management, using various technologies like WPF, Entityframwork, CodeFirst, Sqlite, Migration and more
Stars: ✭ 53 (+194.44%)
Mutual labels:  migrations
Laravel Migrate Fresh
An artisan command to build up a database from scratch
Stars: ✭ 179 (+894.44%)
Mutual labels:  migrations
Postgres Migrations
🐦 A Stack Overflow-inspired PostgreSQL migration library with strict ordering and immutable migrations
Stars: ✭ 161 (+794.44%)
Mutual labels:  migrations
Peewee migrate
Simple migration engine for Peewee
Stars: ✭ 250 (+1288.89%)
Mutual labels:  migrations
underbase
MongoDB schema and data migration library based on semver
Stars: ✭ 19 (+5.56%)
Mutual labels:  migrations
Dbmate
🚀 A lightweight, framework-agnostic database migration tool.
Stars: ✭ 2,228 (+12277.78%)
Mutual labels:  migrations
Typeorm Nestjs Migration Example
"Example of how to use migrations feature of TypeORM with NestJS.
Stars: ✭ 176 (+877.78%)
Mutual labels:  migrations
Secondbase
Seamless second database integration for Rails.
Stars: ✭ 216 (+1100%)
Mutual labels:  migrations
migrations
Migrations is a database migration tool that uses go's database/sql from the standard library
Stars: ✭ 17 (-5.56%)
Mutual labels:  migrations
FastAPI-template
Feature rich robust FastAPI template.
Stars: ✭ 660 (+3566.67%)
Mutual labels:  alembic

Alembic migrations for apistar

To Install this library

pip3 install apistar_alembic_migrations

Register the commands

from apistar_alembic_migrations import commands


app = App(
    routes=routes,
    settings=settings,
    commands=commands,  
    components=sqlalchemy_backend.components
)

To generation the initial migrations structure

apistar initialize

The following commands will become avaiable

apistar initialize

apistar create_revision "message"

apistar upgrade <"revision id" or Head for latest>

apistar downgrade "revision id"

Enabling auto generating of migrations from models

  • open your env.py file in your migrations folder

  • find the line that contains

target_metadata = None
  • Import your Declartive Base variable and assign the metadata
from app import Base
target_metadata = Base.metadata
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].