Skip to content

Commit

Permalink
version bump and test files
Browse files Browse the repository at this point in the history
  • Loading branch information
jwdeitch committed Mar 31, 2017
1 parent feee78e commit 560506e
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 3 deletions.
1 change: 1 addition & 0 deletions pgm/services/factorya/1test-down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
drop table if EXISTS testingMigration;
32 changes: 32 additions & 0 deletions pgm/services/factorya/1test-up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
drop table if EXISTS testingMigration;
create table testingMigration (
col1 int,
col2 text
);


insert into testingMigration VALUES
(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
,(10, 'some text some text some text')
;
1 change: 1 addition & 0 deletions pgm/services/factorya/2test-up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select count(*) from testingMigration;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "diff.h"

void printHelp();
const char* version = "1.0.0";

int main(int argc, char *argv[]) {
extern char *optarg;
Expand Down Expand Up @@ -49,7 +50,7 @@ int main(int argc, char *argv[]) {
strcpy(connStr, optarg);
break;
case 'v':
printf("pg_migrate version 0.0.1\n");
printf("pg_migrate version %s\n", version);
exit(0);
case 'u':
if (d == 1 || u == 1) {
Expand Down Expand Up @@ -144,7 +145,7 @@ int main(int argc, char *argv[]) {

void printHelp() {

printf("\n pg_migrate 0.0.1\n"
printf("\n pg_migrate %s\n"
" https://github.com/jwdeitch/pg_migrate\n"
" MIT 2017\n\n"

Expand All @@ -158,7 +159,7 @@ void printHelp() {
" -p Soft run. Will display migrations to be ran / rolled back\n"
" -g Provisions the public schema with the pg_migrate table, used to track migrations\n\n"

);
, version);

}

0 comments on commit 560506e

Please sign in to comment.