To reproduce:
houseplant generate "test_users_table"
cat test_users_table.yml:
version: "20250311155058"
name: test_users_table
table: test_users
development: &development
up: |
CREATE TABLE {table} (
id UInt64,
name String
) ENGINE = MergeTree()
ORDER BY id
SETTINGS storage_policy='gcs_main'
down: |
DROP TABLE {table}
test:
<<: *development
production:
up: |
down: |
DROP TABLE {table}
Database: default
┏━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
┃ Status ┃ Migration ID ┃ Migration Name ┃
┡━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
│ up │ 20250311155058 │ test users table │
└────────┴────────────────┴──────────────────┘
Would be nice to have a command to manually update schema.sql if need be. Other than that, really enjoy the project.
To reproduce:
houseplant generate "test_users_table"cat test_users_table.yml:houseplant migrate:upResults from
houseplant migrate:statuscat schema.sqlWould be nice to have a command to manually update schema.sql if need be. Other than that, really enjoy the project.