Skip to content

Commit

Permalink
Merge pull request #2 from datopian/feature/ckan-29-support
Browse files Browse the repository at this point in the history
CKAN 2.9 support and general cleanup
  • Loading branch information
pdelboca authored Mar 4, 2021
2 parents bfd7814 + 7062c33 commit a5c0a68
Show file tree
Hide file tree
Showing 50 changed files with 132 additions and 2,749 deletions.
59 changes: 0 additions & 59 deletions ckanext/versions/blueprints.py

This file was deleted.

40 changes: 40 additions & 0 deletions ckanext/versions/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# encoding: utf-8

import click

from ckanext.versions.model import create_tables, tables_exist

@click.group()
def versions():
'''versions commands
'''
pass


@versions.command()
@click.pass_context
def initdb(ctx):
"""Creates the necessary tables in the database.
"""
if tables_exist():
click.secho('Dataset versions tables already exist', fg="green")
ctx.exit(1)

create_tables()
click.secho('Dataset versions tables created', fg="green")

@versions.command()
@click.pass_context
def cleandb(ctx):
"""Creates the necessary tables in the database.
"""
if tables_exist():
click.secho('Dataset versions tables already exist', fg="green")
ctx.exit(1)

create_tables()
click.secho('Dataset versions tables created', fg="green")


def get_commands():
return [versions]
49 changes: 0 additions & 49 deletions ckanext/versions/commands.py

This file was deleted.

22 changes: 0 additions & 22 deletions ckanext/versions/fanstatic/dataset_versions.css

This file was deleted.

Loading

0 comments on commit a5c0a68

Please sign in to comment.