diff --git a/src/karkas_blocks/karkas_blocks/experimental/roles/__init__.py b/src/karkas_blocks/karkas_blocks/experimental/roles/__init__.py deleted file mode 100644 index 1104bd7..0000000 --- a/src/karkas_blocks/karkas_blocks/experimental/roles/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -from karkas_core.modules_system.public_api import get_module - -from .db import APP_CONFIG - -register_app_config = get_module("experimental.database", "register_app_config") -register_app_config(APP_CONFIG) diff --git a/src/karkas_blocks/karkas_blocks/experimental/roles/db/__init__.py b/src/karkas_blocks/karkas_blocks/experimental/roles/db/__init__.py deleted file mode 100644 index e3e4a0b..0000000 --- a/src/karkas_blocks/karkas_blocks/experimental/roles/db/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from .piccolo_app import APP_CONFIG diff --git a/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_app.py b/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_app.py deleted file mode 100644 index c982cc4..0000000 --- a/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_app.py +++ /dev/null @@ -1,20 +0,0 @@ -""" -Import all of the Tables subclasses in your app here, and register them with -the APP_CONFIG. -""" - -import os - -from karkas_piccolo.conf.apps import AppConfig - -from .tables import Roles - -CURRENT_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) - -APP_CONFIG = AppConfig( - app_name="experimental.roles", - migrations_folder_path=os.path.join(CURRENT_DIRECTORY, "piccolo_migrations"), - table_classes=[Roles], - migration_dependencies=[], - commands=[], -) diff --git a/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_migrations/__init__.py b/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_migrations/experimentalroles_2024_08_20t10_21_38_172313.py b/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_migrations/experimentalroles_2024_08_20t10_21_38_172313.py deleted file mode 100644 index 38b5af5..0000000 --- a/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_migrations/experimentalroles_2024_08_20t10_21_38_172313.py +++ /dev/null @@ -1,16 +0,0 @@ -from piccolo.apps.migrations.auto.migration_manager import MigrationManager - -ID = "2024-08-20T10:21:38:172313" -VERSION = "1.16.0" -DESCRIPTION = "" - - -async def forwards(): - manager = MigrationManager(migration_id=ID, app_name="", description=DESCRIPTION) - - def run(): - print(f"running {ID}") - - manager.add_raw(run) - - return manager diff --git a/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_migrations/experimentalroles_2024_08_20t10_22_08_726822.py b/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_migrations/experimentalroles_2024_08_20t10_22_08_726822.py deleted file mode 100644 index 6d03aa4..0000000 --- a/src/karkas_blocks/karkas_blocks/experimental/roles/db/piccolo_migrations/experimentalroles_2024_08_20t10_22_08_726822.py +++ /dev/null @@ -1,59 +0,0 @@ -from piccolo.apps.migrations.auto.migration_manager import MigrationManager -from piccolo.columns.column_types import Integer -from piccolo.columns.indexes import IndexMethod - -ID = "2024-08-20T10:22:08:726822" -VERSION = "1.16.0" -DESCRIPTION = "" - - -async def forwards(): - manager = MigrationManager( - migration_id=ID, app_name="experimental.roles", description=DESCRIPTION - ) - - manager.add_table(class_name="Roles", tablename="roles", schema=None, columns=None) - - manager.add_column( - table_class_name="Roles", - tablename="roles", - column_name="role_id", - db_column_name="role_id", - column_class_name="Integer", - column_class=Integer, - params={ - "default": 0, - "null": False, - "primary_key": False, - "unique": False, - "index": False, - "index_method": IndexMethod.btree, - "choices": None, - "db_column_name": None, - "secret": False, - }, - schema=None, - ) - - manager.add_column( - table_class_name="Roles", - tablename="roles", - column_name="chat_id", - db_column_name="chat_id", - column_class_name="Integer", - column_class=Integer, - params={ - "default": 0, - "null": False, - "primary_key": False, - "unique": False, - "index": False, - "index_method": IndexMethod.btree, - "choices": None, - "db_column_name": None, - "secret": False, - }, - schema=None, - ) - - return manager diff --git a/src/karkas_blocks/karkas_blocks/experimental/roles/db/tables.py b/src/karkas_blocks/karkas_blocks/experimental/roles/db/tables.py deleted file mode 100644 index 845ad4b..0000000 --- a/src/karkas_blocks/karkas_blocks/experimental/roles/db/tables.py +++ /dev/null @@ -1,7 +0,0 @@ -from piccolo.columns import Integer -from piccolo.table import Table - - -class Roles(Table): - role_id = Integer() - chat_id = Integer() diff --git a/src/karkas_blocks/karkas_blocks/experimental/roles/info.json b/src/karkas_blocks/karkas_blocks/experimental/roles/info.json deleted file mode 100644 index df9eee8..0000000 --- a/src/karkas_blocks/karkas_blocks/experimental/roles/info.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "experimental.roles", - "name": "Roles", - "description": "Модуль для работы с БД", - "author": "Karkas Team", - "version": "1.0.0", - "privileged": true, - "dependencies": {}, - "pythonDependencies": { - "required": { - "karkas_piccolo": "*" - } - } -}