Comments (2)
What error are you receiving?
Not sure if it is a copying error, but you need to break up your statements, otherwise it's considered one long comment. I tried the following:
-- +goose Up
CREATE SCHEMA IF NOT EXISTS test_schema;
And it applied the migration, goose_db_version
:
id | version_id | is_applied | tstamp |
---|---|---|---|
1 | 0 | t | 2024-01-29 14:28:23.765292 |
2 | 1 | t | 2024-01-29 14:28:23.782379 |
And created the "test_schema":
SELECT
*
FROM
pg_catalog.pg_namespace;
Returns:
oid | nspname | nspowner | nspacl |
---|---|---|---|
99 | pg_toast | 10 | |
11 | pg_catalog | 10 | {postgres=UC/postgres,=U/postgres} |
2200 | public | 10 | {postgres=UC/postgres,=UC/postgres} |
13403 | information_schema | 10 | {postgres=UC/postgres,=U/postgres} |
16393 | test_schema | 10 |
from goose.
Indeed, you're right. My apologies. The issue lies with IntelliJ IDEA in this case. I'm using their database console to view my tables, etc., and it's not displaying them when I create the schema via Goose. However, it shows up when I create it manually. Thank you for the response, and I apologize for the seemingly simple question.
from goose.
Related Issues (20)
- Improving the goose CLI command HOT 2
- Split goose into separate modules (same repository) HOT 1
- Build GitHub Releases with `tinygo` HOT 2
- Compress releases with `tar.xz` and `tar.gz` HOT 4
- Add guidance for adding new dialects and integrations (CONTRIBUTING.md)
- feat: Expand Store interface; add GetLatestVersion method in Provider
- Command "goose validate" don't run HOT 1
- Make goose annotations case-insensitive
- Ydb: type casting PG<->YQL was broken in latest YDB HOT 1
- ENVSUB is not working HOT 7
- Migrations created with local timestamp instead of utc HOT 3
- Need advice and guidance on our case. HOT 3
- Semicolon Detection Fails for "--" in Strings in SQL Statements HOT 3
- Support for quiet operations HOT 4
- Creating two migrations at the same time HOT 1
- New feature `up-preview` `down-preview`? HOT 3
- Request to release 3.18.1 HOT 4
- Question: Is it possible to conditionally run different statements based on type of database? HOT 5
- Build breaks: undefined symbol: duckdb_xx HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goose.