Compare commits
No commits in common. "39dc66df40b9833e963a3c1a1343303698da8eec" and "bec16f4de272b1ba315a218eb637c0e36c806be1" have entirely different histories.
39dc66df40
...
bec16f4de2
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -5,16 +5,6 @@ All notable changes to Wutta-Continuum will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## v0.2.0 (2024-12-07)
|
|
||||||
|
|
||||||
### Feat
|
|
||||||
|
|
||||||
- convert all uuid fields from str to proper UUID
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- add `User.prevent_edit` to schema
|
|
||||||
|
|
||||||
## v0.1.1 (2024-08-27)
|
## v0.1.1 (2024-08-27)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
@ -6,7 +6,7 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "Wutta-Continuum"
|
name = "Wutta-Continuum"
|
||||||
version = "0.2.0"
|
version = "0.1.1"
|
||||||
description = "SQLAlchemy-Continuum versioning for Wutta Framework"
|
description = "SQLAlchemy-Continuum versioning for Wutta Framework"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}]
|
authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}]
|
||||||
|
@ -27,7 +27,7 @@ classifiers = [
|
||||||
requires-python = ">= 3.8"
|
requires-python = ">= 3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"SQLAlchemy-Continuum",
|
"SQLAlchemy-Continuum",
|
||||||
"WuttJamaican[db]>=0.17.0",
|
"WuttJamaican[db]",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ from typing import Sequence, Union
|
||||||
|
|
||||||
from alembic import op
|
from alembic import op
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
import wuttjamaican.db.util
|
|
||||||
|
|
||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
# revision identifiers, used by Alembic.
|
||||||
|
@ -26,7 +25,7 @@ def upgrade() -> None:
|
||||||
sa.Column('issued_at', sa.DateTime(), nullable=True),
|
sa.Column('issued_at', sa.DateTime(), nullable=True),
|
||||||
sa.Column('id', sa.BigInteger(), autoincrement=True, nullable=False),
|
sa.Column('id', sa.BigInteger(), autoincrement=True, nullable=False),
|
||||||
sa.Column('remote_addr', sa.String(length=50), nullable=True),
|
sa.Column('remote_addr', sa.String(length=50), nullable=True),
|
||||||
sa.Column('user_id', wuttjamaican.db.util.UUID(), nullable=True),
|
sa.Column('user_id', sa.String(length=32), nullable=True),
|
||||||
sa.ForeignKeyConstraint(['user_id'], ['user.uuid'], name=op.f('fk_transaction_user_id_user')),
|
sa.ForeignKeyConstraint(['user_id'], ['user.uuid'], name=op.f('fk_transaction_user_id_user')),
|
||||||
sa.PrimaryKeyConstraint('id', name=op.f('pk_transaction'))
|
sa.PrimaryKeyConstraint('id', name=op.f('pk_transaction'))
|
||||||
)
|
)
|
||||||
|
@ -34,7 +33,7 @@ def upgrade() -> None:
|
||||||
|
|
||||||
# person
|
# person
|
||||||
op.create_table('person_version',
|
op.create_table('person_version',
|
||||||
sa.Column('uuid', wuttjamaican.db.util.UUID(), autoincrement=False, nullable=False),
|
sa.Column('uuid', sa.String(length=32), autoincrement=False, nullable=False),
|
||||||
sa.Column('full_name', sa.String(length=100), autoincrement=False, nullable=True),
|
sa.Column('full_name', sa.String(length=100), autoincrement=False, nullable=True),
|
||||||
sa.Column('first_name', sa.String(length=50), autoincrement=False, nullable=True),
|
sa.Column('first_name', sa.String(length=50), autoincrement=False, nullable=True),
|
||||||
sa.Column('middle_name', sa.String(length=50), autoincrement=False, nullable=True),
|
sa.Column('middle_name', sa.String(length=50), autoincrement=False, nullable=True),
|
||||||
|
@ -50,10 +49,10 @@ def upgrade() -> None:
|
||||||
|
|
||||||
# user
|
# user
|
||||||
op.create_table('user_version',
|
op.create_table('user_version',
|
||||||
sa.Column('uuid', wuttjamaican.db.util.UUID(), autoincrement=False, nullable=False),
|
sa.Column('uuid', sa.String(length=32), autoincrement=False, nullable=False),
|
||||||
sa.Column('username', sa.String(length=25), autoincrement=False, nullable=True),
|
sa.Column('username', sa.String(length=25), autoincrement=False, nullable=True),
|
||||||
sa.Column('password', sa.String(length=60), autoincrement=False, nullable=True),
|
sa.Column('password', sa.String(length=60), autoincrement=False, nullable=True),
|
||||||
sa.Column('person_uuid', wuttjamaican.db.util.UUID(), autoincrement=False, nullable=True),
|
sa.Column('person_uuid', sa.String(length=32), autoincrement=False, nullable=True),
|
||||||
sa.Column('active', sa.Boolean(), autoincrement=False, nullable=True),
|
sa.Column('active', sa.Boolean(), autoincrement=False, nullable=True),
|
||||||
sa.Column('transaction_id', sa.BigInteger(), autoincrement=False, nullable=False),
|
sa.Column('transaction_id', sa.BigInteger(), autoincrement=False, nullable=False),
|
||||||
sa.Column('end_transaction_id', sa.BigInteger(), nullable=True),
|
sa.Column('end_transaction_id', sa.BigInteger(), nullable=True),
|
||||||
|
@ -66,7 +65,7 @@ def upgrade() -> None:
|
||||||
|
|
||||||
# role
|
# role
|
||||||
op.create_table('role_version',
|
op.create_table('role_version',
|
||||||
sa.Column('uuid', wuttjamaican.db.util.UUID(), autoincrement=False, nullable=False),
|
sa.Column('uuid', sa.String(length=32), autoincrement=False, nullable=False),
|
||||||
sa.Column('name', sa.String(length=100), autoincrement=False, nullable=True),
|
sa.Column('name', sa.String(length=100), autoincrement=False, nullable=True),
|
||||||
sa.Column('notes', sa.Text(), autoincrement=False, nullable=True),
|
sa.Column('notes', sa.Text(), autoincrement=False, nullable=True),
|
||||||
sa.Column('transaction_id', sa.BigInteger(), autoincrement=False, nullable=False),
|
sa.Column('transaction_id', sa.BigInteger(), autoincrement=False, nullable=False),
|
||||||
|
@ -80,9 +79,9 @@ def upgrade() -> None:
|
||||||
|
|
||||||
# user_x_role
|
# user_x_role
|
||||||
op.create_table('user_x_role_version',
|
op.create_table('user_x_role_version',
|
||||||
sa.Column('uuid', wuttjamaican.db.util.UUID(), autoincrement=False, nullable=False),
|
sa.Column('uuid', sa.String(length=32), autoincrement=False, nullable=False),
|
||||||
sa.Column('user_uuid', wuttjamaican.db.util.UUID(), autoincrement=False, nullable=True),
|
sa.Column('user_uuid', sa.String(length=32), autoincrement=False, nullable=True),
|
||||||
sa.Column('role_uuid', wuttjamaican.db.util.UUID(), autoincrement=False, nullable=True),
|
sa.Column('role_uuid', sa.String(length=32), autoincrement=False, nullable=True),
|
||||||
sa.Column('transaction_id', sa.BigInteger(), autoincrement=False, nullable=False),
|
sa.Column('transaction_id', sa.BigInteger(), autoincrement=False, nullable=False),
|
||||||
sa.Column('end_transaction_id', sa.BigInteger(), nullable=True),
|
sa.Column('end_transaction_id', sa.BigInteger(), nullable=True),
|
||||||
sa.Column('operation_type', sa.SmallInteger(), nullable=False),
|
sa.Column('operation_type', sa.SmallInteger(), nullable=False),
|
||||||
|
@ -94,7 +93,7 @@ def upgrade() -> None:
|
||||||
|
|
||||||
# permission
|
# permission
|
||||||
op.create_table('permission_version',
|
op.create_table('permission_version',
|
||||||
sa.Column('role_uuid', wuttjamaican.db.util.UUID(), autoincrement=False, nullable=False),
|
sa.Column('role_uuid', sa.String(length=32), autoincrement=False, nullable=False),
|
||||||
sa.Column('permission', sa.String(length=254), autoincrement=False, nullable=False),
|
sa.Column('permission', sa.String(length=254), autoincrement=False, nullable=False),
|
||||||
sa.Column('transaction_id', sa.BigInteger(), autoincrement=False, nullable=False),
|
sa.Column('transaction_id', sa.BigInteger(), autoincrement=False, nullable=False),
|
||||||
sa.Column('end_transaction_id', sa.BigInteger(), nullable=True),
|
sa.Column('end_transaction_id', sa.BigInteger(), nullable=True),
|
||||||
|
|
Loading…
Reference in a new issue