Skip to content

Instantly share code, notes, and snippets.

@pepijnolivier
pepijnolivier / laraveltimestamps.py
Last active October 31, 2020 12:48
Create laravel timestamps on each table in mysqlworkbench.
# -*- coding: utf-8 -*-
# MySQL Workbench Python script
#
# <description>
# Written in MySQL Workbench 6.3.6
# Fetch all tables,
# For each table, add created_at, updated_at, deleted_at timestamps,
# Except for many-to-many tables
# Configurable options:
# addDeletedAt: True / False. Add the deleted_at timestamp column