Skip to content

Commit

Permalink
Remove init_db command
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jul 12, 2024
1 parent 289c8a2 commit eeef20d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
24 changes: 0 additions & 24 deletions ckanext/pages/cli.py

This file was deleted.

8 changes: 0 additions & 8 deletions ckanext/pages/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ def make_uuid():
return text_type(uuid.uuid4())


def init_db():
if pages_table is None:
define_tables()

if not pages_table.exists():
pages_table.create()


class Page(DomainObject, BaseModel):

__tablename__ = "ckanext_pages"
Expand Down
4 changes: 0 additions & 4 deletions ckanext/pages/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,10 @@ class PagesPlugin(PagesPluginBase):
p.implements(p.IAuthFunctions, inherit=True)
p.implements(p.IConfigurable, inherit=True)
p.implements(p.IBlueprint)
p.implements(p.IClick)

def get_blueprint(self):
return [blueprint.pages]

def get_commands(self):
return cli.get_commands()

def update_config(self, config):
self.organization_pages = tk.asbool(config.get('ckanext.pages.organization', False))
self.group_pages = tk.asbool(config.get('ckanext.pages.group', False))
Expand Down

0 comments on commit eeef20d

Please sign in to comment.