Skip to content

Commit 4ef8cc8

Browse files
author
Alex Meadows
committed
process_tracker_python-159 Increase filetype code size
✨ Increased filetype code size to 25 Hit issue where some file type codes were longer than expected. Modified field to support them. Closes #159
1 parent a072861 commit 4ef8cc8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dbscripts/mysql_process_tracker.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ create table extract_filetype_lkup
7474
(
7575
extract_filetype_id int auto_increment
7676
primary key,
77-
extract_filetype_code varchar(5) not null,
77+
extract_filetype_code varchar(25) not null,
7878
extract_filetype varchar(75) not null,
7979
delimiter_char char null,
8080
quote_char char null,

dbscripts/postgresql_process_tracker.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ create table extract_filetype_lkup
251251
extract_filetype_id serial not null
252252
constraint extract_filetype_lkup_pk
253253
primary key,
254-
extract_filetype_code varchar(5) not null,
254+
extract_filetype_code varchar(25) not null,
255255
extract_filetype varchar(75) not null,
256256
delimiter_char char,
257257
quote_char char,

process_tracker/models/extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ExtractFileType(Base):
7474
primary_key=True,
7575
nullable=False,
7676
)
77-
extract_filetype_code = Column(String(5), nullable=False)
77+
extract_filetype_code = Column(String(25), nullable=False)
7878
extract_filetype = Column(String(75), nullable=False, unique=True)
7979
delimiter_char = Column(String(1), nullable=True)
8080
quote_char = Column(String(1), nullable=True)

0 commit comments

Comments
 (0)