Coder Social home page Coder Social logo

helpfulrobot / thefrozenfire-dataobjectcruft Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thefrozenfire/silverstripe-dataobjectcruft

0.0 2.0 0.0 13 KB

A tool for finding and removing tables, fields and indexes which are no longer needed in a SilverStripe database

PHP 92.29% Scheme 7.71%

thefrozenfire-dataobjectcruft's Introduction

SilverStripe DataObject Cruft

This module provides a tool in DatabaseAdmin for analyzing and removing parts of the database schema which are left-over from earlier development or removed modules (a.k.a. cruft).

Requirements

  • SilverStripe 3.0+

Installation

This module can be installed using composer, by adding the package thefrozenfire/dataobjectcruft, or by cloning this repository to the folder dataobjectcruft. It is recommended that you not install this package in your production environment, as its security impact has not been evaluated.

Usage

Once installed, run /dev/build to ensure that the necessary extensions are loaded. Simply visit /dev/scrub to view tables, fields, and indexes which have been identified as not being part of the SilverStripe-generated schema.

Before proceeding with any use of this tool, you are urged to ensure that you have recent backups which you can restore from, in case something goes wrong.

Not all items listed in this interface are guaranteed to be safely removeable. There are certain situations involving an overloaded DataObject::requireTable, or a DataExtension::augmentDatabase, which can result in additional schema data being generated. Please inspect each schema item that is listed, and only select those items which you are sure are not necessary.

Once you have selected each item which you wish to removed, click the "Delete Cruft" button. This will remove all selected schema data.

thefrozenfire-dataobjectcruft's People

Contributors

thefrozenfire avatar

Watchers

James Cloos avatar helpfulrobot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.