Skip to content

Commit

Permalink
Firebird SQL, create migration table, file name was too short
Browse files Browse the repository at this point in the history
  • Loading branch information
olbrichattila committed Aug 21, 2024
1 parent 50a8e00 commit 0c078c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migration_table_firebird_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (p *firebirdMigrationTableSQLProvider) createMigrationSQL() string {
sql := `EXECUTE BLOCK AS BEGIN
if (not exists(select 1 from rdb$relations where rdb$relation_name = '%s_MIGRATIONS')) then
execute statement 'CREATE TABLE %s_MIGRATIONS (
file_name VARCHAR(35),
file_name VARCHAR(255),
created_at VARCHAR(35),
deleted_at TIMESTAMP);';
END`
Expand All @@ -27,7 +27,7 @@ func (p *firebirdMigrationTableSQLProvider) createReportSQL() string {
sql := `EXECUTE BLOCK AS BEGIN
if (not exists(select 1 from rdb$relations where rdb$relation_name = '%s_MIGRATION_REPORTS')) then
execute statement 'CREATE TABLE %s_MIGRATION_REPORTS (
file_name VARCHAR(35),
file_name VARCHAR(255),
result_status VARCHAR(12),
created_at VARCHAR(35),
message BLOB SUB_TYPE TEXT);';
Expand Down

0 comments on commit 0c078c3

Please sign in to comment.