Issue encountered during alembic migration when running Airflow 2.0.0b3 locally using a sqlite backend and calling airflow.utils.db.resetdb():

**sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table kube_resource_version already exists
[SQL: 
CREATE TABLE kube_resource_version (
	one_row_id BOOLEAN DEFAULT (1) NOT NULL, 
	resource_version VARCHAR(255), 
	PRIMARY KEY (one_row_id), 
	CONSTRAINT kube_resource_version_one_row_id CHECK (one_row_id), 
	CHECK (one_row_id IN (0, 1))
)

]**

airflow/migrations/versions/33ae817a1ff4_add_kubernetes_resource_checkpointing.py
columns_and_constraints = [
        sa.Column("one_row_id", sa.Boolean, server_default=sa.true(), primary_key=True),
        sa.Column("resource_version", sa.String(255)),
    ]
    conn = op.get_bind()
    
    if conn.dialect.name in {"mysql"}:
        columns_and_constraints.append(
            sa.CheckConstraint("one_row_id<>0", name="kube_resource_version_one_row_id")
        )
    elif conn.dialect.name not in {"mssql"}:
        columns_and_constraints.append(
            sa.CheckConstraint("one_row_id", name="kube_resource_version_one_row_id")
        )
    table = op.create_table(RESOURCE_TABLE, *columns_and_constraints)
    op.bulk_insert(table, [{"resource_version": ""}])
def downgrade():  
    op.drop_table(RESOURCE_TABLE)