Giter Site home page Giter Site logo

Comments (2)

mfridman avatar mfridman commented on June 23, 2024 1

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.

mrVin99 avatar mrVin99 commented on June 23, 2024 1

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.