half-orm-dev 0.17.3a2__tar.gz → 0.17.3a3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {half_orm_dev-0.17.3a2/half_orm_dev.egg-info → half_orm_dev-0.17.3a3}/PKG-INFO +1 -1
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/repo.py +6 -0
- half_orm_dev-0.17.3a3/half_orm_dev/version.txt +1 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3/half_orm_dev.egg-info}/PKG-INFO +1 -1
- half_orm_dev-0.17.3a2/half_orm_dev/version.txt +0 -1
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/AUTHORS +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/LICENSE +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/README.md +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/__init__.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/__init__.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/__init__.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/apply.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/check.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/clone.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/init.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/migrate.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/patch.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/release.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/restore.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/sync.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/todo.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/undo.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/update.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/commands/upgrade.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli/main.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/cli_extension.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/database.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/decorators.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/hgit.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/migration_manager.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/migrations/0/17/1/00_move_to_hop.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/migrations/0/17/1/01_txt_to_toml.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/modules.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/patch_manager.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/patch_validator.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/patches/0/1/0/00_half_orm_meta.database.sql +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/patches/0/1/0/01_alter_half_orm_meta.hop_release.sql +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/patches/0/1/0/02_half_orm_meta.view.hop_penultimate_release.sql +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/patches/log +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/patches/sql/half_orm_meta.sql +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/release_file.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/release_manager.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/.gitignore +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/MANIFEST.in +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/Pipfile +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/README +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/conftest_template +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/git-hooks/pre-commit +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/git-hooks/prepare-commit-msg +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/init_module_template +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/module_template_1 +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/module_template_2 +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/module_template_3 +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/pyproject.toml +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/relation_test +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/sql_adapter +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/warning +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/utils.py +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev.egg-info/SOURCES.txt +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev.egg-info/dependency_links.txt +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev.egg-info/requires.txt +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev.egg-info/top_level.txt +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/pyproject.toml +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/setup.cfg +0 -0
- {half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/setup.py +0 -0
|
@@ -2197,6 +2197,12 @@ See docs/half_orm_dev.md for complete documentation.
|
|
|
2197
2197
|
for schema_name in schemas:
|
|
2198
2198
|
self.model.execute_query(f'DROP SCHEMA IF EXISTS "{schema_name}" CASCADE')
|
|
2199
2199
|
|
|
2200
|
+
# Recreate public schema (PostgreSQL standard schema)
|
|
2201
|
+
# The public schema is expected to exist by many applications and tools
|
|
2202
|
+
if 'public' in schemas:
|
|
2203
|
+
self.model.execute_query('CREATE SCHEMA public')
|
|
2204
|
+
self.model.execute_query('GRANT ALL ON SCHEMA public TO public')
|
|
2205
|
+
|
|
2200
2206
|
def restore_database_from_schema(self) -> None:
|
|
2201
2207
|
"""
|
|
2202
2208
|
Restore database from model/schema.sql and model/metadata-X.Y.Z.sql.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.17.3-a3
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.17.3-a2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/migrations/0/17/1/00_move_to_hop.py
RENAMED
|
File without changes
|
{half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/migrations/0/17/1/01_txt_to_toml.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{half_orm_dev-0.17.3a2 → half_orm_dev-0.17.3a3}/half_orm_dev/templates/git-hooks/prepare-commit-msg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|