Tag: database migrations

  1. Updated

    Convert utf8 tables to utf8mb4 in MySQL

    Category: Database

    Don't blindly copy-paste this!

  2. Updated

    Create a custom migration in Django

    Category: Database, Python

    ALTER TABLE app_repostarring CHANGE repo_description repo_description VARCHAR(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

  3. Updated

    Database Routers in Django

    Category: Database, Python, Web Development

    把部分 models / tables 獨立到一台資料庫