-
create local database from sql management studio named
UIC
-
enable as enterprise gdb via pro
import arcpy arcpy.management.EnableEnterpriseGeodatabase(r'...\uic-attribute-rules\pro-project\localhost.sde', r'C:\Program Files\ESRI\License10.6\sysgen\keycodes')
If you receive errors, you may need to execute the following sql
ALTER DATABASE UIC SET ALLOW_SNAPSHOT_ISOLATION ON ALTER DATABASE UIC SET READ_COMMITTED_SNAPSHOT ON
-
import the XML Workspace for the existing UIC database
arcpy.management.ImportXMLWorkspaceDocument(r'...\uic-attribute-rules\pro-project\localhost.sde', r'...\uic-attribute-rules\data\UIC_STAGING.XML', 'SCHEMA_ONLY', None)
-
Create a python conda workspace for the project
conda create --clone arcgispro-py3 --name uic
-
install the development requirements
pip install -r requirements.dev.txt
- Import the individual feature classes contained within the feature datasets
- Import everything outside the feature dataset
- update
config.py
to set correct source - run migration code
python migrations.py
- removes unused tables
- unversions tables
- disables editor tracking
- adds and removes table fields
- removes unused domains
- moves fields from one table to another
- creates well contingency
- adds editor tracking
- versions tables
- update
config.py
to set correct source - Install attribute rules
python ar.py