45
questions
-1
votes
2
answers
378
views
Running Sqitch to deploy a database in Postgres on a Docker container
I am running Postgres on a Docker container.
I have been trying to following the example show to deploy scripts using Sqitch from the
following page:
https://metacpan.org/pod/sqitchtutorial
Now I have ...
1
vote
0
answers
34
views
sqitch : The term 'sqitch' is not recognized as the name of a cmdlet
I've followed the Docker Image installation instructions from Sqitch's documentation website, installed the image with:
docker pull sqitch/sqitch
Invoke-WebRequest -Uri "https://git.io/JTAi6"...
0
votes
0
answers
112
views
Invalid name; names must not begin with punctuation, contain "@", ":", "#", "\", or blanks, or end in punctuation or digits following punctuation
I had download my repository on my local computer. When I'm trying to use command SQITCH TAG i receive an error message look like this:
Syntax error in sqitch.plan at line 7: Invalid name; names must ...
1
vote
2
answers
164
views
Sqitch - single plan row, multiple sql files
I'm looking to move to sqitch, but my team likes their migrations as multiple files. That is, for example, if we create a foreign key and create an index in the same jira ticket, we like PROJ-123-...
0
votes
1
answer
93
views
Sqitch reporting "sqitch.checkit FUNCTION does not exist" on deploy
I'm trying to deploy a project from my dev server, where everything works fine, to a production server. I installed sqitch on the production server, did the project init, and when I try to deploy the ...
0
votes
0
answers
151
views
Can I use sqitch-rework for non-idempotent changes?
After reading the sqitch-rework documentation and the Altering Table with Sqitch Rework command stackoverflow question, I am aware that sqitch-rework was intended for idempotent changes.
But why?
It ...
3
votes
1
answer
931
views
Is there a way to remove a migration added to sqitch?
In sqitch there is the ADD command to add a new migration.
Is there any command to remove that ADDITION?
1
vote
1
answer
499
views
Baseline existing database
Im looking at Sqitch and so far it seems like a great tool, however I have an existing project that I want to use it with, Is there a way to create a baseline?
For example, I take a backup of my ...
2
votes
1
answer
295
views
How can I add a custom variable to Sqitch, to be used in target postgres
I would like to add few variables:"username' and "database" in my sqitch.conf on a defined target.
file sqitch.conf=>
engine = pg
[core "variables"]
username = ...
0
votes
1
answer
82
views
How to set encoding for sqitch in Ubuntu 18.04?
I installed sqitch for snowflake deployment in Ubuntu 18.04 LTS.
Now after running
sqitch verify --target dev
I get the following:
ø°ø°®ø ·ø¬ø« (SQL-)
Looks like bad encoding.
Any thoughts how to ...
0
votes
1
answer
183
views
How to update DBD::ODBC from 1.56 to 1.59 (or later) on Ubuntu 18.04 LTS?
I'm new to sqitch. I'm trying to create a Jenkins pipeline to deploy snowflake using sqitch. So, I got sqitch and snowsql installed to my Ubuntu 18.04 LTS in Azure.
I'm trying to run the following ...
0
votes
1
answer
356
views
How to deploy snowflake DB with sqitch?
I'm new to sqitch.
I'm trying to create a Jenkins pipeline to deploy snowflake using sqitch.
So, I got sqitch and snowsql installed to my Ubuntu 18.04 LTS in Azure.
I just:
clone existing sqitch ...
0
votes
1
answer
211
views
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 ...
-1
votes
1
answer
239
views
Sqitch Snowflake using key-pair authentication
I have installed Sqitch on a Windows 10 PC using Strawberry Perl. My Snowflake environment has key-pair authentication set up.
My sqitch.conf file has a target set up with the uri.
I am following the ...
0
votes
1
answer
295
views
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 ...
0
votes
1
answer
186
views
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, ...
1
vote
1
answer
759
views
Sqitch cannot connect to a running Postgres instance
I have a Postgres 9.6 instance on OSX that is up and running, but Sqitch throws the following error when I try sqitch status in a working directory with a sqitch.conf:
$ sqitch status
# On database db:...
0
votes
1
answer
99
views
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-...
0
votes
0
answers
198
views
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
0
votes
0
answers
277
views
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-...
0
votes
1
answer
894
views
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 db:pg://cmurcia%40dataplatform:*****@dataplatform....
0
votes
1
answer
791
views
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 ...
1
vote
1
answer
352
views
Manage Sqitch migrations when deploying different branches
When we deploy to our Testing environment with Sqitch, the migrations run and all is well. However, when we have to test a different code branch, the Sqitch migrations aren't rolled back. What I'm ...
1
vote
2
answers
453
views
sqitch: deploying changes across multiple environments
In looking at the sqitch docs, there’s a situation I don’t immediately understand how to deal with.
Like probably many organizations, we progress changes through several environments before they ...
0
votes
0
answers
145
views
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 ...
4
votes
0
answers
614
views
Is it possible to write a Sqitch change that drops a column, without dooming sqitch verify to forevermore fail?
This question is specific to Sqitch, but may have relevance with other database migration management tools.
The first Sqitch change in my application defines its general schema: it creates all my ...
1
vote
1
answer
189
views
Generate alter table scripts using sqitch
Lets say I create a table in snowflake called Employee with EmployeeID and EmployeeName. I would check in the Create table script for this table to my github repo and get this deployed using sqitch. ...
1
vote
1
answer
259
views
Sqitch Snowflake deployment failing
I am using Sqitch Snowflake Docker image sqitch/sqitch:1.0.0-snowflake . I can conntect to the database without any issues.
However, when I run the following
./sqitch deploy
It just stays at the ...
0
votes
2
answers
566
views
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 ...
1
vote
0
answers
81
views
How to accept changes made in the master branch to a database, that you have already deployed in local using Sqitch?
I deployed a DB using the plan file that was in my branch(reports). My boss has made some changes to the master branch. I need to test the said changes that were made to master. My local is outdated, ...
0
votes
1
answer
299
views
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 ...
0
votes
1
answer
231
views
Sqitch deploy to snowflake DW fails
The Sqitch deploy command fails with below error:-
sqitch deploy 'db:snowflake://amrutmonu:[email protected]/DEMO_DB?Driver=Snowflake'
error:
Adding registry ...
1
vote
1
answer
658
views
Unable to connect to Snowflake using Sqitch
I am using a private key authentication to connect to Snowflake and cannot connect using Sqitch. This is working successfully when connecting directly using snowsql.
My connect string looks like ...
0
votes
1
answer
281
views
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!
5
votes
0
answers
155
views
What's the point of dependencies in sqitch?
Since order of changes can also be parsed from the plan, how does specifying dependencies make a difference?
Also, do I need to specify all dependencies, or only the last change from each dependency ...
4
votes
1
answer
2k
views
Reverting a specific change with sqitch?
Is it possible to revert a specific change if there are no dependencies in sqitch? For example, I set up my project like the code below and deploy it and load some data. A day or so later (or perhaps ...
3
votes
1
answer
689
views
Verify table does NOT exist with mysql query in sqitch
I'm using sqitch to track database changes, and one of the ways it works is to verify changes with a sql query. If the query returns an error then the change is considered unsuccessful.
I have a ...
2
votes
2
answers
734
views
How can I verify an alter column data type change with sqitch postgresql?
I am making the following deploy change. Changing the value of a timestamp column to timestamptz.
-- Alter the is_deleted flags to be timestamp with time zone
alter table source_meta.sources alter ...
0
votes
1
answer
136
views
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 , ...
4
votes
2
answers
9k
views
Whats meaning of where false; in SQL query
I came across one SQL query in sqitch db schema management tool which is as follows:
BEGIN;
select subject , comment , timestamp
from tutorial.video
where false;
ROLLBACK;
Above query is part of ...
2
votes
2
answers
1k
views
Install Sqitch Perl CPAN module on Windows
I'm trying to install sqitch on Windows 10 after installing it with CPAN using latest Strawberry Perl.
cat NEWS >ReleaseNotes
'cat' is not recognized as an internal or external command,
operable ...
2
votes
1
answer
2k
views
How to copy function in PostgreSQL
I want to write sqitch deploy script to create new version of trigger. To ensure that revert script will revert function to previous version, I'd like to make a backup of this function. Is there any ...
7
votes
1
answer
3k
views
Altering Table with Sqitch Rework command
I've tried several times to follow Sqitch's 'postgres tutorial', just except instead of altering a function (which uses CREATE OR REPLACE FUNCTION), I'm changing a field name in a table to see how it'...
0
votes
3
answers
336
views
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 ...
2
votes
1
answer
1k
views
Sqitch throws fe_sendauth (no password) error with sqitch
I am trying to use PostgREST and sqitch on Debian (Wheezy) to provide a REST API for an Android app which queries a Postgres DB, like in this example.
I've written SQL to create the tables, however ...