---
title: "new 1"
description: "Creates a new migration file locally."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/new-1
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:31:21.562Z
license: CC-BY-4.0
attribution: "new 1 — Claudary (https://claudary.paisolsolutions.com/skills/new-1)"
---

# new 1
Creates a new migration file locally.

## Overview

## supabase-migration-new

Creates a new migration file locally.

A `supabase/migrations` directory will be created if it does not already exists in your current `workdir`. All schema migration files must be created in this directory following the pattern `<timestamp>_<name>.sql`.

Outputs from other commands like `db diff` may be piped to `migration new <name>` via stdin.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/new-1) · https://claudary.paisolsolutions.com
