Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yuniql postgresql gis extenstion #295

Open
dnyandeobharambe opened this issue Mar 20, 2023 · 6 comments
Open

yuniql postgresql gis extenstion #295

dnyandeobharambe opened this issue Mar 20, 2023 · 6 comments

Comments

@dnyandeobharambe
Copy link

I am trying to deploy postgresql script where it have geospatial data . So it use corresponding data types. But it seems Yuniql does not support it and fail with following error

SqlState: 42704
MessageText: type "geometry" does not exist
Position: 138
File: parse_type.c
Line: 275
Routine: typenameType

--- End of inner exception stack trace ---
at Yuniql.Core.MigrationService.RunVersionSqlScripts(IDbConnection connection, IDbTransaction transaction, TransactionContext transactionContext, Stopwatch stopwatch, String version, String workspace, String scriptDirectory, String metaSchemaName, String metaTableName, List1 tokens, Nullable1 commandTimeout, String environment, String appliedByTool, String appliedByToolVersion)
at Yuniql.Core.MigrationService.<>c__DisplayClass12_0.g__RunVersionDirectoriesInternal|8(IDbConnection connection, IDbTransaction transaction, List1 scriptSubDirectories, String scriptDirectory, String versionDirectory, Stopwatch stopwatch) at Yuniql.Core.MigrationService.<>c__DisplayClass12_0.<RunVersionDirectories>b__7(<>f__AnonymousType02 version)
at System.Collections.Generic.List1.ForEach(Action1 )
at Yuniql.Core.MigrationService.RunVersionDirectories(IDbConnection connection, IDbTransaction transaction, List1 appliedVersions, String workspace, String targetVersion, TransactionContext transactionContext, List1 tokens, String bulkSeparator, String metaSchemaName, String metaTableName, Nullable1 commandTimeout, Nullable1 bulkBatchSize, String appliedByTool, String appliedByToolVersion, String environment, String transactionMode)
at Yuniql.Core.MigrationService.g__RunAllInternal|11_3(IDbConnection connection, IDbTransaction transaction, Boolean isRequiredClearedDraft, <>c__DisplayClass11_0& )
at Yuniql.Core.MigrationService.Run(String workspace, String targetVersion, Nullable1 isAutoCreateDatabase, List1 tokens, Nullable1 isVerifyOnly, String bulkSeparator, String metaSchemaName, String metaTableName, Nullable1 commandTimeout, Nullable1 bulkBatchSize, String appliedByTool, String appliedByToolVersion, String environment, Nullable1 isContinueAfterFailure, String transactionMode, Boolean isRequiredClearedDraft)
at Yuniql.Core.MigrationService.Run()
at Yuniql.CLI.CommandLineService.RunRunOption(RunOption opts)
If you think this is a bug, please report an issue here https://github.com/rdagumampan/yuniql/issues.

yuniql/error: The process 'C:\hostedtoolcache\windows\yuniql\0.0.0\x64\yuniql.exe' failed with exit code 1
##[error]The process 'C:\hostedtoolcache\windows\yuniql\0.0.0\x64\yuniql.exe' failed with exit code 1
Finishing: RunYuniqlCLI

@DavidPavlicek
Copy link

I have no problem with migration scripts containing PostGIS geomtery type. It looks like postgres does not know about geometry type. Did you enable PosGIS extension inside that database (create extension postgis;)?

@dnyandeobharambe
Copy link
Author

dnyandeobharambe commented Mar 29, 2023 via email

@DavidPavlicek
Copy link

Can yuniql user acces postgis function and types? If you login into database as the same user, can you select 'POINT(1 1)'::geometry?

@dnyandeobharambe
Copy link
Author

dnyandeobharambe commented Mar 29, 2023 via email

@dnyandeobharambe
Copy link
Author

dnyandeobharambe commented Mar 30, 2023 via email

@dnyandeobharambe
Copy link
Author

dnyandeobharambe commented Mar 30, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants