Coder Social home page Coder Social logo

Comments (4)

tianzhou avatar tianzhou commented on May 14, 2024

Converted from #350

from bytebase.

tianzhou avatar tianzhou commented on May 14, 2024

@qsliu2017 please take a look.

To setup a ClickHouse instance, you can follow:

https://bytebase.com/blog/how-to-run-clickhouse-with-docker-and-connect-using-mysql-client

from bytebase.

qsliu2017 avatar qsliu2017 commented on May 14, 2024

I find that baseline SQL script will always be executed, both UI and Git workflow

截屏2022-01-27 下午5 56 38

In bytebase docs, it says

...This is achieved by using a baseline migration script which includes the entire schema of that live database.
...
Internally, the baseline migration only causes Bytebase to update its migration history table to record the baseline state. It won't apply the SQL statements in that baseline file to the corresponding database since the database is the origin source of the baseline and already has all the schema.

@tianzhou ,I need more info about

  1. does the baseline script need statements?
  2. should the baseline script be executed?

from bytebase.

tianzhou avatar tianzhou commented on May 14, 2024

I find that baseline SQL script will always be executed, both UI and Git workflow

截屏2022-01-27 下午5 56 38

In bytebase docs, it says

...This is achieved by using a baseline migration script which includes the entire schema of that live database.
...
Internally, the baseline migration only causes Bytebase to update its migration history table to record the baseline state. It won't apply the SQL statements in that baseline file to the corresponding database since the database is the origin source of the baseline and already has all the schema.

@tianzhou ,I need more info about

  1. does the baseline script need statements?
  2. should the baseline script be executed?

What baseline means is it tells Bytebase the current state of schema (aka establishing the baseline)

So Baseline statement does has statement, it's the statement tells Bytebase the current schema.

But it should NOT be executed.

from bytebase.

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.