summaryrefslogtreecommitdiffstats
path: root/srvs/mysql.sql (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2018-10-27Fix bug in database schemaMalf Furious1-2/+2
These text fields need a default of NULL aparently. Signed-off-by: Malf Furious <m@lfurio.us>
2018-10-21issue: Redesign schemaMalf Furious1-10/+21
I found myself complicating the data model of this class of objects and wanted to take a clean approach to its design. The key differences are as follows: * We now reference a message object for the issue's OP, as opposed to directly containing the message data This affords the OP _all_ of the standard features of a Scrott message, including separately tracked authorship data, file attachments. * Multiple assignees is implemented in the design Finally. * Seen flag is removed This can be implicitly tracked via all sub-object messages and the views meta-table.
2018-10-20issue: Add assigned timestampMalf Furious1-0/+1
2018-10-20issue: Add open/close dataMalf Furious1-0/+3
2018-10-20issue: Add author and authored fieldsMalf Furious1-0/+2
2018-09-20mysql: Move schema file into srvs/Malf Furious1-0/+0
This places all (both) of the service configuration files together and cleans up the top-level directory. The file is renamed to 'mysql.sql' to indicate the particular service it corresponds to.
2018-09-20mysql: Add various default valuesMalf Furious1-4/+4
I was experiencing problems on Mysql proper with the way Scrott interacts with the database when forming new objects. It attempts some writeback querries before all attributes are applied to the new objects. This makes sense if you understand how many initNew and helper functions are implemented. As a convenience a function which mutates an object will also apply its changes to the database automatically. These function are used instead of directly settings PHP object properties because there are additional pieces of logic performed to ensure everything remains valid in the datamodel. As was the case for a few types of objects, cirtain functions which behave this way were being called during an object's initNew(), causing DB writebacks to occur before some other 'default-less' field had been defined for that object. This patch provides some 'not so invalid' default states for database table columns which were previously undefined. This should also mitigate some issues I may have not run unto yet.
2018-09-20mysql: Change issue.tags type to 'text'Malf Furious1-1/+1
I don't mean to impose a character limit here, so I am changing this type to 'text'. As per the previous commit, the default value is also removed.
2018-09-20mysql: Remove defaults from 'text' datatypesMalf Furious1-2/+2
It is an error in Mysql for columns of type 'text' to have a default value. Removing these resolves Mysql errors and MariaDB warnings.
2017-06-04schema.sql: Set default value for mesg attachmentsMalf Furious1-1/+1
Defaulting this field to the empty string since, by default, messages do not have attachments.
2017-06-04schema.sql: Rename objtype for messagesMalf Furious1-1/+1
Renamed from 'message' to 'mesg', for consistency with other naming conventions.
2017-05-13Remove mime-type field from message database schemaMalf Furious1-2/+1
Since the df.php script can detect the mime-type of files on disk, I am removing this state from the database. With 'attachName' being the only remaining field pertaining to attachments, I have simply renamed it 'attachment'.
2017-04-08Remove NULLs from database schemaMalf Furious1-14/+14
To address potential bugs in the application code, I have updated the data definition to forbid NULL values anywhere in the Scrott database. Additionally, the data type for issue due datetimes is updated to varchar since 'datetime' has issues with my desired default value.
2017-01-14Reinstate database schema file to working directoryMalf Furious1-0/+0
2017-01-14Reset working directory for clean Scrott implementationMalf Furious1-135/+174
2016-10-22Deprecate application codeMalf Furious1-0/+0
Setup to perform an iteration of development focused on a simpler implementation and eliminating redundancy in design.
2016-05-30Add copyright notice to schema fileMalf Furious1-4/+14
2016-02-07Fix typeo from 89341dc13fd30bed744e052aa5f82deb4d4a5b93Malf Furious1-1/+1
2016-02-07Add fields to Issue objectMalf Furious1-0/+2
This adds attributes to an issue: due date (optional datetime) tags (space separated string of words to help categorize issues (again, optional))
2016-02-07Use only a single object type for log messagesMalf Furious1-5/+1
Eliminate redunancy in the data model by using just one object type to denote 'log' instead of parent object specfic types (eg: log-user, log-group, log-pad, ....). This is a redundancy because the type of the parent can be quired simply by following the log entry's parent ptr and assessing its type value.
2016-01-30Modify database schema and semantics for user objectsMalf Furious1-2/+1
When user objects are initially created they need to hold a NULL owner value (since users are self-owning objects and prior to db insertion their own guid is not known). Also, the timeUpdated field will no longer hold special meaning for user objects and is now going to be treated as consistent with the rest of the data model.
2016-01-28Add admin field to user tableMalf Furious1-0/+1
User accounts now have a field to denote whether they are site administrators. The first account created during app initial configuration is an admin automatically.
2015-11-20+ Defined setting table for system-wide administrator settingsM1-0/+8
2015-11-20* Moved the `unread` value of messages out into a new table so that this ↵M1-1/+8
value can now be user-specific
2015-11-20+ Declaired types for system log levels. they will be encapsulated in ↵M1-1/+7
Message-type objects
2015-11-20+ Defined schema for message tableM1-1/+13
2015-11-20+ Defined schema for extern-user objectM1-0/+13
2015-11-19* Data schema errataM1-0/+7
2015-11-19+ Defined initial issue object in schemaM1-1/+16
2015-11-19* Refactored stage table into new data modelM1-15/+7
2015-11-19* Refactored pad table into new core data modelM1-12/+10
2015-11-19* Reworked core datamodel -- now using a common main table for holding ALL ↵M1-24/+30
objects (and their common attributes). Additional, supplemental tables may be employed to maintain data attributes which are specific to a given object type
2015-11-18* Draft definitions for pad and stage schemasM1-0/+24
2015-11-18+ Defined group tableM1-10/+8
2015-11-18+ Defined membership association tableM1-1/+8
2015-11-18+ Defined schema for backend users tableM1-0/+63
! Devised an initial concept for Scrott object permissions system