Tomasz Sowa
81df52f6ca
make depend
2021-05-31 18:59:49 +02:00
Tomasz Sowa
6e4f8f5191
start adding support for Models objects from Ezc
2021-05-31 18:59:20 +02:00
Tomek
fc24570062
fixed compilation: pikotools is in src subdirectory now
2021-05-27 12:04:41 +02:00
Tomasz Sowa
e48a28a5c8
namespace PT renamed to pt
2021-05-20 20:59:12 +02:00
Tomasz Sowa
d66a36cf21
make depend
2021-05-14 03:32:03 +02:00
Tomasz Sowa
a94e09f0aa
added support for Model migrations
...
now we have a table core.migration and each model (User, Group, Item, ItemContent and a new Migration) have its own
row in the table with a version number
added to config:
db_make_migration_if_needed and db_stop_if_migration_fails (need description yet)
2021-05-14 03:31:29 +02:00
Tomasz Sowa
ee354d2ded
renamed in Models: map_fields() to fields(), prepare_table() to table()
2021-05-13 03:29:41 +02:00
Tomasz Sowa
801c9a2cda
make depend
2021-05-11 22:22:10 +02:00
Tomasz Sowa
f1af7e2eeb
updated to the current pikotools api from branch api2021
2021-05-11 22:20:46 +02:00
Tomasz Sowa
bb513b0187
make depend
2021-04-30 01:35:40 +02:00
Tomasz Sowa
4277f90bad
start working on User and Group classes
...
- User and Group has been moved to 'models' directory
- removed UserPass struct (passwords fields were put to User struct)
not working yet, we need support for binary blobs in morm
2021-04-30 01:34:48 +02:00
Tomasz Sowa
ccda2bc2fd
added option do_migration_to_winix_fullmorm do the config (only temporarily)
...
if true then we make Item::do_migration() and exit
2021-04-14 14:13:47 +02:00
Tomasz Sowa
35e10ed469
updated to the new Pikotools api (new Space struct)
2021-04-09 17:50:58 +02:00
Tomasz Sowa
8d87d9a875
changed in Makefile: we have now one lib pikotools/pikotools.a
...
make depend
2021-03-31 20:25:09 +02:00
Tomasz Sowa
bbc0a67153
added support for new morm api
...
- field(...) methods from Model take now FT structure instead of insertable/updatable/primary_key boolean flags
- table name is set in a prepare_table() method now
- added meta and admin_meta from ItemContent (morm has a field() method with PT::Space argument now)
2021-03-11 18:48:18 +01:00
Tomasz Sowa
23f1c112a4
make depend
2021-03-10 16:40:22 +01:00
Tomasz Sowa
4d76e53554
in after_insert() methods: changed get_last_sequence -> get_last_sequence_for_primary_key
2021-03-09 18:16:29 +01:00
Tomasz Sowa
57aad8b454
removed from Item: update() and save() methods which take the 'url_was_changed' argument
...
and added ItemModelData (based on morm::ModelData) class which has 'prepare_unique_url' field,
an object of this class is passed to update(), insert() and save() methods
fixed: Dirs::CheckRootDir(): update should update childs too (privileges)
WIP: #4
2021-03-08 21:06:50 +01:00
Tomasz Sowa
3e84eb9dbf
Makefile deps
2021-02-25 00:15:03 +01:00
Tomasz Sowa
afbe82e9f4
changed the way how prefixes are added to urls
...
instead at the end we adding a prefix before an extension, e.g: filename_(2).jpg
2021-02-25 00:12:45 +01:00
Tomasz Sowa
32e93a04c5
Item class has been moved to a new directory 'models', a new class has been added: ItemContent
...
and same fields from Item were moved to ItemContent
Item
- id
- parent_id
- type (file, dir, symlink)
- url
- subject
- template (html template)
- sort_index
- content_id
ItemContent
- id
- ref -> references (renamed)
- user_id
- modification_user_id
- group_id
- privileges
- date_creation
- date_modification
- guest_name
- link_to
- link_redirect
- file_path
- file_fs
- file_type
- file_size
- has_thumb -> file_has_thumb (renamed)
- hash -> file_hash (renamed)
- hash_type -> file_hash_type (renamed)
- content -> content_raw (renamed)
- content_type -> content_raw_type (renamed)
- content_parsed
- content_parsed_type
- meta
- ameta -> meta_admin (renamed)
- modify_index (removed)
WIP: #4
2021-02-24 01:19:47 +01:00