Tables
1 year ago
GeneralMigration.php
1 year ago
MigrationsServiceProvider.php
3 months ago
ProductPageMigrationService.php
1 year ago
RewriteRulesMigrationService.php
1 year ago
Table.php
3 years ago
ThemeMigrationService.php
3 months ago
UpdateMigrationServiceProvider.php
3 weeks ago
UserMetaMigrationsService.php
3 years ago
VersionMigration.php
1 year ago
WebhookMigrationsService.php
1 year ago
RewriteRulesMigrationService.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCart\Database; |
| 4 | |
| 5 | /** |
| 6 | * Run this migration when version changes or for new installations. |
| 7 | */ |
| 8 | class RewriteRulesMigrationService extends VersionMigration { |
| 9 | /** |
| 10 | * The key for the migration. |
| 11 | * |
| 12 | * @var string |
| 13 | */ |
| 14 | protected $migration_key = 'surecart_rewrites_migration_version'; |
| 15 | |
| 16 | /** |
| 17 | * Run the migration. |
| 18 | * |
| 19 | * @return void |
| 20 | */ |
| 21 | public function run(): void { |
| 22 | error_log( 'rewrite' ); |
| 23 | flush_rewrite_rules(); |
| 24 | } |
| 25 | } |
| 26 |