@@ -13,6 +13,7 @@ class ActionCommitTable extends \PSX\Sql\TableAbstract
1313 public const COLUMN_USER_ID = 'user_id ' ;
1414 public const COLUMN_PREV_HASH = 'prev_hash ' ;
1515 public const COLUMN_COMMIT_HASH = 'commit_hash ' ;
16+ public const COLUMN_CONFIG_HASH = 'config_hash ' ;
1617 public const COLUMN_CONFIG = 'config ' ;
1718 public const COLUMN_INSERT_DATE = 'insert_date ' ;
1819 public function getName (): string
@@ -21,7 +22,7 @@ public function getName(): string
2122 }
2223 public function getColumns (): array
2324 {
24- return [self ::COLUMN_ID => 0x3020000a , self ::COLUMN_ACTION_ID => 0x20000a , self ::COLUMN_USER_ID => 0x20000a , self ::COLUMN_PREV_HASH => 0xa00028 , self ::COLUMN_COMMIT_HASH => 0xa00028 , self ::COLUMN_CONFIG => 0xb00000 , self ::COLUMN_INSERT_DATE => 0x800000 ];
25+ return [self ::COLUMN_ID => 0x3020000a , self ::COLUMN_ACTION_ID => 0x20000a , self ::COLUMN_USER_ID => 0x20000a , self ::COLUMN_PREV_HASH => 0xa00028 , self ::COLUMN_COMMIT_HASH => 0xa00028 , self ::COLUMN_CONFIG_HASH => 0xa00028 , self :: COLUMN_CONFIG => 0xb00000 , self ::COLUMN_INSERT_DATE => 0x800000 ];
2526 }
2627 /**
2728 * @return array<\Fusio\Impl\Table\Generated\ActionCommitRow>
@@ -240,6 +241,43 @@ public function deleteByCommitHash(string $value): int
240241 $ condition ->like ('commit_hash ' , $ value );
241242 return $ this ->doDeleteBy ($ condition );
242243 }
244+ /**
245+ * @return array<\Fusio\Impl\Table\Generated\ActionCommitRow>
246+ * @throws \PSX\Sql\Exception\QueryException
247+ */
248+ public function findByConfigHash (string $ value , ?int $ startIndex = null , ?int $ count = null , ?\Fusio \Impl \Table \Generated \ActionCommitColumn $ sortBy = null , ?\PSX \Sql \OrderBy $ sortOrder = null ): array
249+ {
250+ $ condition = \PSX \Sql \Condition::withAnd ();
251+ $ condition ->like ('config_hash ' , $ value );
252+ return $ this ->doFindBy ($ condition , $ startIndex , $ count , $ sortBy , $ sortOrder );
253+ }
254+ /**
255+ * @throws \PSX\Sql\Exception\QueryException
256+ */
257+ public function findOneByConfigHash (string $ value ): ?\Fusio \Impl \Table \Generated \ActionCommitRow
258+ {
259+ $ condition = \PSX \Sql \Condition::withAnd ();
260+ $ condition ->like ('config_hash ' , $ value );
261+ return $ this ->doFindOneBy ($ condition );
262+ }
263+ /**
264+ * @throws \PSX\Sql\Exception\ManipulationException
265+ */
266+ public function updateByConfigHash (string $ value , \Fusio \Impl \Table \Generated \ActionCommitRow $ record ): int
267+ {
268+ $ condition = \PSX \Sql \Condition::withAnd ();
269+ $ condition ->like ('config_hash ' , $ value );
270+ return $ this ->doUpdateBy ($ condition , $ record ->toRecord ());
271+ }
272+ /**
273+ * @throws \PSX\Sql\Exception\ManipulationException
274+ */
275+ public function deleteByConfigHash (string $ value ): int
276+ {
277+ $ condition = \PSX \Sql \Condition::withAnd ();
278+ $ condition ->like ('config_hash ' , $ value );
279+ return $ this ->doDeleteBy ($ condition );
280+ }
243281 /**
244282 * @return array<\Fusio\Impl\Table\Generated\ActionCommitRow>
245283 * @throws \PSX\Sql\Exception\QueryException
0 commit comments