Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

Commit 4ec8834

Browse files
authored
Merge pull request #45 from PageUpPeopleOrg/feature/OSC-1373-normalise-schema
remove setup code from alembic scripts
2 parents 4a9a213 + 30a82bf commit 4ec8834

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

appveyor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,19 @@ install:
2828
#Setup Python
2929
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% #Swap path to python to latest version (as per matrix above)
3030
- python --version
31+
#Create Virtual Environment
3132
- python -m venv c:\projects\relational-data-loader\venv\
3233

3334
build_script:
3435
#Setup the source MSSQL database
3536
- sqlcmd -b -E -S "(local)\SQL2016" -i .\tests\integration_tests\mssql_source\source_database_setup\create_database.sql
3637
- sqlcmd -b -E -f 65001 -S "(local)\SQL2016" -d RelationalDataLoaderIntegrationTestSource -i .\tests\integration_tests\mssql_source\source_database_setup\create_large_table.sql
3738
- sqlcmd -b -E -f 65001 -S "(local)\SQL2016" -d RelationalDataLoaderIntegrationTestSource -i .\tests\integration_tests\mssql_source\source_database_setup\create_compound_pk.sql
38-
3939
#Setup the target PostgreSQL database
4040
- psql -c "SELECT VERSION()"
4141
- createdb %DBNAME%
42+
- psql -d %DBNAME% -U postgres -a -v ON_ERROR_STOP=1 -f .\tests\integration_tests\psql_destination\setup.sql
43+
#Activate Virtual Environment
4244
- C:\projects\relational-data-loader\venv\Scripts\activate.bat
4345
#Install the dependencies for rdl.
4446
- pip install .

rdl/alembic/versions/710e28aa5978_add_data_load_execution_table.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
def upgrade():
2020
# ### commands auto generated by Alembic - please adjust! ###
2121
op.execute('CREATE SCHEMA IF NOT EXISTS rdl')
22-
op.execute('CREATE EXTENSION IF NOT EXISTS CITEXT')
2322
op.create_table('data_load_execution',
2423
sa.Column('id', sa.Integer(), nullable=False),
2524
sa.Column('correlation_id', postgresql.UUID(as_uuid=True), nullable=True),
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- create extensions
2+
CREATE EXTENSION IF NOT EXISTS CITEXT;

0 commit comments

Comments
 (0)