Questions tagged [sqitch]

Sqitch is a database change management application.

Sqitch is an open source database change management application written in Perl.

The following is an excerpt from the project website.

What makes it different from your typical migration-style approaches? A few things:

No opinions
Sqitch is not integrated with any framework, ORM, or platform. Rather, it is a standalone change management system with no opinions about your database engine, application framework, or development environment.

Native scripting
Changes are implemented as scripts native to your selected database engine. Writing a PostgreSQL application? Write SQL scripts for psql. Writing a MySQL-backed app? Write SQL scripts for mysql.

Dependency resolution
Database changes may declare dependencies on other changes—even on changes from other Sqitch projects. This ensures proper order of execution, even when you’ve committed changes to your VCS out-of-order.

No numbering
Change deployment is managed by maintaining a plan file. As such, there is no need to number your changes, although you can if you want. Sqitch doesn’t much care how you name your changes.

Iterative development
Up until you tag and release your application, you can modify your change deployment scripts as often as you like. They’re not locked in just because they’ve been committed to your VCS. This allows you to take an iterative approach to developing your database schema. Or, better, you can do test-driven database development.

46 questions
0
votes
1 answer

Sqitch deploy of stored procedure with ampersand in code causes failure

The Sqitch deploy fails on a stored procedure script that is for snowflake and contains JavaScript code for the stored procedure which has a double ampersand (&&) in an IF...THEN conditional block. Sqitch thinks it is a variable and fails as far as…
0
votes
1 answer

How can I add a custom variable to Sqitch, to be used in Snowflake change scripts?

I'd like to define a custom variable called task_warehouse to be used in a Snowflake change script, like this: CREATE OR REPLACE TASK dummy_task WAREHOUSE = &task_warehouse SCHEDULE = '1 minute' AS SELECT 1; The task warehouse…
Martin
  • 41
  • 1
  • 5
0
votes
1 answer

Adding registry tables to db:pg:staff "C:/Program Files/PostgreSQL/12/bin/psql" failed to start

When I try to deploy my postgres database using sqitch, I face this issue adding registry tables to db:pg:staff: C:/Program Files/PostgreSQL/12/bin/psql" failed to start: "The filename, directory name, or volume label syntax is incorrect" But my…
Huda Twfik
  • 157
  • 1
  • 10
0
votes
1 answer

How do I downgrade Sqitch?

I am running Sqitch on a Windows 10 machine. Using mysql 8.0.19. I initially installed Sqitch using Strawberry Perl. Every time I try to run verify scripts, the verify script fails. Every time my co-worker runs the same verify script on his machine…
utf8mb4
  • 13
  • 4
0
votes
0 answers

Database db:pg://postgres@/postgres has not been initialized for Sqitch

when i try to link sqitch to postgres local database it return this issue Database db:pg://postgres@/postgres has not been initialized for Sqitch with command sqitch log -u postgres
Huda Twfik
  • 157
  • 1
  • 10
0
votes
0 answers

Install Sqitch on Strawberry Perl Failed

I am trying to install Sqitch on Strawberry Perl (Windows 10) by following the steps from here but failed: Running Build for D/DW/DWHEELER/App-Sqitch-v1.1.0.tar.gz Building App-Sqitch DWHEELER/App-Sqitch-v1.1.0.tar.gz …
ireneh
  • 1
  • 2
0
votes
1 answer

sqitch deploy command fails when deploying changes to azure

Hi Guys I am trying to apply the deploy command on a database that is hosted on azure. Nevertheless, I got the following error: sqitch deploy…
0
votes
1 answer

Database seeding with Sqitch migrations

I have a set of Sqitch migrations that create tables and functions etc. However, I also need to seed my database with a basic data set required by my app. However, some of the seeds require Ids from seeds created prior. E.g. I have a function to…
Luke
  • 20,878
  • 35
  • 119
  • 178
0
votes
0 answers

SQITCH DEPLOY failing with error: "mysql.exe" unexpectedly returned exit value 1

I am running a windows server with MySQL I installed together with XAMPP - MySQL Ver 15.1 Distrib 10.4.11-MariaDB, for Win64 (AMD64), source revision 7c2c420b70b19cc02b5281127205e876f3919dad When I run sqitch deploy I keep getting error -…
Anos K. Mhazo
  • 365
  • 3
  • 11
0
votes
2 answers

sqitch init snowflake cannot determine Snowflake account name

I'm following the sqitchtutorial-snowflake tutorial and getting stuck when initializing a sqitch project When i run sqitch init widgets --engine snowflake The terminal indicates, "Cannot determine Snowflake account name"
vbp13
  • 1,040
  • 1
  • 10
  • 20
0
votes
1 answer

Sqitch migration with ALTER SEQUENCE on Postgresql db has no effect

When I create a table with a Sqitch migration I want to initialize its starting SERIAL PRIMARY KEY with something other than 1. However, for some reason the ALTER SEQUENCE command does not seem to have any effect. My deploy migration looks something…
Luke
  • 20,878
  • 35
  • 119
  • 178
0
votes
1 answer

Sqitch deploy to snowflake DW fails

The Sqitch deploy command fails with below error:- sqitch deploy 'db:snowflake://amrutmonu:PASSWORD@wea87235.us-east-1.snowflakecomputing.com/DEMO_DB?Driver=Snowflake' error: Adding registry tables to…
0
votes
1 answer

How can i install Sqitch on Centos 7 offline

In my client Centos 7 machine in need to install sqitch, but in offline environment have no clue how to do that!
Shobhit Verma
  • 794
  • 8
  • 25
0
votes
1 answer

Perl console : basic commands and fe_sendauth : no password was not working

I am currently working on the sqitch , to run scripts automatically for postgress sql , i had seen few posts talking about the .pgpass file , i had placed my .pgpass file in my root directory and , but when i run my sqitch deploy command , it says…
ramakri
  • 201
  • 3
  • 7
  • 20
0
votes
3 answers

MySQL User Permission Errors using Sqitch on Ubtunu

I am running into what I think is a very easy issue to fix, I am just out of possible ideas. I have a brand new Ubuntu 14.04 x64 server. I just installed MySQL. Not Apache, php or phpMyAdmin, just plain MySQL. I have run through…
user1302023
  • 31
  • 1
  • 1
  • 9