-
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
-
Activate the environment
activate uic
-
install the development requirements
pip install -r requirements.dev.txt
- Update to >= 10.7.1
- Import the individual feature classes contained within the feature datasets
- Import everything outside the feature dataset
- Need to transfer the UDEQ.UICADMIN.UICSCHEMATRONERRORCODES by hand (is this necessary?)
- Set the bridging / intermediate table for UICAOR to UICArtPen permissions for all users to Select, Insert, Update, and Delete
- I think if we grant
data reader
anddata writer
plusEXECUTE
to all users the above step is unnecessary
- I think if we grant
- Database users need to be database authentication for versions to be created correctly.
- All users besides SDE need to be granted EXECUTE privileges.
- All users need Select, Insert, Update, and Delete granted via ESRI tools
- County boundaries
- Municipal boundaries
- Zip code boundaries
- add
localhost.sde
,stage.sde
, andprod.sde
to the pro-project - run migration code
python migrations.py migrate --env=local, dev, prod
This is a doc opt cli, so check the help for the tool
- 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
- add
localhost.sde
,stage.sde
, andprod.sde
to the pro-project - Install attribute rules
python ar.py update --env=local, dev, prod
- You can specify
--rule=
to only update a tables worth of rules
This is a doc opt cli, so check the help for the tool.
- Bump ar.py
VERSION
string - Bump ruletypes.py
Constraint.error_number
to match in the integer form- Bump before you run since it adds a record to the
Version_Information
table
- Bump before you run since it adds a record to the
- Bump migration.py if it changed.
- Bump before you run since it adds a record to the
Version_Information
table
- Bump before you run since it adds a record to the