[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/ -> functions-upgrade.php (summary)

(no description)

File Size: 453 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 15 functions

  yourls_upgrade()
  yourls_upgrade_505_to_506()
  yourls_upgrade_to_506()
  yourls_upgrade_482()
  yourls_upgrade_to_15()
  yourls_upgrade_to_143()
  yourls_upgrade_to_141()
  yourls_alter_url_table_to_141()
  yourls_upgrade_to_14()
  yourls_update_options_to_14()
  yourls_create_tables_for_14()
  yourls_alter_url_table_to_14()
  yourls_alter_url_table_to_14_part_two()
  yourls_update_table_to_14()
  yourls_clean_htaccess_for_14()

Functions
Functions that are not part of a class:

yourls_upgrade($step, $oldver, $newver, $oldsql, $newsql )   X-Ref
Upgrade YOURLS and DB schema

Note to devs : prefer update function names using the SQL version, eg yourls_update_to_506(),
rather than using the YOURLS version number, eg yourls_update_to_18(). This is to allow having
multiple SQL update during the dev cycle of the same YOURLS version

return: void
param: string|int $step
param: string $oldver
param: string $newver
param: string|int $oldsql
param: string|int $newsql

yourls_upgrade_505_to_506()   X-Ref
Update to 506, just the fix for people who had updated to master on 1.7.10


yourls_upgrade_to_506()   X-Ref
Update to 506


yourls_upgrade_482()   X-Ref
Upgrade r482


yourls_upgrade_to_15( )   X-Ref
Main func for upgrade from 1.4.3 to 1.5


yourls_upgrade_to_143( )   X-Ref
Main func for upgrade from 1.4.1 to 1.4.3


yourls_upgrade_to_141( )   X-Ref
Main func for upgrade from 1.4 to 1.4.1


yourls_alter_url_table_to_141()   X-Ref
Alter table URL to 1.4.1


yourls_upgrade_to_14( $step )   X-Ref
Main func for upgrade from 1.3-RC1 to 1.4


yourls_update_options_to_14()   X-Ref
Update options to reflect new version


yourls_create_tables_for_14()   X-Ref
Create new tables for YOURLS 1.4: options & log


yourls_alter_url_table_to_14()   X-Ref
Alter table structure, part 1 (change schema, drop index)


yourls_alter_url_table_to_14_part_two()   X-Ref
Alter table structure, part 2 (recreate indexes after the table is up to date)


yourls_update_table_to_14()   X-Ref
Convert each link from 1.3 (id) to 1.4 (keyword) structure


yourls_clean_htaccess_for_14()   X-Ref
Clean .htaccess as it existed before 1.4. Returns boolean




Generated: Sat Feb 22 05:10:06 2025 Cross-referenced by PHPXref 0.7.1