|
1 | | -# utPLSQL-v2-v3-bridge |
2 | | -A migration and bridge utility that allows using utPLSQL v3 framework with utPLSQL v2 Unit Tests |
| 1 | +[](https://travis-ci.org/utPLSQL/utPLSQL-v2-v3-bridge) |
| 2 | +[](https://sonarqube.com/dashboard/index?id=utPLSQL%3AutPLSQL%3Adevelop) |
| 3 | + |
| 4 | +# utPLSQL v2 to v3 migration utility |
| 5 | + |
| 6 | +This project provides a migration utility to enrich utPLSQL v2 package specification with [utPLSQL v3 annotations](https://utplsql.github.io/utPLSQL/v3.0.0/userguide/annotations.html). |
| 7 | + |
| 8 | +## Content |
| 9 | + |
| 10 | +This utility contains the following components: |
| 11 | + |
| 12 | +- Package `ut_v2_migration` |
| 13 | +- Modified version of `utassert` package from utPLSQL version 2.3.1 |
| 14 | +- Modified version of `utassert2` package from utPLSQL version 2.3.1 |
| 15 | + |
| 16 | +## Download |
| 17 | + |
| 18 | +Download latest release from (TODO) |
| 19 | + |
| 20 | +## Requirements |
| 21 | + |
| 22 | +- utPLSQL v2 needs to be installed |
| 23 | +- utPLSQL v3 needs to be installed |
| 24 | +- user executing the installation needs to have following privileges: |
| 25 | + - `create any procedure` |
| 26 | + - `create public synonym` |
| 27 | + - `grant any object privilege` |
| 28 | + |
| 29 | + |
| 30 | +## Installation |
| 31 | + |
| 32 | +Execute `install.sql` script using `SQLPlus` or `sqlcl` as in the example below. |
| 33 | + |
| 34 | +```bash |
| 35 | +sqlplus sys/oracle@xe as sysdba @install utp ut3 |
| 36 | +``` |
| 37 | + |
| 38 | +The install script does the following: |
| 39 | + |
| 40 | +- Checks if utPLSQL v2 is installed |
| 41 | +- Checks if utPLSQL v3 is installed |
| 42 | +- Drops public synonyms for `utassert` and `utassert2` |
| 43 | +- Installs packages: `ut_v2_migration`, `utassert`, `utassert2` into utPLSQL v3 schema |
| 44 | +- Creates public synonyms for `utassert` and `utassert2` in utPLSQL v3 schema |
| 45 | +- Grants execute on packages: `ut_v2_migration`, `utassert`, `utassert2` to PUBLIC |
| 46 | + |
| 47 | +## Executing migration |
| 48 | + |
0 commit comments