File: cli-migrate-diff-minimal-env.txt

package info (click to toggle)
golang-ariga-atlas 0.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,676 kB
  • sloc: javascript: 592; sql: 404; makefile: 10
file content (20 lines) | stat: -rw-r--r-- 329 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
atlas migrate diff --env local
cmpmig 0 diff.sql
-- atlas.hcl --
env "local" {
    src = "1.hcl"
    dev = "sqlite://devdb"
}
-- 1.hcl --
table "users" {
  schema = schema.main
  column "id" {
    null = false
    type = int
  }
}
schema "main" {
}
-- diff.sql --
-- create "users" table
CREATE TABLE `users` (`id` int NOT NULL);