Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,19 @@ install:
#Setup Python
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% #Swap path to python to latest version (as per matrix above)
- python --version
#Create Virtual Environment
- python -m venv c:\projects\relational-data-loader\venv\

build_script:
#Setup the source MSSQL database
- sqlcmd -b -E -S "(local)\SQL2016" -i .\tests\integration_tests\mssql_source\source_database_setup\create_database.sql
- sqlcmd -b -E -f 65001 -S "(local)\SQL2016" -d RelationalDataLoaderIntegrationTestSource -i .\tests\integration_tests\mssql_source\source_database_setup\create_large_table.sql
- sqlcmd -b -E -f 65001 -S "(local)\SQL2016" -d RelationalDataLoaderIntegrationTestSource -i .\tests\integration_tests\mssql_source\source_database_setup\create_compound_pk.sql

#Setup the target PostgreSQL database
- psql -c "SELECT VERSION()"
- createdb %DBNAME%
- psql -d %DBNAME% -U postgres -a -v ON_ERROR_STOP=1 -f .\tests\integration_tests\psql_destination\setup.sql
#Activate Virtual Environment
- C:\projects\relational-data-loader\venv\Scripts\activate.bat
#Install the dependencies for rdl.
- pip install .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.execute('CREATE SCHEMA IF NOT EXISTS rdl')
op.execute('CREATE EXTENSION IF NOT EXISTS CITEXT')
op.create_table('data_load_execution',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('correlation_id', postgresql.UUID(as_uuid=True), nullable=True),
Expand Down
2 changes: 2 additions & 0 deletions tests/integration_tests/psql_destination/setup.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- create extensions
CREATE EXTENSION IF NOT EXISTS CITEXT;